summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs117
1 files changed, 117 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs
new file mode 100644
index 00000000..fb53507e
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs
@@ -0,0 +1,117 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "TShowVoteRecord")]
+ [Serializable]
+ public class TShowVoteRecord : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)]
+ public int updateTime
+ {
+ get
+ {
+ return this._updateTime ?? 0;
+ }
+ set
+ {
+ this._updateTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool updateTimeSpecified
+ {
+ get
+ {
+ return this._updateTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._updateTime == null);
+ if (flag)
+ {
+ this._updateTime = (value ? new int?(this.updateTime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "voteData", DataFormat = DataFormat.Default)]
+ public List<TShowRoleDailyVoteData> voteData
+ {
+ get
+ {
+ return this._voteData;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "haveSendRank", DataFormat = DataFormat.Default)]
+ public bool haveSendRank
+ {
+ get
+ {
+ return this._haveSendRank ?? false;
+ }
+ set
+ {
+ this._haveSendRank = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool haveSendRankSpecified
+ {
+ get
+ {
+ return this._haveSendRank != null;
+ }
+ set
+ {
+ bool flag = value == (this._haveSendRank == null);
+ if (flag)
+ {
+ this._haveSendRank = (value ? new bool?(this.haveSendRank) : null);
+ }
+ }
+ }
+
+ private int? _updateTime;
+
+ private readonly List<TShowRoleDailyVoteData> _voteData = new List<TShowRoleDailyVoteData>();
+
+ private bool? _haveSendRank;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeupdateTime()
+ {
+ return this.updateTimeSpecified;
+ }
+
+ private void ResetupdateTime()
+ {
+ this.updateTimeSpecified = false;
+ }
+
+ private bool ShouldSerializehaveSendRank()
+ {
+ return this.haveSendRankSpecified;
+ }
+
+ private void ResethaveSendRank()
+ {
+ this.haveSendRankSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}