using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "GuildSchoolHallGetRankList_M2C")] [Serializable] public class GuildSchoolHallGetRankList_M2C : IExtensible { [ProtoMember(1, Name = "unranklist", DataFormat = DataFormat.Default)] public List unranklist { get { return this._unranklist; } } [ProtoMember(2, IsRequired = false, Name = "guildweeklyschoolpoint", DataFormat = DataFormat.TwosComplement)] public uint guildweeklyschoolpoint { get { return this._guildweeklyschoolpoint ?? 0u; } set { this._guildweeklyschoolpoint = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool guildweeklyschoolpointSpecified { get { return this._guildweeklyschoolpoint != null; } set { bool flag = value == (this._guildweeklyschoolpoint == null); if (flag) { this._guildweeklyschoolpoint = (value ? new uint?(this.guildweeklyschoolpoint) : null); } } } [ProtoMember(3, IsRequired = false, Name = "guildweeklyhallpoint", DataFormat = DataFormat.TwosComplement)] public uint guildweeklyhallpoint { get { return this._guildweeklyhallpoint ?? 0u; } set { this._guildweeklyhallpoint = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool guildweeklyhallpointSpecified { get { return this._guildweeklyhallpoint != null; } set { bool flag = value == (this._guildweeklyhallpoint == null); if (flag) { this._guildweeklyhallpoint = (value ? new uint?(this.guildweeklyhallpoint) : null); } } } [ProtoMember(4, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] public ErrorCode ec { get { return this._ec ?? ErrorCode.ERR_SUCCESS; } set { this._ec = new ErrorCode?(value); } } [XmlIgnore] [Browsable(false)] public bool ecSpecified { get { return this._ec != null; } set { bool flag = value == (this._ec == null); if (flag) { this._ec = (value ? new ErrorCode?(this.ec) : null); } } } [ProtoMember(5, IsRequired = false, Name = "guildweeklyhuntingcount", DataFormat = DataFormat.TwosComplement)] public uint guildweeklyhuntingcount { get { return this._guildweeklyhuntingcount ?? 0u; } set { this._guildweeklyhuntingcount = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool guildweeklyhuntingcountSpecified { get { return this._guildweeklyhuntingcount != null; } set { bool flag = value == (this._guildweeklyhuntingcount == null); if (flag) { this._guildweeklyhuntingcount = (value ? new uint?(this.guildweeklyhuntingcount) : null); } } } [ProtoMember(6, IsRequired = false, Name = "guildweeklydonatecount", DataFormat = DataFormat.TwosComplement)] public uint guildweeklydonatecount { get { return this._guildweeklydonatecount ?? 0u; } set { this._guildweeklydonatecount = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool guildweeklydonatecountSpecified { get { return this._guildweeklydonatecount != null; } set { bool flag = value == (this._guildweeklydonatecount == null); if (flag) { this._guildweeklydonatecount = (value ? new uint?(this.guildweeklydonatecount) : null); } } } private readonly List _unranklist = new List(); private uint? _guildweeklyschoolpoint; private uint? _guildweeklyhallpoint; private ErrorCode? _ec; private uint? _guildweeklyhuntingcount; private uint? _guildweeklydonatecount; private IExtension extensionObject; private bool ShouldSerializeguildweeklyschoolpoint() { return this.guildweeklyschoolpointSpecified; } private void Resetguildweeklyschoolpoint() { this.guildweeklyschoolpointSpecified = false; } private bool ShouldSerializeguildweeklyhallpoint() { return this.guildweeklyhallpointSpecified; } private void Resetguildweeklyhallpoint() { this.guildweeklyhallpointSpecified = false; } private bool ShouldSerializeec() { return this.ecSpecified; } private void Resetec() { this.ecSpecified = false; } private bool ShouldSerializeguildweeklyhuntingcount() { return this.guildweeklyhuntingcountSpecified; } private void Resetguildweeklyhuntingcount() { this.guildweeklyhuntingcountSpecified = false; } private bool ShouldSerializeguildweeklydonatecount() { return this.guildweeklydonatecountSpecified; } private void Resetguildweeklydonatecount() { this.guildweeklydonatecountSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }