//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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); } /// /// 活动id /// public readonly int Id; /// /// 活动名称 /// public readonly string Name; /// /// 开始时间 /// public readonly string StartTime; /// /// 结束时间 /// public readonly string EndTime; /// /// 是否启用(1是 0否) /// 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 + "," + "}"; } } }