Exemple #1
0
 public void ReadRequest()
 {
     try {
         RequestSongs.Clear();
         RequestSongs.AddRange(this.Read(requestsPath));
     }
     catch (Exception e) {
         Logger.Debug($"{e}");
         this._chatManager.QueueChatMessage("There was an error reading the request queue.");
     }
 }
Exemple #2
0
 public BBRequest(int numberOfSongs, string genre, string username)
 {
     requestType = new RequestSongs(numberOfSongs, genre, username);
 }
Exemple #3
0
 /// <summary>
 /// Sends a request for a list of songs that match the given parameters.  If a parameter is null, it will match all values for that parameter.
 /// 
 /// The response will contain a list of songs that match the parameters.
 /// </summary>
 /// <param name="parameters">Parameters to match</param>
 /// <param name="numberOfSongs">Number of songs to return</param>
 /// <param name="userInfo">The user authentication token</param>
 public BBRequest(int numberOfSongs)
 {
     requestType = new RequestSongs(numberOfSongs);
 }