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/PushQuestionNtf.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs new file mode 100644 index 00000000..a9209af4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PushQuestionNtf")] + [Serializable] + public class PushQuestionNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "qid", DataFormat = DataFormat.TwosComplement)] + public uint qid + { + get + { + return this._qid ?? 0u; + } + set + { + this._qid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qidSpecified + { + get + { + return this._qid != null; + } + set + { + bool flag = value == (this._qid == null); + if (flag) + { + this._qid = (value ? new uint?(this.qid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serialNum", DataFormat = DataFormat.TwosComplement)] + public uint serialNum + { + get + { + return this._serialNum ?? 0u; + } + set + { + this._serialNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serialNumSpecified + { + get + { + return this._serialNum != null; + } + set + { + bool flag = value == (this._serialNum == null); + if (flag) + { + this._serialNum = (value ? new uint?(this.serialNum) : null); + } + } + } + + private uint? _qid; + + private uint? _serialNum; + + private IExtension extensionObject; + + private bool ShouldSerializeqid() + { + return this.qidSpecified; + } + + private void Resetqid() + { + this.qidSpecified = false; + } + + private bool ShouldSerializeserialNum() + { + return this.serialNumSpecified; + } + + private void ResetserialNum() + { + this.serialNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0