using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "GetLuckyActivityInfoRes")] [Serializable] public class GetLuckyActivityInfoRes : 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 = "itemrecord", DataFormat = DataFormat.Default)] public List itemrecord { get { return this._itemrecord; } } [ProtoMember(3, IsRequired = false, Name = "currencytype", DataFormat = DataFormat.TwosComplement)] public uint currencytype { get { return this._currencytype ?? 0u; } set { this._currencytype = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool currencytypeSpecified { get { return this._currencytype != null; } set { bool flag = value == (this._currencytype == null); if (flag) { this._currencytype = (value ? new uint?(this.currencytype) : null); } } } [ProtoMember(4, IsRequired = false, Name = "price", DataFormat = DataFormat.TwosComplement)] public uint price { get { return this._price ?? 0u; } set { this._price = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool priceSpecified { get { return this._price != null; } set { bool flag = value == (this._price == null); if (flag) { this._price = (value ? new uint?(this.price) : null); } } } [ProtoMember(5, IsRequired = false, Name = "ispay", DataFormat = DataFormat.Default)] public bool ispay { get { return this._ispay ?? false; } set { this._ispay = new bool?(value); } } [XmlIgnore] [Browsable(false)] public bool ispaySpecified { get { return this._ispay != null; } set { bool flag = value == (this._ispay == null); if (flag) { this._ispay = (value ? new bool?(this.ispay) : null); } } } private ErrorCode? _errorcode; private readonly List _itemrecord = new List(); private uint? _currencytype; private uint? _price; private bool? _ispay; private IExtension extensionObject; private bool ShouldSerializeerrorcode() { return this.errorcodeSpecified; } private void Reseterrorcode() { this.errorcodeSpecified = false; } private bool ShouldSerializecurrencytype() { return this.currencytypeSpecified; } private void Resetcurrencytype() { this.currencytypeSpecified = false; } private bool ShouldSerializeprice() { return this.priceSpecified; } private void Resetprice() { this.priceSpecified = false; } private bool ShouldSerializeispay() { return this.ispaySpecified; } private void Resetispay() { this.ispaySpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }