//------------------------------------------------------------------------------
//
// 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.StringCfg
{
public sealed partial class DataString : Bright.Config.BeanBase
{
public DataString(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Key"].IsString) { throw new SerializationException(); } Key = _json["Key"]; }
{ if(!_json["Value"].IsString) { throw new SerializationException(); } Value = _json["Value"]; }
{ if(!_json["Value_En"].IsString) { throw new SerializationException(); } ValueEn = _json["Value_En"]; }
PostInit();
}
public DataString(int ID, string Key, string Value, string Value_En )
{
this.ID = ID;
this.Key = Key;
this.Value = Value;
this.ValueEn = Value_En;
PostInit();
}
public static DataString DeserializeDataString(JSONNode _json)
{
return new StringCfg.DataString(_json);
}
///
/// 配置用ID
///
public int ID { get; private set; }
///
/// 索引
///
public string Key { get; private set; }
///
/// 内容
///
public string Value { get; private set; }
///
/// 内容(英)
///
public string ValueEn { get; private set; }
public const int __ID__ = -1090136362;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Key:" + Key + ","
+ "Value:" + Value + ","
+ "ValueEn:" + ValueEn + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}