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