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