Struct Pagination
This data structure contains the necessary information to create a page.
Inherited Members
Namespace: Unity.Cloud.Assets
Syntax
public struct Pagination
Constructors
Pagination(String, Int32, Int32)
Initializes and returns a Pagination object.
Declaration
public Pagination(string sortingField, int pageSize = 0, int pageNumber = 1)
Parameters
Type | Name | Description |
---|---|---|
String | sortingField | The field to sort the elements of the page. |
Int32 | pageSize | The amount of elements per page. |
Int32 | pageNumber | The number of the page to fetch. |
Exceptions
Type | Condition |
---|---|
InvalidArgumentException | Throws if the |
Properties
PageNumber
Implement this property to return the offset window over all items.
Declaration
public int PageNumber { get; set; }
Property Value
Type | Description |
---|---|
Int32 | A number greater than zero. |
PageSize
Returns the number of items per page.
Declaration
public int PageSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 | A number greater than zero. |
SortingField
Returns the sorting method for the items of the page.
Declaration
public readonly string SortingField { get; }
Property Value
Type | Description |
---|---|
String | A sorting method. |