Adds helper method to check if a pageable response has more pages

This commit is contained in:
Serraniel 2023-01-29 11:22:09 +01:00
parent b6f59a7733
commit e224723313
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -15,6 +15,11 @@ public interface IPageableApiResponse<TResponseType, TResponseGeneric>
int TotalCount { get; set; }
bool HasNextPage()
{
return Page < TotalCount;
}
void RememberRequestUri(string requestUri);
Task<TResponseType> FetchNextPageAsync();