using System; using System.Collections.Generic; using UnityEngine.Scripting; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Unity.Services.Relay.Models { /// /// Deprecated: IPv4 connection details for a relay server. The network protocol (currently supported options are tcp and udp) required by this IP/Port is determined by the relay server configuration and is not indicated here. Prefer the \"relay server endpoint\" collection to see IP/Port combinations with the network protocol required. /// /// IP (v4) address of the relay server /// Port of the relay server [Preserve] [DataContract(Name = "RelayServer")] public class RelayServer { [Preserve] public RelayServer(string ipV4, int port) { IpV4 = ipV4; Port = port; } [Preserve] [DataMember(Name = "ip_v4", IsRequired = true, EmitDefaultValue = true)] public string IpV4{ get; } [Preserve] [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)] public int Port{ get; } } }