コード例 #1
0
    /// <inheritdoc />
    public async Task <IListingResponseModel <ContentTypeModel> > ListContentTypesAsync()
    {
        var endpointUrl = _urlBuilder.BuildTypeUrl();
        var response    = await _actionInvoker.InvokeReadOnlyMethodAsync <ContentTypeListingResponseServerModel>(endpointUrl, HttpMethod.Get);

        return(new ListingResponseModel <ContentTypeModel>(
                   (token, url) => GetNextListingPageAsync <ContentTypeListingResponseServerModel, ContentTypeModel>(token, url),
                   response.Pagination?.Token,
                   endpointUrl,
                   response.Types));
    }