WIn_RustTools/RustTools/DataList/SearchAllList.cs
2024-08-23 07:59:16 +08:00

88 lines
1.5 KiB
C#

using Newtonsoft.Json;
namespace RustTools.DataList;
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
#pragma warning disable IDE1006 // 命名样式
public class SearchAllList
{
[JsonProperty("code")]
public int Code
{
get; set;
}
[JsonProperty("message")]
public string Message
{
get; set;
}
[JsonProperty("data")]
public Data data
{
get; set;
}
public class Data
{
[JsonProperty("total")]
public List<TotalItem> Total
{
get; set;
}
[JsonProperty("type")]
public List<TypeItem> Type
{
get; set;
}
}
public class TotalItem
{
[JsonProperty("title")]
public string Title
{
get; set;
}
[JsonProperty("type")]
public string Type
{
get; set;
}
[JsonProperty("content")]
public string Content
{
get; set;
}
[JsonProperty("icon")]
public string Icon
{
get; set;
}
[JsonProperty("id")]
public string Id
{
get; set;
}
}
public class TypeItem
{
[JsonProperty("typeName")]
public string TypeName
{
get; set;
}
[JsonProperty("num")]
public int Num
{
get; set;
}
}
}