using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "GetDragonTopInfoRes")] [Serializable] public class GetDragonTopInfoRes : IExtensible { [ProtoMember(1, 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); } } } [ProtoMember(2, Name = "dragonInfo", DataFormat = DataFormat.Default)] public List dragonInfo { get { return this._dragonInfo; } } private ErrorCode? _errorCode; private readonly List _dragonInfo = new List(); private IExtension extensionObject; private bool ShouldSerializeerrorCode() { return this.errorCodeSpecified; } private void ReseterrorCode() { this.errorCodeSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }