//------------------------------------------------------------------------------ // // 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 Bright.Serialization; using System.Collections.Generic; using SimpleJSON; namespace cfg.UIInterfaceBannerGoToCfg { public sealed partial class DataUIBanner : Bright.Config.BeanBase { public DataUIBanner(JSONNode _json) { { if(!_json["index"].IsNumber) { throw new SerializationException(); } Index = _json["index"]; } { if(!_json["BannerImgPath"].IsString) { throw new SerializationException(); } BannerImgPath = _json["BannerImgPath"]; } { if(!_json["type"].IsNumber) { throw new SerializationException(); } Type = _json["type"]; } PostInit(); } public DataUIBanner(int index, string BannerImgPath, int type ) { this.Index = index; this.BannerImgPath = BannerImgPath; this.Type = type; PostInit(); } public static DataUIBanner DeserializeDataUIBanner(JSONNode _json) { return new UIInterfaceBannerGoToCfg.DataUIBanner(_json); } /// /// 序号 /// public int Index { get; private set; } /// /// 图片路径 /// public string BannerImgPath { get; private set; } /// /// 跳转类型 /// public int Type { get; private set; } public const int __ID__ = 1023883208; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Index:" + Index + "," + "BannerImgPath:" + BannerImgPath + "," + "Type:" + Type + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }