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/PayMember.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs new file mode 100644 index 00000000..6258f3cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs @@ -0,0 +1,148 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PayMember")]
+ [Serializable]
+ public class PayMember : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "ID", DataFormat = DataFormat.TwosComplement)]
+ public int ID
+ {
+ get
+ {
+ return this._ID ?? 0;
+ }
+ set
+ {
+ this._ID = new int?(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 int?(this.ID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "ExpireTime", DataFormat = DataFormat.TwosComplement)]
+ public int ExpireTime
+ {
+ get
+ {
+ return this._ExpireTime ?? 0;
+ }
+ set
+ {
+ this._ExpireTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool ExpireTimeSpecified
+ {
+ get
+ {
+ return this._ExpireTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._ExpireTime == null);
+ if (flag)
+ {
+ this._ExpireTime = (value ? new int?(this.ExpireTime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "isClick", DataFormat = DataFormat.Default)]
+ public bool isClick
+ {
+ get
+ {
+ return this._isClick ?? false;
+ }
+ set
+ {
+ this._isClick = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool isClickSpecified
+ {
+ get
+ {
+ return this._isClick != null;
+ }
+ set
+ {
+ bool flag = value == (this._isClick == null);
+ if (flag)
+ {
+ this._isClick = (value ? new bool?(this.isClick) : null);
+ }
+ }
+ }
+
+ private int? _ID;
+
+ private int? _ExpireTime;
+
+ private bool? _isClick;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeID()
+ {
+ return this.IDSpecified;
+ }
+
+ private void ResetID()
+ {
+ this.IDSpecified = false;
+ }
+
+ private bool ShouldSerializeExpireTime()
+ {
+ return this.ExpireTimeSpecified;
+ }
+
+ private void ResetExpireTime()
+ {
+ this.ExpireTimeSpecified = false;
+ }
+
+ private bool ShouldSerializeisClick()
+ {
+ return this.isClickSpecified;
+ }
+
+ private void ResetisClick()
+ {
+ this.isClickSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|