using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "ResWarGuildBrief")] [Serializable] public class ResWarGuildBrief : IExtensible { [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] public ErrorCode error { get { return this._error ?? ErrorCode.ERR_SUCCESS; } set { this._error = new ErrorCode?(value); } } [XmlIgnore] [Browsable(false)] public bool errorSpecified { get { return this._error != null; } set { bool flag = value == (this._error == null); if (flag) { this._error = (value ? new ErrorCode?(this.error) : null); } } } [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] public ulong guildid { get { return this._guildid ?? 0UL; } set { this._guildid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool guildidSpecified { get { return this._guildid != null; } set { bool flag = value == (this._guildid == null); if (flag) { this._guildid = (value ? new ulong?(this.guildid) : null); } } } [ProtoMember(3, IsRequired = false, Name = "cd", DataFormat = DataFormat.TwosComplement)] public uint cd { get { return this._cd ?? 0u; } set { this._cd = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool cdSpecified { get { return this._cd != null; } set { bool flag = value == (this._cd == null); if (flag) { this._cd = (value ? new uint?(this.cd) : null); } } } [ProtoMember(4, IsRequired = false, Name = "cardcd", DataFormat = DataFormat.TwosComplement)] public uint cardcd { get { return this._cardcd ?? 0u; } set { this._cardcd = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool cardcdSpecified { get { return this._cardcd != null; } set { bool flag = value == (this._cardcd == null); if (flag) { this._cardcd = (value ? new uint?(this.cardcd) : null); } } } [ProtoMember(5, Name = "item", DataFormat = DataFormat.Default)] public List item { get { return this._item; } } [ProtoMember(6, Name = "record", DataFormat = DataFormat.Default)] public List record { get { return this._record; } } [ProtoMember(7, Name = "mineid", DataFormat = DataFormat.TwosComplement)] public List mineid { get { return this._mineid; } } [ProtoMember(8, Name = "chatinfo", DataFormat = DataFormat.Default)] public List chatinfo { get { return this._chatinfo; } } [ProtoMember(9, IsRequired = false, Name = "totalcd", DataFormat = DataFormat.TwosComplement)] public uint totalcd { get { return this._totalcd ?? 0u; } set { this._totalcd = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool totalcdSpecified { get { return this._totalcd != null; } set { bool flag = value == (this._totalcd == null); if (flag) { this._totalcd = (value ? new uint?(this.totalcd) : null); } } } [ProtoMember(10, IsRequired = false, Name = "timecoutdown", DataFormat = DataFormat.TwosComplement)] public uint timecoutdown { get { return this._timecoutdown ?? 0u; } set { this._timecoutdown = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool timecoutdownSpecified { get { return this._timecoutdown != null; } set { bool flag = value == (this._timecoutdown == null); if (flag) { this._timecoutdown = (value ? new uint?(this.timecoutdown) : null); } } } [ProtoMember(11, IsRequired = false, Name = "timetype", DataFormat = DataFormat.TwosComplement)] public uint timetype { get { return this._timetype ?? 0u; } set { this._timetype = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool timetypeSpecified { get { return this._timetype != null; } set { bool flag = value == (this._timetype == null); if (flag) { this._timetype = (value ? new uint?(this.timetype) : null); } } } [ProtoMember(12, IsRequired = false, Name = "rankinfo", DataFormat = DataFormat.Default)] [DefaultValue(null)] public ResWarRankSimpleInfo rankinfo { get { return this._rankinfo; } set { this._rankinfo = value; } } [ProtoMember(13, Name = "buffinfo", DataFormat = DataFormat.Default)] public List buffinfo { get { return this._buffinfo; } } [ProtoMember(14, Name = "buffid", DataFormat = DataFormat.TwosComplement)] public List buffid { get { return this._buffid; } } private ErrorCode? _error; private ulong? _guildid; private uint? _cd; private uint? _cardcd; private readonly List _item = new List(); private readonly List _record = new List(); private readonly List _mineid = new List(); private readonly List _chatinfo = new List(); private uint? _totalcd; private uint? _timecoutdown; private uint? _timetype; private ResWarRankSimpleInfo _rankinfo = null; private readonly List _buffinfo = new List(); private readonly List _buffid = new List(); private IExtension extensionObject; private bool ShouldSerializeerror() { return this.errorSpecified; } private void Reseterror() { this.errorSpecified = false; } private bool ShouldSerializeguildid() { return this.guildidSpecified; } private void Resetguildid() { this.guildidSpecified = false; } private bool ShouldSerializecd() { return this.cdSpecified; } private void Resetcd() { this.cdSpecified = false; } private bool ShouldSerializecardcd() { return this.cardcdSpecified; } private void Resetcardcd() { this.cardcdSpecified = false; } private bool ShouldSerializetotalcd() { return this.totalcdSpecified; } private void Resettotalcd() { this.totalcdSpecified = false; } private bool ShouldSerializetimecoutdown() { return this.timecoutdownSpecified; } private void Resettimecoutdown() { this.timecoutdownSpecified = false; } private bool ShouldSerializetimetype() { return this.timetypeSpecified; } private void Resettimetype() { this.timetypeSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }