示例#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);
 }