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
{
///
/// 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
{
///
/// 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]
public RelayServer(string ipV4, int port)
{
IpV4 = ipV4;
Port = port;
}
///
/// IP (v4) address of the relay server
///
[Preserve]
[DataMember(Name = "ipV4", IsRequired = true, EmitDefaultValue = true)]
public string IpV4{ get; }
///
/// Port of the relay server
///
[Preserve]
[DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
public int Port{ get; }
}
}