Spotify.NET/docs/SpotifyWebAPI/util.md
2015-11-07 20:44:36 +01:00

492 B

##Paging-Methods The SpotifyWebAPI features two paging-helper Methods, GetNextPage() and GetPreviousPage(). Both are an easy way to receive the next/previous page of a Paging-Object.

Sample:

var playlistTracks = _spotify.GetPlaylistTracks("1122095781", "4EcNf2l8rXInbJOf3tQdgU", "", 50);
while (true)
{
    Console.WriteLine(playlistTracks.Items.Count);
    if (!playlistTracks.HasNextPage())
        break;
    playlistTracks = _spotify.GetNextPage(playlistTracks);
}