public async Task <SearchResult <IList <KeyWord> > > KeyWordAsync(string query, int page = 1) { var queryString = CreateQueryString(); queryString.Add("query", query); queryString.Add("page", page.ToString()); var searchResultDTO = await GetSearchResultAsync("search/keyword", queryString); return(SearchResultFactory.CreateList <KeyWord>(searchResultDTO)); }
public async Task <SearchResult <IList <Company> > > CompaniesAsync(string query, int page = 1) { var queryString = CreateQueryString(); queryString.Add("query", query); queryString.Add("page", page.ToString()); var searchResultDTO = await GetSearchResultAsync("search/company", queryString); return(SearchResultFactory.CreateList <Company>(searchResultDTO)); }
public async Task <SearchResult <IList <Collection> > > CollectionAsync(string query, string language = null, int page = 1) { var queryString = CreateQueryString(); queryString.Add("query", query); queryString.Add("language", language); queryString.Add("page", page.ToString()); var searchResultDTO = await GetSearchResultAsync("search/collection", queryString); return(SearchResultFactory.CreateList <Collection>(searchResultDTO)); }
public async Task <SearchResult <IList <TvShow> > > TvShowAsync(string query, string language = null, int page = 1, int?firstAirDateYear = null) { var queryString = CreateQueryString(); queryString.Add("query", query); queryString.Add("language", language); queryString.Add("page", page.ToString()); queryString.Add("first_air_date_year", firstAirDateYear.ToString()); var searchResultDTO = await GetSearchResultAsync("search/tv", queryString); return(SearchResultFactory.CreateList <TvShow>(searchResultDTO)); }
public async Task <SearchResult <IList <People> > > PeopleAsync(string query, string language = null, int page = 1, bool includeAdult = true, string region = null) { var queryString = CreateQueryString(); queryString.Add("query", query); queryString.Add("language", language); queryString.Add("page", page.ToString()); queryString.Add("include_adult", includeAdult.ToString()); queryString.Add("region", region); var searchResultDTO = await GetSearchResultAsync("search/person", queryString); return(SearchResultFactory.CreateList <People>(searchResultDTO)); }