docs.unity.cn
    Show / Hide Table of Contents

    Class QueryRequest

    The body of a Query request which defines how to sort and filter results, how many results to return, etc.

    Inheritance
    Object
    QueryRequest
    Namespace: Unity.Services.Lobbies.Models
    Syntax
    [Preserve]
    public class QueryRequest

    Constructors

    QueryRequest(Nullable<Int32>, Nullable<Int32>, Boolean, List<QueryFilter>, List<QueryOrder>, String)

    The body of a Query request which defines how to sort and filter results, how many results to return, etc.

    Declaration
    [Preserve]
    public QueryRequest(int? count = 10, int? skip = 0, bool sampleResults = false, List<QueryFilter> filter = null, List<QueryOrder> order = null, string continuationToken = null)
    Parameters
    Type Name Description
    Nullable<Int32> count

    The number of results to return.

    Nullable<Int32> skip

    The number of results to skip before selecting results to return.

    Boolean sampleResults

    Whether a random sample of results that match the search filter should be returned.

    List<QueryFilter> filter

    A list of filters which can be used to narrow down which lobbies to return.

    List<QueryOrder> order

    A list of orders which define how the results should be ordered in the response.

    String continuationToken

    A continuation token that can be passed to subsequent query requests to fetch the next page of results.

    Properties

    ContinuationToken

    A continuation token that can be passed to subsequent query requests to fetch the next page of results.

    Declaration
    [Preserve]
    public string ContinuationToken { get; }
    Property Value
    Type Description
    String

    Count

    The number of results to return.

    Declaration
    [Preserve]
    public int? Count { get; }
    Property Value
    Type Description
    Nullable<Int32>

    Filter

    A list of filters which can be used to narrow down which lobbies to return.

    Declaration
    [Preserve]
    public List<QueryFilter> Filter { get; }
    Property Value
    Type Description
    List<QueryFilter>

    Order

    A list of orders which define how the results should be ordered in the response.

    Declaration
    [Preserve]
    public List<QueryOrder> Order { get; }
    Property Value
    Type Description
    List<QueryOrder>

    SampleResults

    Whether a random sample of results that match the search filter should be returned.

    Declaration
    [Preserve]
    public bool SampleResults { get; }
    Property Value
    Type Description
    Boolean

    Skip

    The number of results to skip before selecting results to return.

    Declaration
    [Preserve]
    public int? Skip { get; }
    Property Value
    Type Description
    Nullable<Int32>
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 14, 2023