74 lines
2.0 KiB
C#
74 lines
2.0 KiB
C#
|
||
//------------------------------------------------------------------------------
|
||
// <auto-generated>
|
||
// This code was generated by a tool.
|
||
// Changes to this file may cause incorrect behavior and will be lost if
|
||
// the code is regenerated.
|
||
// </auto-generated>
|
||
//------------------------------------------------------------------------------
|
||
|
||
using Luban;
|
||
using SimpleJSON;
|
||
|
||
|
||
namespace cfg.data
|
||
{
|
||
public sealed partial class Activity : Luban.BeanBase
|
||
{
|
||
public Activity(JSONNode _buf)
|
||
{
|
||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
||
{ if(!_buf["start_time"].IsString) { throw new SerializationException(); } StartTime = _buf["start_time"]; }
|
||
{ if(!_buf["end_time"].IsString) { throw new SerializationException(); } EndTime = _buf["end_time"]; }
|
||
{ if(!_buf["enable"].IsNumber) { throw new SerializationException(); } Enable = _buf["enable"]; }
|
||
}
|
||
|
||
public static Activity DeserializeActivity(JSONNode _buf)
|
||
{
|
||
return new data.Activity(_buf);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 活动id
|
||
/// </summary>
|
||
public readonly int Id;
|
||
/// <summary>
|
||
/// 活动名称
|
||
/// </summary>
|
||
public readonly string Name;
|
||
/// <summary>
|
||
/// 开始时间
|
||
/// </summary>
|
||
public readonly string StartTime;
|
||
/// <summary>
|
||
/// 结束时间
|
||
/// </summary>
|
||
public readonly string EndTime;
|
||
/// <summary>
|
||
/// 是否启用(1是 0否)
|
||
/// </summary>
|
||
public readonly int Enable;
|
||
|
||
public const int __ID__ = 1650809075;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public void ResolveRef(Tables tables)
|
||
{
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return "{ "
|
||
+ "id:" + Id + ","
|
||
+ "name:" + Name + ","
|
||
+ "startTime:" + StartTime + ","
|
||
+ "endTime:" + EndTime + ","
|
||
+ "enable:" + Enable + ","
|
||
+ "}";
|
||
}
|
||
}
|
||
|
||
}
|
||
|