Alxandr/SpotiFire — Issue #18: Playlist event
Author: HaggeMan
Created: 2012-03-07 06:59:21+00:00
State: open

Hi,
First of all thank you for the wrapper, works really nice.

I'm using you library to create a small Spotify application for my HTPC. But what I can get my head around is how to get the names of the pricelists. I use this method, but the names are not done when the result back is coming. I have tried creating a handler but can't get it to work (never triggered)... what will be the best implementation sorting this out?

```c#
public IEnumerable 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);
}
```