/// <summary> /// Raises an IndexError if there is no album with the given ID in the playlist of the channel. /// </summary> /// <param name="p_sName">The name of the desired album.</param> /// <returns>A RainwaveAlbum for the given album name.</returns> public RainwaveAlbum getAlbumByName(string p_sName) { RainwaveAlbum rwAlbum = null; if (!AlbumExists(p_sName, out rwAlbum)) { throw new KeyNotFoundException("A RainwaveAlbum for the given album name does not exist."); } return(rwAlbum); }
/// <summary> /// Raises an IndexError if there is no album with the given ID in the playlist of the channel. /// </summary> /// <param name="p_iID">The ID of the desired album.</param> /// <returns>A RainwaveAlbum for the given album ID.</returns> public RainwaveAlbum getAlbumByID(int p_iID) { RainwaveAlbum rwAlbum = null; if (!AlbumExists(p_iID, out rwAlbum)) { throw new KeyNotFoundException("A RainwaveAlbum for the given album ID does not exist."); } return(rwAlbum); }
private bool AlbumExists(string p_sName, out RainwaveAlbum rwAlbum) { rwAlbum = null; foreach (RainwaveAlbum rwA in Albums) { if (rwA.sName == p_sName) { rwAlbum = rwA; return(true); } } return(false); }
private bool AlbumExists(int p_iID, out RainwaveAlbum rwAlbum) { rwAlbum = null; foreach (RainwaveAlbum rwA in Albums) { if (rwA.iID == p_iID) { rwAlbum = rwA; return(true); } } return(false); }
public RainwaveUserRequest(RainwaveAlbum p_rwAlbum) : base(p_rwAlbum) { }
public RainwaveCandidate(RainwaveAlbum p_rwAlbum) : base(p_rwAlbum) { }
public RainwaveSong(RainwaveAlbum p_rwAlbum) { Album = p_rwAlbum; }