mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Fixed uwp example, closes #524
This commit is contained in:
parent
fb974fbc76
commit
88c0934610
@ -15,8 +15,8 @@ namespace Example.UWP.ViewModels
|
|||||||
{
|
{
|
||||||
private SpotifyClient _spotify;
|
private SpotifyClient _spotify;
|
||||||
|
|
||||||
private List<SimplePlaylist> _playlists;
|
private IList<SimplePlaylist> _playlists;
|
||||||
public List<SimplePlaylist> Playlists
|
public IList<SimplePlaylist> Playlists
|
||||||
{
|
{
|
||||||
get => _playlists ?? (_playlists = new List<SimplePlaylist>());
|
get => _playlists ?? (_playlists = new List<SimplePlaylist>());
|
||||||
set => SetProperty(ref _playlists, value);
|
set => SetProperty(ref _playlists, value);
|
||||||
@ -31,7 +31,7 @@ namespace Example.UWP.ViewModels
|
|||||||
{
|
{
|
||||||
await base.Initialize();
|
await base.Initialize();
|
||||||
|
|
||||||
Playlists = await _spotify.PaginateAll(() => _spotify.Playlists.CurrentUsers());
|
Playlists = await _spotify.PaginateAll(await _spotify.Playlists.CurrentUsers());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user