/// <summary> /// The get network domains. /// </summary> /// <param name="filteringOptions"> /// The filtering options. /// </param> /// <param name="pagingOptions"> /// The paging options. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <PagedResponse <NetworkDomainType> > GetNetworkDomainsPaginated(NetworkDomainListOptions filteringOptions = null, PageableRequest pagingOptions = null) { var response = await _apiClient.GetAsync <networkDomains>(ApiUris.NetworkDomains(_apiClient.OrganizationId), pagingOptions, filteringOptions); return(new PagedResponse <NetworkDomainType> { items = response.networkDomain, totalCount = response.totalCountSpecified ? response.totalCount : (int?)null, pageCount = response.pageCountSpecified ? response.pageCount : (int?)null, pageNumber = response.pageNumberSpecified ? response.pageNumber : (int?)null, pageSize = response.pageSizeSpecified ? response.pageSize : (int?)null }); }
/// <summary> /// The get network domains. /// </summary> /// <param name="filteringOptions"> /// The filtering options. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <NetworkDomainType> > GetNetworkDomains(NetworkDomainListOptions filteringOptions = null) { var response = await GetNetworkDomainsPaginated(filteringOptions, null); return(response.items); }