diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs new file mode 100644 index 00000000..758d202e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs @@ -0,0 +1,62 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "VsPayReviveRes")]
+ [Serializable]
+ public class VsPayReviveRes : 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);
+ }
+ }
+ }
+
+ private ErrorCode? _ret;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeret()
+ {
+ return this.retSpecified;
+ }
+
+ private void Resetret()
+ {
+ this.retSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|