From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/PayGiftRecord.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs new file mode 100644 index 00000000..2f109e78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayGiftRecord")] + [Serializable] + public class PayGiftRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastBuyTime", DataFormat = DataFormat.TwosComplement)] + public uint lastBuyTime + { + get + { + return this._lastBuyTime ?? 0u; + } + set + { + this._lastBuyTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastBuyTimeSpecified + { + get + { + return this._lastBuyTime != null; + } + set + { + bool flag = value == (this._lastBuyTime == null); + if (flag) + { + this._lastBuyTime = (value ? new uint?(this.lastBuyTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "reqTime", DataFormat = DataFormat.TwosComplement)] + public uint reqTime + { + get + { + return this._reqTime ?? 0u; + } + set + { + this._reqTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqTimeSpecified + { + get + { + return this._reqTime != null; + } + set + { + bool flag = value == (this._reqTime == null); + if (flag) + { + this._reqTime = (value ? new uint?(this.reqTime) : null); + } + } + } + + private uint? _id; + + private uint? _buycount; + + private uint? _lastBuyTime; + + private uint? _reqTime; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializelastBuyTime() + { + return this.lastBuyTimeSpecified; + } + + private void ResetlastBuyTime() + { + this.lastBuyTimeSpecified = false; + } + + private bool ShouldSerializereqTime() + { + return this.reqTimeSpecified; + } + + private void ResetreqTime() + { + this.reqTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0