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