Version: en
Contracts - Standard Ticket
warning
This documentation is now deprecated. If you are using Matchmaker Self Serve though UDash, please use the documentation here.
#
Main ContractField | Description | Type |
---|---|---|
attributes | Indexable fields to use when querying for tickets from inside of match functions. Example attributes include map, mode, platform, players in the ticket, team skill, and games won. Note that attributes are currently limited to double values. (Optional) | Dictionary<string, double> |
properties | This field is a map of Base64-encoded strings with the format <string, byte[]> . The byte[] must be a Base64-encoded string. These fields are deserialized and used by the matchmaking logic. qos , players , and data should each contain a Base64-encoded string in the following format:qos: { "QosResults": { "Region1": {"RegionId": "Region1", "PacketLoss": 0.1, "Latency": 23}, "Region2": {"RegionId": "Region2", "PacketLoss": 0.3, "Latency": 115} } } players: [{"id": "123", "data": "{}"}, {"id": "456", "data": "{}"}] data: {} | Dictionary<string, byte[]> |
#
Properties - QoSnote
The key must be lowercase. The value must be a Base64-encoded string.
Field | Description | Type |
---|---|---|
QosResults | Is an object that holds a dictionary of StandardQoSResult that is indexed by the RegionId for each result. | Dictionary<string,StandardQoSResult> |
#
Properties - QoS - StandardQoSResultField | Description | Type |
---|---|---|
RegionId | Contains the id of the QoS region the results belong to. | string |
PacketLoss | The Packet Loss ratio to this QoS region. | double |
Latency | The Latency to this QoS region. | double |
#
Properties - Playersnote
The key must be lowercase. The value must be a Base64-encoded string.
Field | Description | Type |
---|---|---|
id | The unique ID of the player. | string |
data | A custom data object (Optional)(currently not used). | object |
#
Properties - Datanote
The key must be lowercase. The value must be a Base64-encoded string.
note
This field is currently not used. This field is optional.
#
Create Ticket ResponseField | Description | Type |
---|---|---|
id | The identifier of the new ticket. Note: This identifier is not guaranteed to be a GUID. | string |
#
Get Ticket Response (Polling)Field | Description | Type |
---|---|---|
attributes | Submitted attributes. | See Main Contract. |
properties | Submitted properties. | See Main Contract. |
created | Unix UTC milliseconds for when the ticket was created. This field is automatically indexed and made available for a query as the attribute "created" . | long |
assignment | An object containing the outcome of the matchmaking request. | object |
assignment.connection | Connection information for connecting to the dedicated game server or session. | string |
assignment.error | A customizable or well-known value for handling matchmaking failures. Several known errors:
| string |
assignment.properties | Currently not used. | object |
assignment.matchproperties | This data is provided to all players on a ticket and the game server. In the preceding example, the match properties tell the game client which players are on which team. If assignment.error is non null and has a value of StandardTicketError , this field will include error details. | object |
#
MatchProperties ContractThe match properties list all teams and their players.