Class JoinCodeRequest
A request to create a join code.
Inherited Members
Namespace: Unity.Services.Relay.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "JoinCodeRequest")]
public class JoinCodeRequest
Constructors
JoinCodeRequest(Guid)
A request to create a join code.
Declaration
[Preserve]
public JoinCodeRequest(Guid allocationId)
Parameters
Type | Name | Description |
---|---|---|
Guid | allocationId | The UUID of the allocation. The Allocations service maps this allocation ID to the generated join code. The Allocations service shares the allocation connection data with players who use the join code with the |
Properties
AllocationId
The UUID of the allocation. The Allocations service maps this allocation ID to the generated join code. The Allocations service shares the allocation connection data with players who use the join code with the /join
endpoint. This sharing mechanism establishes communication between players via the Relay server data protocol.
Declaration
[Preserve]
[DataMember(Name = "allocationId", IsRequired = true, EmitDefaultValue = true)]
public Guid AllocationId { get; }
Property Value
Type | Description |
---|---|
Guid |