using System; using System.Collections.Generic; using UnityEngine.Scripting; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Unity.Services.Relay.Http; namespace Unity.Services.Relay.Models { /// /// Region model /// The region id used in allocation requests /// A human readable description of the region. May include geographical information, for example, city name, country. /// [Preserve] [DataContract(Name = "Region")] public class Region { /// /// Creates an instance of Region. /// /// The region id used in allocation requests /// A human readable description of the region. May include geographical information, for example, city name, country. [Preserve] public Region(string id, string description) { Id = id; Description = description; } /// /// The region id used in allocation requests /// [Preserve] [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id{ get; } /// /// A human readable description of the region. May include geographical information, for example, city name, country. /// [Preserve] [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] public string Description{ get; } } }