//------------------------------------------------------------------------------ // // 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 Invite : Bright.Config.BeanBase { public JSONNode json; public Invite(JSONNode _json) { { if(!_json["NumInvite"].IsNumber) { throw new SerializationException(); } NumInvite = _json["NumInvite"]; } { if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; } { if(!_json["GiftIcon"].IsString) { throw new SerializationException(); } GiftIcon = _json["GiftIcon"]; } json = _json; PostInit(); } public Invite(int NumInvite, int DropID, string GiftIcon ) { this.NumInvite = NumInvite; this.DropID = DropID; this.GiftIcon = GiftIcon; PostInit(); } public static Invite DeserializeInvite(JSONNode _json) { return new Invite(_json); } public int NumInvite { get; private set; } public int DropID { get; private set; } public string GiftIcon { get; private set; } public const int __ID__ = -2099832023; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "NumInvite:" + NumInvite + "," + "DropID:" + DropID + "," + "GiftIcon:" + GiftIcon + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }