예제 #1
0
 public Client WithActivity(string name, string streamUrl = null, ActivityType type = ActivityType.Playing)
 {
     Activity = new ActivityConfig {
         Name = name, StreamUrl = streamUrl, Type = type
     };
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Sets the activity of the <see cref="Client"/>.
 /// </summary>
 public async Task SetActivityAsync(ActivityConfig activity)
 {
     if (activity != null)
     {
         await SetActivityAsync(activity.Name, activity.StreamUrl, activity.Type);
     }
 }
예제 #3
0
 public Client WithActivity(ActivityConfig activity)
 {
     Activity = activity;
     return(this);
 }