您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
46 行
1.4 KiB
46 行
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.Scripting;
|
|
using System.Runtime.Serialization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using Unity.Services.Lobbies.Http;
|
|
|
|
|
|
|
|
namespace Unity.Services.Lobbies.Models
|
|
{
|
|
/// <summary>
|
|
/// Additional detail about an error. This may include detailed validation failure messages, debugging information, troubleshooting steps, or more.
|
|
/// <param name="errorType">errorType param</param>
|
|
/// <param name="message">message param</param>
|
|
/// </summary>
|
|
|
|
[Preserve]
|
|
[DataContract(Name = "Detail")]
|
|
public class Detail
|
|
{
|
|
/// <summary>
|
|
/// Additional detail about an error. This may include detailed validation failure messages, debugging information, troubleshooting steps, or more.
|
|
/// </summary>
|
|
/// <param name="errorType">errorType param</param>
|
|
/// <param name="message">message param</param>
|
|
[Preserve]
|
|
public Detail(string errorType = default, string message = default)
|
|
{
|
|
ErrorType = errorType;
|
|
Message = message;
|
|
}
|
|
|
|
|
|
[Preserve]
|
|
[DataMember(Name = "errorType", EmitDefaultValue = false)]
|
|
public string ErrorType{ get; }
|
|
|
|
[Preserve]
|
|
[DataMember(Name = "message", EmitDefaultValue = false)]
|
|
public string Message{ get; }
|
|
|
|
}
|
|
}
|
|
|