Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
 public async Task <List <FreshdeskCompany <FreshdeskCustomFields> > > GetListAsync(FreshdeskCompaniesListOptions options = null)
 {
     return(await GetListAsync <FreshdeskCustomFields>(options).ConfigureAwait(false));
 }