예제 #1
0
        public static VideosList Paginate(Dictionary <string, string> query, Client client)
        {
            var videos = new VideosList(client);

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

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