Adds helper method to check if a pageable response has more pages
This commit is contained in:
parent
b6f59a7733
commit
e224723313
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue