Class QueryOrder
An order for an individual field that is applied to a query.
Inherited Members
Namespace: Unity.Services.Lobbies.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "QueryOrder")]
public class QueryOrder
Constructors
QueryOrder(bool, FieldOptions)
An order for an individual field that is applied to a query.
Declaration
[Preserve]
public QueryOrder(bool asc = false, QueryOrder.FieldOptions field = (QueryOrder.FieldOptions)0)
Parameters
Type | Name | Description |
---|---|---|
bool | asc | Whether to sort in ascending or descending order. |
QueryOrder.FieldOptions | field | The name of the field to order on. |
Properties
Asc
Whether to sort in ascending or descending order.
Declaration
[Preserve]
[DataMember(Name = "asc", EmitDefaultValue = true)]
public bool Asc { get; }
Property Value
Type | Description |
---|---|
bool |
Field
The name of the field to order on.
Declaration
[Preserve]
[JsonConverter(typeof(StringEnumConverter))]
[DataMember(Name = "field", EmitDefaultValue = false)]
public QueryOrder.FieldOptions Field { get; }
Property Value
Type | Description |
---|---|
QueryOrder.FieldOptions |