From e224723313f94b634b6591f205450ab926b6f2fd Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sun, 29 Jan 2023 11:22:09 +0100 Subject: [PATCH] Adds helper method to check if a pageable response has more pages --- src/Client/Responses/IPageableApiResponse.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Client/Responses/IPageableApiResponse.cs b/src/Client/Responses/IPageableApiResponse.cs index 5fba181..d1ccc26 100644 --- a/src/Client/Responses/IPageableApiResponse.cs +++ b/src/Client/Responses/IPageableApiResponse.cs @@ -15,6 +15,11 @@ public interface IPageableApiResponse int TotalCount { get; set; } + bool HasNextPage() + { + return Page < TotalCount; + } + void RememberRequestUri(string requestUri); Task FetchNextPageAsync();