Esempio n. 1
0
        /// <summary>
        /// 获取专辑兆赫播放列表
        /// </summary>
        /// <param name="albumName">专辑名</param>
        public void GetAlbumFMNewPlayList(string albumName)
        {
            SearchedSongResult result = GetNewPlayList(2, string.Empty, albumName, string.Empty);

            if (result == null || result.SearchStatus == false)
            {
                isPlayListLoadFailed = true;
            }
            else if (result.SearchResult.SongsCount == 0)
            {
                isPlayListEmpty = true;
            }
            else
            {
                playList.Clear();
                foreach (SearchedSongEntity searchedSong in result.SearchResult.Songs)
                {
                    if (searchedSong.IsDeleted == false)
                    {
                        SongEntity song = MoreInfoAPI.GetSongEntity(searchedSong);
                        if (song != null)
                        {
                            playList.Enqueue(song);
                        }
                    }
                }
                EmptyCheck();
            }
        }
Esempio n. 2
0
 private API()
 {
     userAPI = new UserAPI();
     songAPI = new SongAPI();
     channelAPI = new ChannelAPI();
     openChannelAPI = new OpenChannelAPI();
     moreInfoAPI = new MoreInfoAPI();
 }