您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
38 行
1.2 KiB
38 行
1.2 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
/// <param name="ip_v4">IP (v4) address of the relay server</param>
|
|
/// <param name="port">Port of the relay server</param>
|
|
[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; }
|
|
|
|
}
|
|
}
|
|
|