From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetLuckyActivityInfoRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs new file mode 100644 index 00000000..db1b8384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs @@ -0,0 +1,203 @@ +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); + } + } +} -- cgit v1.1-26-g67d0