//------------------------------------------------------------------------------
//
// 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 Luban;
using SimpleJSON;
namespace cfg.test
{
///
/// 这是个测试excel结构
///
public sealed partial class TestExcelBean1 : Luban.BeanBase
{
public TestExcelBean1(JSONNode _buf)
{
{ if(!_buf["x1"].IsNumber) { throw new SerializationException(); } X1 = _buf["x1"]; }
{ if(!_buf["x2"].IsString) { throw new SerializationException(); } X2 = _buf["x2"]; }
{ if(!_buf["x3"].IsNumber) { throw new SerializationException(); } X3 = _buf["x3"]; }
{ if(!_buf["x4"].IsNumber) { throw new SerializationException(); } X4 = _buf["x4"]; }
}
public static TestExcelBean1 DeserializeTestExcelBean1(JSONNode _buf)
{
return new test.TestExcelBean1(_buf);
}
///
/// 最高品质
///
public readonly int X1;
///
/// 黑色的
///
public readonly string X2;
///
/// 蓝色的
///
public readonly int X3;
///
/// 最差品质
///
public readonly float X4;
public const int __ID__ = -1738345160;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "x3:" + X3 + ","
+ "x4:" + X4 + ","
+ "}";
}
}
}