public static PlaylistsList Paginate(Dictionary<string,string> query, Client client) { var playlists = new PlaylistsList (client); playlists.records.Read(query); playlists.Initialize (); return playlists; }
public static IEnumerable<Playlist> EachItem(Dictionary<string, string> query, Client client) { var playlists = new PlaylistsList (client); playlists.records.Read (query); do { playlists.Initialize (); foreach (var item in playlists.Page) { yield return item; } } while (playlists.records.Next()); }