您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
914 B

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>
/// A request to create an allocation
/// </summary>
/// <param name="max_connections">Indicates the maximum number of connections that the client will allow to communicate with them. It will also be used in order to find a relay with sufficient capacity</param>
[Preserve]
[DataContract(Name = "AllocationRequest")]
public class AllocationRequest
{
[Preserve]
public AllocationRequest(int maxConnections)
{
MaxConnections = maxConnections;
}
[Preserve]
[DataMember(Name = "max_connections", IsRequired = true, EmitDefaultValue = true)]
public int MaxConnections{ get; }
}
}