/// <summary> /// Searches the Gfycat website using the provided search text /// </summary> /// <param name="searchText"></param> /// <param name="count"></param> /// <param name="options">The options for this request</param> /// <returns></returns> public async Task <SearchFeed> SearchAsync(string searchText, int count = UseDefaultFeedCount, RequestOptions options = null) { Utils.UseDefaultIfSpecified(ref count, ApiClient.Config.DefaultFeedItemCount); return(SiteSearchFeed.Create(this, await ApiClient.SearchSiteAsync(searchText, count, null, options).ConfigureAwait(false), count, searchText, options)); }
/// <summary> /// Returns the next page of this feed /// </summary> /// <param name="options"></param> /// <returns></returns> public async override Task <IFeed <Gfy> > GetNextPageAsync(RequestOptions options = null) { return(SiteSearchFeed.Create(_client, await _client.ApiClient.SearchSiteAsync(Tag, null, options).ConfigureAwait(false), Tag, options)); }
/// <summary> /// Searches the Gfycat website using the provided search text /// </summary> /// <param name="searchText"></param> /// <param name="options"></param> /// <returns></returns> // supposedly in testing. hhhhhhhhhhhhhhhhmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm public async Task <GfyFeed> SearchAsync(string searchText, RequestOptions options = null) { return(SiteSearchFeed.Create(this, await ApiClient.SearchSiteAsync(searchText, null, options).ConfigureAwait(false), searchText, options)); }
/// <summary> /// Returns the next page of this feed /// </summary> /// <param name="count"></param> /// <param name="options"></param> /// <returns></returns> public async override Task <IFeed <Gfy> > GetNextPageAsync(int count = GfycatClient.UseDefaultFeedCount, RequestOptions options = null) { Utils.UseDefaultIfSpecified(ref count, _count); return(SiteSearchFeed.Create(_client, await _client.ApiClient.SearchSiteAsync(Tag, count, null, options).ConfigureAwait(false), count, Tag, options)); }