From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/DonateMemberItemRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs new file mode 100644 index 00000000..29d9ed97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DonateMemberItemRes")] + [Serializable] + public class DonateMemberItemRes : 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 = "dailycount", DataFormat = DataFormat.TwosComplement)] + public uint dailycount + { + get + { + return this._dailycount ?? 0u; + } + set + { + this._dailycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dailycountSpecified + { + get + { + return this._dailycount != null; + } + set + { + bool flag = value == (this._dailycount == null); + if (flag) + { + this._dailycount = (value ? new uint?(this.dailycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalcount", DataFormat = DataFormat.TwosComplement)] + public uint totalcount + { + get + { + return this._totalcount ?? 0u; + } + set + { + this._totalcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalcountSpecified + { + get + { + return this._totalcount != null; + } + set + { + bool flag = value == (this._totalcount == null); + if (flag) + { + this._totalcount = (value ? new uint?(this.totalcount) : null); + } + } + } + + [ProtoMember(4, Name = "rankitem", DataFormat = DataFormat.Default)] + public List rankitem + { + get + { + return this._rankitem; + } + } + + [ProtoMember(5, IsRequired = false, Name = "getcount", DataFormat = DataFormat.TwosComplement)] + public uint getcount + { + get + { + return this._getcount ?? 0u; + } + set + { + this._getcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getcountSpecified + { + get + { + return this._getcount != null; + } + set + { + bool flag = value == (this._getcount == null); + if (flag) + { + this._getcount = (value ? new uint?(this.getcount) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _dailycount; + + private uint? _totalcount; + + private readonly List _rankitem = new List(); + + private uint? _getcount; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedailycount() + { + return this.dailycountSpecified; + } + + private void Resetdailycount() + { + this.dailycountSpecified = false; + } + + private bool ShouldSerializetotalcount() + { + return this.totalcountSpecified; + } + + private void Resettotalcount() + { + this.totalcountSpecified = false; + } + + private bool ShouldSerializegetcount() + { + return this.getcountSpecified; + } + + private void Resetgetcount() + { + this.getcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0