Search Results for

    Show / Hide Table of Contents

    Class CursorQuery

    Cursor-based pagination query parameters.

    Inheritance
    object
    CursorQuery
    IncludeQuery
    Implements
    IQuery
    IRequestParameterProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public class CursorQuery : IQuery, IRequestParameterProvider

    Constructors

    | Edit this page View Source

    CursorQuery()

    Declaration
    public CursorQuery()
    | 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
    Type Name Description
    int limit
    string after
    string before
    QuerySortOrder? order

    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
    Type Description
    string
    | 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
    Type Description
    string
    | 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
    Type Description
    int?
    | 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
    Type Description
    QuerySortOrder?

    Methods

    | Edit this page View Source

    GetRequestParameters()

    Declaration
    public IEnumerable<RequestParameter> GetRequestParameters()
    Returns
    Type Description
    IEnumerable<RequestParameter>

    Implements

    IQuery
    IRequestParameterProvider

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    ResponseCastingExtensions.ToParams(IRequestParameterProvider)
    ResponseCastingExtensions.ToParams(IRequestParameterProvider, params RequestParameter[])
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation