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

35 行
824 B

using Newtonsoft.Json;
using UnityEngine.Scripting;
namespace Unity.Services.Relay.Http
{
[Preserve]
public class BasicError: IError
{
[Preserve]
public string Type { get; }
[Preserve]
public string Title { get; }
[Preserve]
public int? Status { get; }
[Preserve]
public int Code { get; }
[Preserve]
public string Detail { get; }
[Preserve]
public BasicError(string type, string title, int? status, int code, string detail)
{
Type = type;
Title = title;
Status = status;
Code = code;
Detail = detail;
}
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}