예제 #1
0
		public static PlaylistsList Paginate(Dictionary<string,string> query, Client client) {

			var playlists = new PlaylistsList (client);

			playlists.records.Read(query);
			playlists.Initialize ();

			return playlists;
		}
예제 #2
0
		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());

		}