/// <summary>The get tag keys paginated.</summary> /// <param name="tagKeyListOptions">The tag key list options.</param> /// <param name="paginngOptions">The paginng options.</param> /// <returns>The <see cref="Task"/>.</returns> public async Task <PagedResponse <TagKeyType> > GetTagKeysPaginated(TagKeyListOptions tagKeyListOptions = null, IPageableRequest paginngOptions = null) { var response = await _apiClient.GetAsync <tagKeys>(ApiUris.ListTagKeys(_apiClient.OrganizationId), paginngOptions, tagKeyListOptions); return(new PagedResponse <TagKeyType> { items = response.tagKey, 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 tag keys.</summary> /// <param name="tagKeyListOptions">The tag key list options.</param> /// <returns>The <see cref="Task"/>.</returns> public async Task <IEnumerable <TagKeyType> > GetTagKeys(TagKeyListOptions tagKeyListOptions = null) { var tagkeys = await GetTagKeysPaginated(tagKeyListOptions); return(tagkeys.items); }