Exemplo n.º 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);
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 public Client WithActivity(ActivityConfig activity)
 {
     Activity = activity;
     return(this);
 }