Esempio n. 1
0
 public StreamRequest(CommandEventArgs e, string query, MusicControls mc, bool radio = false) {
     if (e == null)
         throw new ArgumentNullException(nameof(e));
     if (query == null)
         throw new ArgumentNullException(nameof(query));
     this.MusicControls = mc;
     this.Server = e.Server;
     this.Query = query;
     this.RadioLink = radio;
     Task.Run(() => ResolveStreamLink());
     mc.SongQueue.Add(this);
 }
Esempio n. 2
0
 public StreamRequest(CommandEventArgs e, string query, MusicControls mc, bool radio = false)
 {
     if (e == null)
     {
         throw new ArgumentNullException(nameof(e));
     }
     if (query == null)
     {
         throw new ArgumentNullException(nameof(query));
     }
     this.MusicControls = mc;
     this.Server        = e.Server;
     this.Query         = query;
     this.RadioLink     = radio;
     mc.SongQueue.Add(this);
 }
Esempio n. 3
0
 public StreamRequest(CommandEventArgs e, string query, MusicControls mc, MusicType musicType = MusicType.Normal)
 {
     if (e == null)
     {
         throw new ArgumentNullException(nameof(e));
     }
     if (query == null)
     {
         throw new ArgumentNullException(nameof(query));
     }
     this.MusicControls = mc;
     this.Server        = e.Server;
     this.Query         = query;
     this.LinkType      = musicType;
     mc.AddSong(this);
 }
Esempio n. 4
0
 public StreamRequest(CommandEventArgs e, string query, MusicControls mc, DiscordClient c, bool radio = false)
 {
     if (e == null)
     {
         throw new ArgumentNullException(nameof(e));
     }
     if (query == null)
     {
         throw new ArgumentNullException(nameof(query));
     }
     this.MusicControls = mc;
     this.Server        = e.Server;
     this.Query         = query;
     this.RadioLink     = radio;
     this._client       = c;
     Task.Run(() => ResolveStreamLink());
     mc.SongQueue.Add(this);
 }