您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
39 行
903 B
39 行
903 B
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
|
|
{
|
|
/// <summary>
|
|
/// JoinData model
|
|
/// <param name="allocation">allocation param</param>
|
|
/// </summary>
|
|
|
|
[Preserve]
|
|
[DataContract(Name = "JoinData")]
|
|
public class JoinData
|
|
{
|
|
/// <summary>
|
|
/// Creates an instance of JoinData.
|
|
/// </summary>
|
|
/// <param name="allocation">allocation param</param>
|
|
[Preserve]
|
|
public JoinData(JoinAllocation allocation)
|
|
{
|
|
Allocation = allocation;
|
|
}
|
|
|
|
|
|
[Preserve]
|
|
[DataMember(Name = "allocation", IsRequired = true, EmitDefaultValue = true)]
|
|
public JoinAllocation Allocation{ get; }
|
|
|
|
}
|
|
}
|
|
|