//------------------------------------------------------------------------------
//
// 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 CountryPoints : Bright.Config.BeanBase
{
public JSONNode json;
public CountryPoints(JSONNode _json)
{
{ if(!_json["Country"].IsString) { throw new SerializationException(); } Country = _json["Country"]; }
{ if(!_json["IosInitPoints"].IsNumber) { throw new SerializationException(); } IosInitPoints = _json["IosInitPoints"]; }
{ if(!_json["AndroidInitPoints"].IsNumber) { throw new SerializationException(); } AndroidInitPoints = _json["AndroidInitPoints"]; }
json = _json;
PostInit();
}
public CountryPoints(string Country, int IosInitPoints, int AndroidInitPoints )
{
this.Country = Country;
this.IosInitPoints = IosInitPoints;
this.AndroidInitPoints = AndroidInitPoints;
PostInit();
}
public static CountryPoints DeserializeCountryPoints(JSONNode _json)
{
return new CountryPoints(_json);
}
///
/// 国家地区
///
public string Country { get; private set; }
///
/// ios初始vip积分
///
public int IosInitPoints { get; private set; }
///
/// android初始vip积分
///
public int AndroidInitPoints { get; private set; }
public const int __ID__ = -950974471;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Country:" + Country + ","
+ "IosInitPoints:" + IosInitPoints + ","
+ "AndroidInitPoints:" + AndroidInitPoints + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}