//------------------------------------------------------------------------------ // // 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 ClubAvatar : Bright.Config.BeanBase { public JSONNode json; public ClubAvatar(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["Avatar"].IsString) { throw new SerializationException(); } Avatar = _json["Avatar"]; } json = _json; PostInit(); } public ClubAvatar(int ID, string Avatar ) { this.ID = ID; this.Avatar = Avatar; PostInit(); } public static ClubAvatar DeserializeClubAvatar(JSONNode _json) { return new ClubAvatar(_json); } /// /// 头像图标 /// public int ID { get; private set; } /// /// 头像名称 /// public string Avatar { get; private set; } public const int __ID__ = -1413788209; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Avatar:" + Avatar + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }