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/PayFriendItemRes.cs | 277 +++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs new file mode 100644 index 00000000..7fa6fee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayFriendItemRes")] + [Serializable] + public class PayFriendItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "url_param", DataFormat = DataFormat.Default)] + public string url_param + { + get + { + return this._url_param ?? ""; + } + set + { + this._url_param = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool url_paramSpecified + { + get + { + return this._url_param != null; + } + set + { + bool flag = value == (this._url_param == null); + if (flag) + { + this._url_param = (value ? this.url_param : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "billno", DataFormat = DataFormat.Default)] + public string billno + { + get + { + return this._billno ?? ""; + } + set + { + this._billno = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool billnoSpecified + { + get + { + return this._billno != null; + } + set + { + bool flag = value == (this._billno == null); + if (flag) + { + this._billno = (value ? this.billno : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "paramid", DataFormat = DataFormat.Default)] + public string paramid + { + get + { + return this._paramid ?? ""; + } + set + { + this._paramid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramidSpecified + { + get + { + return this._paramid != null; + } + set + { + bool flag = value == (this._paramid == null); + if (flag) + { + this._paramid = (value ? this.paramid : null); + } + } + } + + [ProtoMember(6, 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); + } + } + } + + private ErrorCode? _ret; + + private string _token; + + private string _url_param; + + private string _billno; + + private string _paramid; + + private uint? _price; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializeurl_param() + { + return this.url_paramSpecified; + } + + private void Reseturl_param() + { + this.url_paramSpecified = false; + } + + private bool ShouldSerializebillno() + { + return this.billnoSpecified; + } + + private void Resetbillno() + { + this.billnoSpecified = false; + } + + private bool ShouldSerializeparamid() + { + return this.paramidSpecified; + } + + private void Resetparamid() + { + this.paramidSpecified = false; + } + + private bool ShouldSerializeprice() + { + return this.priceSpecified; + } + + private void Resetprice() + { + this.priceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0