CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Properties | Public Member Functions | Public Attributes | List of all members
CotcSdk.PagedList< DataType > Class Template Reference

Description

Represents a paginated list, which allows for easy navigation through multiple results.

Properties

bool HasPrevious [get]
 
bool HasNext [get]
 
Bundle ServerData [get]
 

Public Member Functions

Promise< PagedList< DataType > > FetchNext ()
 Fetches the next results and calls the same handler again. More...
 
Promise< PagedList< DataType > > FetchPrevious ()
 Fetches the previous results and calls the same handler again. More...
 
override string ToString ()
 

Public Attributes

int MaxPage
 
int Offset
 
int Total
 
Inheritance diagram for CotcSdk.PagedList< DataType >:

Property Documentation

◆ HasNext

bool CotcSdk.PagedList< DataType >.HasNext
get

Returns
Whether there is a next page. Call FetchNext to go back to it.

◆ HasPrevious

bool CotcSdk.PagedList< DataType >.HasPrevious
get

Returns
Whether there is a previous page. Call FetchPrevious to go back to it.

Member Function Documentation

◆ FetchNext()

Promise<PagedList<DataType> > CotcSdk.PagedList< DataType >.FetchNext ( )

Fetches the next results and calls the same handler again.

◆ FetchPrevious()

Promise<PagedList<DataType> > CotcSdk.PagedList< DataType >.FetchPrevious ( )

Fetches the previous results and calls the same handler again.

Member Data Documentation

◆ Offset

int CotcSdk.PagedList< DataType >.Offset

Returns
The number of the first result in the list.

◆ Total

int CotcSdk.PagedList< DataType >.Total

Returns
The total number of items (possibly greater than the page size).