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