Class Region
Region model
Inherited Members
Namespace: Unity.Services.Relay.Models
Assembly: Unity.Services.Multiplayer.dll
Syntax
[Preserve]
[DataContract(Name = "Region")]
public class Region
Constructors
Region(string, string)
Creates an instance of Region.
Declaration
[Preserve]
public Region(string id, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The region ID used in allocation requests. |
| string | description | A human-readable description of the region. It can include geographical information such as the city name or country. |
Properties
Description
A human-readable description of the region. It can include geographical information such as the city name or country.
Declaration
[Preserve]
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
public string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Id
The region ID used in allocation requests.
Declaration
[Preserve]
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |