Represents an wrapper for a model, providing methods to manage a pagination.
More...
|
uint | TotalDocs [get, set] |
| Gets or sets the total number of elements in Data. More...
|
|
uint | Offset [get, set] |
| Gets or sets the offset applied to the query. More...
|
|
uint | Limit [get, set] |
| Gets or sets the limit applied to the query. More...
|
|
uint | TotalPages [get, set] |
| Gets or sets the total number of pages. More...
|
|
uint | Page [get, set] |
| Gets or sets the current page. More...
|
|
uint | PagingCounter [get, set] |
| Gets or sets the starting serial number of first document. More...
|
|
bool | HasPrevPage [get, set] |
| Gets or sets the flag indicating if there is a previous page available to switch. More...
|
|
bool | HasNextPage [get, set] |
| Gets or sets the flag indicating if there is a next page available to switch. More...
|
|
uint | PrevPage [get, set] |
| Gets or sets the previous page number (only if HasPrevPage is set to true, otherwise null). More...
|
|
uint | NextPage [get, set] |
| Gets or sets the next page number (only if HasNextPage is set to true, otherwise null). More...
|
|
List< TData > | Data [get, set] |
| Gets or sets the collection of items returned from API for the query filters and parameters. More...
|
|
Represents an wrapper for a model, providing methods to manage a pagination.
- Template Parameters
-
TData | Type of the data returned from API. |
Changes the page to the first and makes an request to API.
- Returns
- True if the page number was valid and has been changed with success, otherwise false.
Changes the page to the specified in the TotalPages and makes an request to API.
- Returns
- True if the page number was valid and has been changed with success, otherwise false.
Changes the page to the specified in the NextPage and makes an request to API.
- Returns
- True if the page number was valid and has been changed with success, otherwise false.
Changes the page to the specified in the parameter and makes an request to API.
- Parameters
-
page | Page number to be set. |
- Returns
- True if the page number was valid and has been changed with success, otherwise false.
Changes the page to the specified in the PrevPage and makes an request to API.
- Returns
- True if the page number was valid and has been changed with success, otherwise false.
Sets the builder which will be used to change pages.
- Parameters
-
builder | Query builder used for page changes. |
Gets or sets the collection of items returned from API for the query filters and parameters.
Gets or sets the flag indicating if there is a next page available to switch.
Gets or sets the flag indicating if there is a previous page available to switch.
Gets or sets the limit applied to the query.
Gets or sets the next page number (only if HasNextPage is set to true, otherwise null).
Gets or sets the offset applied to the query.
Gets or sets the current page.
Gets or sets the starting serial number of first document.
Gets or sets the previous page number (only if HasPrevPage is set to true, otherwise null).
Gets or sets the total number of elements in Data.
Gets or sets the total number of pages.
The documentation for this class was generated from the following file: