docs.unity3d.com
Search Results for

    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
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Lobbies
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class QueryRequest

    Constructors

    QueryRequest(int?, int?, bool, List<QueryFilter>, List<QueryOrder>, string)

    Initializes a new instance of the QueryRequest class.

    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
    int? count

    The number of results to return. (default to 10).

    int? skip

    The number of results to skip before selecting results to return. (default to 0).

    bool sampleResults

    Whether a random sample of results that match the search filter should be returned. (default to false).

    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; set; }
    Property Value
    Type Description
    string

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

    Count

    The number of results to return.

    Declaration
    [Preserve]
    public int? Count { get; set; }
    Property Value
    Type Description
    int?

    The number of results to return.

    Filter

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

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

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

    Order

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

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

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

    SampleResults

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

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

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

    Skip

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

    Declaration
    [Preserve]
    public int? Skip { get; set; }
    Property Value
    Type Description
    int?

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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)