Class Player
An object representing a single player.
Inherited Members
Namespace: Unity.Services.Apis.Matchmaker
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Player")]
[Preserve]
public class Player
Constructors
Player(string, object, List<QosResult>)
Initializes a new instance of the Player class.
Declaration
[Preserve]
public Player(string id = null, object customData = null, List<QosResult> qosResults = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The unique ID of the player. Usually, the ID received as a result of authenticating a player. (required). |
object | customData | A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition.. |
List<Qos |
qosResults | A list of QosResult.. |
Properties
CustomData
A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition.
Declaration
[DataMember(Name = "customData", EmitDefaultValue = false)]
[Preserve]
public object CustomData { get; set; }
Property Value
Type | Description |
---|---|
object | A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition. |
Id
The unique ID of the player. Usually, the ID received as a result of authenticating a player.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The unique ID of the player. Usually, the ID received as a result of authenticating a player. |
QosResults
A list of QosResult.
Declaration
[DataMember(Name = "qosResults", EmitDefaultValue = true)]
[Preserve]
public List<QosResult> QosResults { get; set; }