Class MatchIdAssignment
MatchIdAssignment model
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "MatchIdAssignment")]
public class MatchIdAssignment
Constructors
MatchIdAssignment(string, string, StatusOptions, string)
Creates an instance of MatchIdAssignment.
Declaration
[Preserve]
public MatchIdAssignment(string assignmentType, string message = null, MatchIdAssignment.StatusOptions status = (MatchIdAssignment.StatusOptions)0, string matchId = null)
Parameters
Type | Name | Description |
---|---|---|
string | assignmentType | assignmentType param |
string | message | message param |
MatchIdAssignment.StatusOptions | status | The status of the assignment is one of Timeout, Failed, InProgress, Found |
string | matchId | Unique ID of the match. |
Properties
AssignmentType
Parameter assignmentType of MatchIdAssignment
Declaration
[Preserve]
[DataMember(Name = "assignmentType", IsRequired = true, EmitDefaultValue = true)]
public string AssignmentType { get; }
Property Value
Type | Description |
---|---|
string |
MatchId
Unique ID of the match.
Declaration
[Preserve]
[DataMember(Name = "matchId", EmitDefaultValue = false)]
public string MatchId { get; }
Property Value
Type | Description |
---|---|
string |
Message
Parameter message of MatchIdAssignment
Declaration
[Preserve]
[DataMember(Name = "message", EmitDefaultValue = false)]
public string Message { get; }
Property Value
Type | Description |
---|---|
string |
Status
The status of the assignment is one of Timeout, Failed, InProgress, Found
Declaration
[Preserve]
[JsonConverter(typeof(StringEnumConverter))]
[DataMember(Name = "status", EmitDefaultValue = false)]
public MatchIdAssignment.StatusOptions Status { get; }
Property Value
Type | Description |
---|---|
MatchIdAssignment.StatusOptions |