Class PagedResponse<T>
This class contains all the information pertaining to a paged response.
Inherited Members
Namespace: Unity.Cloud.Assets
Syntax
public abstract class PagedResponse<T> : IPagedResponse<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
PagedResponse(T[], String, IPagedResponse<T>, Int32)
Initializes a new instance of the PagedResponse<T> class.
Declaration
protected PagedResponse(T[] elements, string nextPageToken, IPagedResponse<T> previousPage = null, int pageEndIndex = -1)
Parameters
Type | Name | Description |
---|---|---|
T[] | elements | |
String | nextPageToken | |
IPagedResponse<T> | previousPage | |
Int32 | pageEndIndex |
Properties
Elements
Implement this property to return a collection of
Declaration
public T[] Elements { get; }
Property Value
Type | Description |
---|---|
T[] |
Implements
NextPageToken
Implement this property to return the token for retrieving the next
Declaration
public string NextPageToken { get; }
Property Value
Type | Description |
---|---|
String |
Implements
PageEndIndex
Implement this property to return the search index of the last result on this page.
Declaration
public int PageEndIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
Pagination
Implement this property to return the page format.
Declaration
public Pagination Pagination { get; protected set; }
Property Value
Type | Description |
---|---|
Pagination |
Implements
PreviousPage
Implement this property to return the previous
Declaration
public IPagedResponse<T> PreviousPage { get; protected set; }
Property Value
Type | Description |
---|---|
IPagedResponse<T> |