Class NoneAssignment
Assignment type used when the final type is not yet determined (e.g., CloudCode hosting before allocation completes) or for allocation errors. Contains only status information - no connection data.
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "NoneAssignment")]
public class NoneAssignment
Constructors
NoneAssignment(string, string, StatusOptions)
Assignment type used when the final type is not yet determined (e.g., CloudCode hosting before allocation completes) or for allocation errors. Contains only status information - no connection data.
Declaration
[Preserve]
public NoneAssignment(string assignmentType, string message = null, NoneAssignment.StatusOptions status = (NoneAssignment.StatusOptions)0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assignmentType | assignmentType param |
| string | message | Error details when status is 'Failed'. Common values include 'Allocation error: <details>' or 'AllocationError'. |
| NoneAssignment.StatusOptions | status | The status of the assignment is one of Timeout, Failed, InProgress, Found |
Properties
AssignmentType
Parameter assignmentType of NoneAssignment
Declaration
[Preserve]
[DataMember(Name = "assignmentType", IsRequired = true, EmitDefaultValue = true)]
public string AssignmentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Message
Error details when status is 'Failed'. Common values include 'Allocation error: <details>' or 'AllocationError'.
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 NoneAssignment.StatusOptions Status { get; }
Property Value
| Type | Description |
|---|---|
| NoneAssignment.StatusOptions |