using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "AskGuildArenaInfoReq")] [Serializable] public class AskGuildArenaInfoReq : IExtensible { [ProtoMember(1, Name = "warData", DataFormat = DataFormat.Default)] public List warData { get { return this._warData; } } [ProtoMember(2, Name = "allguildInfo", DataFormat = DataFormat.Default)] public List allguildInfo { get { return this._allguildInfo; } } [ProtoMember(3, IsRequired = false, Name = "timeState", DataFormat = DataFormat.TwosComplement)] public GuildArenaState timeState { get { return this._timeState ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; } set { this._timeState = new GuildArenaState?(value); } } [XmlIgnore] [Browsable(false)] public bool timeStateSpecified { get { return this._timeState != null; } set { bool flag = value == (this._timeState == null); if (flag) { this._timeState = (value ? new GuildArenaState?(this.timeState) : null); } } } [ProtoMember(4, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] public ErrorCode errorcode { get { return this._errorcode ?? ErrorCode.ERR_SUCCESS; } set { this._errorcode = new ErrorCode?(value); } } [XmlIgnore] [Browsable(false)] public bool errorcodeSpecified { get { return this._errorcode != null; } set { bool flag = value == (this._errorcode == null); if (flag) { this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); } } } private readonly List _warData = new List(); private readonly List _allguildInfo = new List(); private GuildArenaState? _timeState; private ErrorCode? _errorcode; private IExtension extensionObject; private bool ShouldSerializetimeState() { return this.timeStateSpecified; } private void ResettimeState() { this.timeStateSpecified = false; } private bool ShouldSerializeerrorcode() { return this.errorcodeSpecified; } private void Reseterrorcode() { this.errorcodeSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }