예제 #1
0
        //Adds songs within response to current playlist.
        private void ExtractPlaylist(PlaylistResponse resp, bool clearList)
        {
            if (resp.Success)
            {
                if (clearList)
                {
                    _playlist.Clear();
                }

                foreach (var item in resp.Songs)
                {
                    _playlist.Enqueue(item);
                }
            }
        }
예제 #2
0
        //Adds songs within response to current playlist.
        private void ExtractPlaylist(PlaylistResponse resp, bool clearList)
        {
            if (resp.Success)
            {
                if (clearList)
                {
                    _playlist.Clear();
                }

                foreach (var item in resp.Songs)
                {
                    _playlist.Enqueue(item);
                }
            }
        }