using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "BanquetAwardRes")] [Serializable] public class BanquetAwardRes : 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, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] public uint banquet_id { get { return this._banquet_id ?? 0u; } set { this._banquet_id = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool banquet_idSpecified { get { return this._banquet_id != null; } set { bool flag = value == (this._banquet_id == null); if (flag) { this._banquet_id = (value ? new uint?(this.banquet_id) : null); } } } [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] public List items { get { return this._items; } } private ErrorCode? _result; private uint? _banquet_id; private readonly List _items = new List(); private IExtension extensionObject; private bool ShouldSerializeresult() { return this.resultSpecified; } private void Resetresult() { this.resultSpecified = false; } private bool ShouldSerializebanquet_id() { return this.banquet_idSpecified; } private void Resetbanquet_id() { this.banquet_idSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }