Exemple #1
0
        public IEnumerable <Playlist> GetPlaylists()
        {
            while (!spotify.PlaylistContainer.IsLoaded)
            {
                Thread.Sleep(TimeSpan.FromSeconds(.5));
            }

            yield return(Playlist.Get(spotify.Starred));

            foreach (var p in spotify.PlaylistContainer.Playlists)
            {
                yield return(Playlist.Get(p));
            }
        }