public async Task <PagedResponse <TResponse> > GetPaged <TResponse>(IGetPagedApiRequest request) { await AddAuthenticationHeader(); AddVersionHeader(request.Version); var response = await HttpClient.GetAsync(request.GetPagedUrl).ConfigureAwait(false); if (!response.IsSuccessStatusCode) { return(new PagedResponse <TResponse>()); } var json = await response.Content.ReadAsStringAsync().ConfigureAwait(false); return(JsonConvert.DeserializeObject <PagedResponse <TResponse> >(json)); }
public Task <PagedResponse <TResponse> > GetPaged <TResponse>(IGetPagedApiRequest request) { throw new System.NotImplementedException(); }
public Task <PagedResponse <TResponse> > GetPaged <TResponse>(IGetPagedApiRequest request) { return(_client.GetPaged <TResponse>(request)); }