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."); } }
public BBRequest(int numberOfSongs, string genre, string username) { requestType = new RequestSongs(numberOfSongs, genre, username); }
/// <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); }