//------------------------------------------------------------------------------ // // 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.DeviceCfg { public sealed partial class DataDevice : Bright.Config.BeanBase { public DataDevice(JSONNode _json) { { if(!_json["DeviceName"].IsString) { throw new SerializationException(); } DeviceName = _json["DeviceName"]; } { if(!_json["PerformanceId"].IsNumber) { throw new SerializationException(); } PerformanceId = _json["PerformanceId"]; } PostInit(); } public DataDevice(string DeviceName, int PerformanceId ) { this.DeviceName = DeviceName; this.PerformanceId = PerformanceId; PostInit(); } public static DataDevice DeserializeDataDevice(JSONNode _json) { return new DeviceCfg.DataDevice(_json); } /// /// 机型名字 /// public string DeviceName { get; private set; } /// /// 默认使用性能id /// public int PerformanceId { get; private set; } public const int __ID__ = -1301252448; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "DeviceName:" + DeviceName + "," + "PerformanceId:" + PerformanceId + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }