Fixed uwp example, closes #524

This commit is contained in:
Jonas Dellinger 2020-11-02 20:27:21 +01:00
parent fb974fbc76
commit 88c0934610

View File

@ -15,8 +15,8 @@ namespace Example.UWP.ViewModels
{
private SpotifyClient _spotify;
private List<SimplePlaylist> _playlists;
public List<SimplePlaylist> Playlists
private IList<SimplePlaylist> _playlists;
public IList<SimplePlaylist> Playlists
{
get => _playlists ?? (_playlists = new List<SimplePlaylist>());
set => SetProperty(ref _playlists, value);
@ -31,7 +31,7 @@ namespace Example.UWP.ViewModels
{
await base.Initialize();
Playlists = await _spotify.PaginateAll(() => _spotify.Playlists.CurrentUsers());
Playlists = await _spotify.PaginateAll(await _spotify.Playlists.CurrentUsers());
}
}
}