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