/// <summary> /// Returns the next page of this feed /// </summary> /// <param name="count"></param> /// <param name="options"></param> /// <returns></returns> public async Task <IFeed <TaggedGfyFeed> > GetNextPageAsync(int count = GfycatClient.UseDefaultFeedCount, RequestOptions options = null) { if (count == GfycatClient.UseDefaultFeedCount) { count = _tagCount; } return(Create(_client, _gfyCount, count, options, await _client.ApiClient.GetTrendingTagsPopulatedAsync(_cursor, count, _gfyCount, options).ConfigureAwait(false))); }
internal static PopulatedTagFeed Create(GfycatClient client, int gfyCount, int tagCount, RequestOptions options, Model model) { return(new PopulatedTagFeed(client, gfyCount, tagCount, options) { Content = model.Tags.Select(t => TaggedGfyFeed.Create(client, gfyCount, t, options)).ToReadOnlyCollection(), _cursor = model.Cursor }); }