您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
737 B
32 行
737 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>
|
|
/// JoinCodeData model
|
|
/// </summary>
|
|
/// <param name="join_code">Join code associated with the given connection data</param>
|
|
[Preserve]
|
|
[DataContract(Name = "JoinCodeData")]
|
|
public class JoinCodeData
|
|
{
|
|
[Preserve]
|
|
public JoinCodeData(string joinCode)
|
|
{
|
|
JoinCode = joinCode;
|
|
}
|
|
|
|
[Preserve]
|
|
[DataMember(Name = "join_code", IsRequired = true, EmitDefaultValue = true)]
|
|
public string JoinCode{ get; }
|
|
|
|
}
|
|
}
|
|
|