//------------------------------------------------------------------------------ // // 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 IAPItemList : Bright.Config.BeanBase { public JSONNode json; public IAPItemList(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["Product_Id1"].IsString) { throw new SerializationException(); } ProductId1 = _json["Product_Id1"]; } { if(!_json["Trade_Group"].IsString) { throw new SerializationException(); } TradeGroup = _json["Trade_Group"]; } { if(!_json["Trade_Type"].IsString) { throw new SerializationException(); } TradeType = _json["Trade_Type"]; } { if(!_json["Trade_Name"].IsString) { throw new SerializationException(); } TradeName = _json["Trade_Name"]; } { if(!_json["Payment_Amount"].IsNumber) { throw new SerializationException(); } PaymentAmount = _json["Payment_Amount"]; } { if(!_json["VIPPoint"].IsNumber) { throw new SerializationException(); } VIPPoint = _json["VIPPoint"]; } { if(!_json["Cost_Token"].IsNumber) { throw new SerializationException(); } CostToken = _json["Cost_Token"]; } { if(!_json["LuckAddToCategory"].IsNumber) { throw new SerializationException(); } LuckAddToCategory = _json["LuckAddToCategory"]; } { if(!_json["LuckAddToFish"].IsNumber) { throw new SerializationException(); } LuckAddToFish = _json["LuckAddToFish"]; } json = _json; PostInit(); } public IAPItemList(int ID, string Product_Id1, string Trade_Group, string Trade_Type, string Trade_Name, float Payment_Amount, int VIPPoint, int Cost_Token, float LuckAddToCategory, float LuckAddToFish ) { this.ID = ID; this.ProductId1 = Product_Id1; this.TradeGroup = Trade_Group; this.TradeType = Trade_Type; this.TradeName = Trade_Name; this.PaymentAmount = Payment_Amount; this.VIPPoint = VIPPoint; this.CostToken = Cost_Token; this.LuckAddToCategory = LuckAddToCategory; this.LuckAddToFish = LuckAddToFish; PostInit(); } public static IAPItemList DeserializeIAPItemList(JSONNode _json) { return new IAPItemList(_json); } /// /// #IAP的ID与商店(苹果、谷歌)对应。礼包等付费内容调用IAP的ID /// public int ID { get; private set; } public string ProductId1 { get; private set; } /// /// 统计数据使用,不对玩家展示 /// public string TradeGroup { get; private set; } /// /// 统计数据使用,不对玩家展示 /// public string TradeType { get; private set; } /// /// 统计数据使用,不对玩家展示 /// public string TradeName { get; private set; } /// /// (默认美元) /// public float PaymentAmount { get; private set; } public int VIPPoint { get; private set; } public int CostToken { get; private set; } /// /// 10美元 = 1条鱼 /// public float LuckAddToCategory { get; private set; } public float LuckAddToFish { get; private set; } public const int __ID__ = 457548969; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "ProductId1:" + ProductId1 + "," + "TradeGroup:" + TradeGroup + "," + "TradeType:" + TradeType + "," + "TradeName:" + TradeName + "," + "PaymentAmount:" + PaymentAmount + "," + "VIPPoint:" + VIPPoint + "," + "CostToken:" + CostToken + "," + "LuckAddToCategory:" + LuckAddToCategory + "," + "LuckAddToFish:" + LuckAddToFish + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }