//------------------------------------------------------------------------------
//
// 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.RedPoint
{
public sealed partial class DataRedPoint : Bright.Config.BeanBase
{
public DataRedPoint(JSONNode _json)
{
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
{ if(!_json["ParentID"].IsNumber) { throw new SerializationException(); } ParentID = _json["ParentID"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (RedPoint.NodeType)_json["Type"].AsInt; }
PostInit();
}
public DataRedPoint(int Id, int ParentID, RedPoint.NodeType Type )
{
this.Id = Id;
this.ParentID = ParentID;
this.Type = Type;
PostInit();
}
public static DataRedPoint DeserializeDataRedPoint(JSONNode _json)
{
return new RedPoint.DataRedPoint(_json);
}
///
/// 节点ID
///
public int Id { get; private set; }
///
/// 父节点ID
///
public int ParentID { get; private set; }
///
/// 节点类型
///
public RedPoint.NodeType Type { get; private set; }
public const int __ID__ = -1475526824;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "ParentID:" + ParentID + ","
+ "Type:" + Type + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}