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/QueryGateArg.cs | 363 +++++++++++++++++++++ 1 file changed, 363 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs new file mode 100644 index 00000000..a0d6d9cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGateArg")] + [Serializable] + public class QueryGateArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LoginType type + { + get + { + return this._type ?? LoginType.LOGIN_PASSWORD; + } + set + { + this._type = new LoginType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LoginType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pf", DataFormat = DataFormat.Default)] + public string pf + { + get + { + return this._pf ?? ""; + } + set + { + this._pf = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pfSpecified + { + get + { + return this._pf != null; + } + set + { + bool flag = value == (this._pf == null); + if (flag) + { + this._pf = (value ? this.pf : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "platid", DataFormat = DataFormat.TwosComplement)] + public PlatType platid + { + get + { + return this._platid ?? PlatType.PLAT_IOS; + } + set + { + this._platid = new PlatType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platidSpecified + { + get + { + return this._platid != null; + } + set + { + bool flag = value == (this._platid == null); + if (flag) + { + this._platid = (value ? new PlatType?(this.platid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "version", DataFormat = DataFormat.Default)] + public string version + { + get + { + return this._version ?? ""; + } + set + { + this._version = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? this.version : null); + } + } + } + + private string _token; + + private string _account; + + private string _password; + + private LoginType? _type; + + private string _pf; + + private string _openid; + + private PlatType? _platid; + + private string _version; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepf() + { + return this.pfSpecified; + } + + private void Resetpf() + { + this.pfSpecified = false; + } + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializeplatid() + { + return this.platidSpecified; + } + + private void Resetplatid() + { + this.platidSpecified = false; + } + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0