Class CreateTicketRequest
CreateTicketRequest
Inherited Members
Namespace: Unity.Services.Apis.Matchmaker
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "CreateTicketRequest")]
[Preserve]
public class CreateTicketRequest
Constructors
CreateTicketRequest(string, Dictionary<string, object>, List<Player>)
Initializes a new instance of the Create
Declaration
[Preserve]
public CreateTicketRequest(string queueName = null, Dictionary<string, object> attributes = null, List<Player> players = null)
Parameters
Type | Name | Description |
---|---|---|
string | queueName | A logical grouping of tickets, where tickets get considered for matchmaking together. Has to match one of the queue names in the matchmaking config. If not provided, the default queue will be used.. |
Dictionary<string, object> | attributes | An object that holds a dictionary of attributes (number or string), indexed by the attribute name. The attributes are compared against the corresponding filters defined in the matchmaking config and used to segment the ticket population into pools. The default pool is used if a pool isn't provided.. |
List<Player> | players | A list of players. (required). |
Properties
Attributes
An object that holds a dictionary of attributes (number or string), indexed by the attribute name. The attributes are compared against the corresponding filters defined in the matchmaking config and used to segment the ticket population into pools. The default pool is used if a pool isn't provided.
Declaration
[DataMember(Name = "attributes", EmitDefaultValue = true)]
[Preserve]
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> | An object that holds a dictionary of attributes (number or string), indexed by the attribute name. The attributes are compared against the corresponding filters defined in the matchmaking config and used to segment the ticket population into pools. The default pool is used if a pool isn't provided. |
Players
A list of players.
Declaration
[DataMember(Name = "players", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<Player> Players { get; set; }
Property Value
QueueName
A logical grouping of tickets, where tickets get considered for matchmaking together. Has to match one of the queue names in the matchmaking config. If not provided, the default queue will be used.
Declaration
[DataMember(Name = "queueName", EmitDefaultValue = true)]
[Preserve]
public string QueueName { get; set; }
Property Value
Type | Description |
---|---|
string | A logical grouping of tickets, where tickets get considered for matchmaking together. Has to match one of the queue names in the matchmaking config. If not provided, the default queue will be used. |