/// <summary> /// Lists all ip address list. /// </summary> /// <param name="networkDomainId">The Network domain id.</param> /// <param name="options">The filter options.</param> /// <param name="pagingOptions">The paging options.</param> /// <returns>The async task of <see cref="PagedResponse{IpAddressListType}"/></returns> public async Task <PagedResponse <IpAddressListType> > GetIpAddressListsPaginated(Guid networkDomainId, IpAddressListOptions options = null, PageableRequest pagingOptions = null) { var response = await _api.GetAsync <ipAddressLists>(ApiUris.ListIpAddressList(_api.OrganizationId, networkDomainId), pagingOptions, options); return(new PagedResponse <IpAddressListType> { items = response.ipAddressList, 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> /// Lists all ip address list. /// </summary> /// <param name="networkDomainId">The network domain id.</param> /// <param name="options">The filter options.</param> /// <returns>The collection of matching ip address list.</returns> public async Task <IEnumerable <IpAddressListType> > GetIpAddressLists(Guid networkDomainId, IpAddressListOptions options = null) { var response = await GetIpAddressListsPaginated(networkDomainId, options, null); return(response.items); }