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/AudioAuthKeyArg.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs new file mode 100644 index 00000000..9f7906fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioAuthKeyArg")] + [Serializable] + public class AudioAuthKeyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "open_id", DataFormat = DataFormat.Default)] + public string open_id + { + get + { + return this._open_id ?? ""; + } + set + { + this._open_id = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool open_idSpecified + { + get + { + return this._open_id != null; + } + set + { + bool flag = value == (this._open_id == null); + if (flag) + { + this._open_id = (value ? this.open_id : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + private string _open_id; + + private string _ip; + + private IExtension extensionObject; + + private bool ShouldSerializeopen_id() + { + return this.open_idSpecified; + } + + private void Resetopen_id() + { + this.open_idSpecified = false; + } + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0