using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "FetchDGAppRes")] [Serializable] public class FetchDGAppRes : IExtensible { [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] public ErrorCode result { get { return this._result ?? ErrorCode.ERR_SUCCESS; } set { this._result = new ErrorCode?(value); } } [XmlIgnore] [Browsable(false)] public bool resultSpecified { get { return this._result != null; } set { bool flag = value == (this._result == null); if (flag) { this._result = (value ? new ErrorCode?(this.result) : null); } } } [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] public List roleid { get { return this._roleid; } } [ProtoMember(3, Name = "rolename", DataFormat = DataFormat.Default)] public List rolename { get { return this._rolename; } } [ProtoMember(4, Name = "ppt", DataFormat = DataFormat.TwosComplement)] public List ppt { get { return this._ppt; } } [ProtoMember(5, Name = "time", DataFormat = DataFormat.TwosComplement)] public List time { get { return this._time; } } [ProtoMember(6, Name = "level", DataFormat = DataFormat.TwosComplement)] public List level { get { return this._level; } } [ProtoMember(7, Name = "profession", DataFormat = DataFormat.TwosComplement)] public List profession { get { return this._profession; } } private ErrorCode? _result; private readonly List _roleid = new List(); private readonly List _rolename = new List(); private readonly List _ppt = new List(); private readonly List _time = new List(); private readonly List _level = new List(); private readonly List _profession = new List(); private IExtension extensionObject; private bool ShouldSerializeresult() { return this.resultSpecified; } private void Resetresult() { this.resultSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }