//------------------------------------------------------------------------------ // // 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 { public sealed partial class Text : Bright.Config.BeanBase { public JSONNode json; public Text(JSONNode _json) { { if(!_json["key"].IsString) { throw new SerializationException(); } Key = _json["key"]; } { if(!_json["origin_text"].IsString) { throw new SerializationException(); } OriginText = _json["origin_text"]; } { if(!_json["text_zh_Hans"].IsString) { throw new SerializationException(); } TextZhHans = _json["text_zh_Hans"]; } { if(!_json["text_zh_Hant"].IsString) { throw new SerializationException(); } TextZhHant = _json["text_zh_Hant"]; } { if(!_json["text_en"].IsString) { throw new SerializationException(); } TextEn = _json["text_en"]; } { if(!_json["text_de"].IsString) { throw new SerializationException(); } TextDe = _json["text_de"]; } { if(!_json["text_fr"].IsString) { throw new SerializationException(); } TextFr = _json["text_fr"]; } { if(!_json["text_es"].IsString) { throw new SerializationException(); } TextEs = _json["text_es"]; } { if(!_json["text_pt"].IsString) { throw new SerializationException(); } TextPt = _json["text_pt"]; } { if(!_json["text_it"].IsString) { throw new SerializationException(); } TextIt = _json["text_it"]; } { if(!_json["text_tr"].IsString) { throw new SerializationException(); } TextTr = _json["text_tr"]; } { if(!_json["text_ar"].IsString) { throw new SerializationException(); } TextAr = _json["text_ar"]; } { if(!_json["text_ja"].IsString) { throw new SerializationException(); } TextJa = _json["text_ja"]; } { if(!_json["text_ko"].IsString) { throw new SerializationException(); } TextKo = _json["text_ko"]; } { if(!_json["text_pl"].IsString) { throw new SerializationException(); } TextPl = _json["text_pl"]; } { if(!_json["text_nl"].IsString) { throw new SerializationException(); } TextNl = _json["text_nl"]; } { if(!_json["text_ms"].IsString) { throw new SerializationException(); } TextMs = _json["text_ms"]; } { if(!_json["text_th"].IsString) { throw new SerializationException(); } TextTh = _json["text_th"]; } { if(!_json["text_id"].IsString) { throw new SerializationException(); } TextId = _json["text_id"]; } json = _json; PostInit(); } public Text(string key, string origin_text, string text_zh_Hans, string text_zh_Hant, string text_en, string text_de, string text_fr, string text_es, string text_pt, string text_it, string text_tr, string text_ar, string text_ja, string text_ko, string text_pl, string text_nl, string text_ms, string text_th, string text_id ) { this.Key = key; this.OriginText = origin_text; this.TextZhHans = text_zh_Hans; this.TextZhHant = text_zh_Hant; this.TextEn = text_en; this.TextDe = text_de; this.TextFr = text_fr; this.TextEs = text_es; this.TextPt = text_pt; this.TextIt = text_it; this.TextTr = text_tr; this.TextAr = text_ar; this.TextJa = text_ja; this.TextKo = text_ko; this.TextPl = text_pl; this.TextNl = text_nl; this.TextMs = text_ms; this.TextTh = text_th; this.TextId = text_id; PostInit(); } public static Text DeserializeText(JSONNode _json) { return new Text(_json); } /// /// 主键 /// public string Key { get; private set; } /// /// 开发语言 /// public string OriginText { get; private set; } /// /// Chinese (Simplified) /// public string TextZhHans { get; private set; } /// /// Chinese (Traditional) /// public string TextZhHant { get; private set; } /// /// English /// public string TextEn { get; private set; } /// /// German /// public string TextDe { get; private set; } /// /// French /// public string TextFr { get; private set; } /// /// Spanish /// public string TextEs { get; private set; } /// /// Portuguese /// public string TextPt { get; private set; } /// /// Italian /// public string TextIt { get; private set; } /// /// Turkish /// public string TextTr { get; private set; } /// /// Arabic /// public string TextAr { get; private set; } /// /// Japanese /// public string TextJa { get; private set; } /// /// Korean /// public string TextKo { get; private set; } /// /// Polish /// public string TextPl { get; private set; } /// /// Dutch /// public string TextNl { get; private set; } /// /// Malay /// public string TextMs { get; private set; } /// /// Thai /// public string TextTh { get; private set; } /// /// Indonesian /// public string TextId { get; private set; } public const int __ID__ = 2603341; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Key:" + Key + "," + "OriginText:" + OriginText + "," + "TextZhHans:" + TextZhHans + "," + "TextZhHant:" + TextZhHant + "," + "TextEn:" + TextEn + "," + "TextDe:" + TextDe + "," + "TextFr:" + TextFr + "," + "TextEs:" + TextEs + "," + "TextPt:" + TextPt + "," + "TextIt:" + TextIt + "," + "TextTr:" + TextTr + "," + "TextAr:" + TextAr + "," + "TextJa:" + TextJa + "," + "TextKo:" + TextKo + "," + "TextPl:" + TextPl + "," + "TextNl:" + TextNl + "," + "TextMs:" + TextMs + "," + "TextTh:" + TextTh + "," + "TextId:" + TextId + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }