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