Class CursorQuery
Cursor-based pagination query parameters.
Assembly: Glitch9.IO.dll
Syntax
public class CursorQuery : IQuery, IRequestParameterProvider
Constructors
|
Edit this page
View Source
CursorQuery()
Declaration
|
Edit this page
View Source
CursorQuery(int, string, string, QuerySortOrder?)
Declaration
public CursorQuery(int limit, string after = null, string before = null, QuerySortOrder? order = null)
Parameters
Properties
|
Edit this page
View Source
After
Optional. A cursor for use in pagination.
after is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects,
ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
Declaration
public string After { get; set; }
Property Value
|
Edit this page
View Source
Before
Optional. A cursor for use in pagination.
Before is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects,
ending with obj_foo, your subsequent call can include Before=obj_foo in order to fetch the previous page of the list.
Declaration
public string Before { get; set; }
Property Value
|
Edit this page
View Source
Limit
Optional. A limit on the number of objects to be returned.
Limit can range between 1 and 100, and the default is 20.
Declaration
public int? Limit { get; set; }
Property Value
|
Edit this page
View Source
Order
Optional. Sort order by the created_at timestamp of the objects.
asc for ascending order and desc for descending order.
Declaration
public QuerySortOrder? Order { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetRequestParameters()
Declaration
public IEnumerable<RequestParameter> GetRequestParameters()
Returns
Implements
Extension Methods