Example #1
0
        /// <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);
        }
Example #2
0
        /// <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);
        }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 public RainwaveUserRequest(RainwaveAlbum p_rwAlbum) : base(p_rwAlbum)
 {
 }
Example #6
0
 public RainwaveCandidate(RainwaveAlbum p_rwAlbum) : base(p_rwAlbum)
 {
 }
Example #7
0
 public RainwaveSong(RainwaveAlbum p_rwAlbum)
 {
     Album = p_rwAlbum;
 }