From f24315862a692357bd293c2a286705b0eaffc9da Mon Sep 17 00:00:00 2001 From: Tobias Kamenicky Date: Tue, 12 Nov 2019 15:45:08 +0100 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Aleš Kalina --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a21b2a74..806a2bee 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,9 @@ DeliveryItemListingResponse response = await client.GetItemsAsync( ); ``` -### Pagination +### Paging navigation -If you need to build a paging navigation for your items, you might need to retrieve the total number of items matching the search criteria. This can be achieved by adding `IncludeTotalCountParameter` to the request parameters. With the parameter included the `Pagination` section of the multiple content items response will contain `TotalCount` property. The parameter can also be configured globally by calling method `IncludeTotalCount()` on `IDeliveryOptionsBuilder`. This results in adding `IncludeTotalCountParameter` automatically to each request. +To display a paging navigation you need to retrieve the total number of items matching the search criteria. This can be achieved by adding the `IncludeTotalCountParameter` to the request parameters. With this parameter the item listing responses will contain the total number of items in the `Pagination.TotalCount` property. This behavior can also be enabled globally by calling the `IDeliveryOptionsBuilder.IncludeTotalCount` method. Please note that response times might increase slightly. ```csharp // Retrieves the second page of items including total number of items matching the search criteria