public async Task <List <FreshdeskCompany <TCustomFieldObject> > > GetListAsync <TCustomFieldObject>(FreshdeskCompaniesListOptions options = null) where TCustomFieldObject : class { var query = GetListQueryString(options); var requestUri = $"{_apiBaseUri}/companies{query}"; using (var response = await _httpClient.GetAsync(requestUri).ConfigureAwait(false)) { return(await GetResponseAsync <List <FreshdeskCompany <TCustomFieldObject> > >(response).ConfigureAwait(false)); } }
public async Task <List <FreshdeskCompany <FreshdeskCustomFields> > > GetListAsync(FreshdeskCompaniesListOptions options = null) { return(await GetListAsync <FreshdeskCustomFields>(options).ConfigureAwait(false)); }