internal void SetActivity(LocalActivity activity) { _activity = activity == null ? null : new ActivityModel { Name = activity.Name, Url = activity.Url, Type = activity.Type }; }
public sealed override Task SetPresenceAsync(UserStatus status, LocalActivity activity) => InternalSetPresenceAsync(status, activity);
public sealed override Task SetPresenceAsync(LocalActivity activity) => InternalSetPresenceAsync(activity: activity);
public virtual Task SetPresenceAsync(UserStatus status, LocalActivity activity) => _client?.SetPresenceAsync(status, activity) ?? throw new PlatformNotSupportedException();