summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs191
1 files changed, 191 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs
new file mode 100644
index 00000000..70cd1476
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs
@@ -0,0 +1,191 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PlatFriendServer")]
+ [Serializable]
+ public class PlatFriendServer : IExtensible
+ {
+ [ProtoMember(1, 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(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)]
+ public int serverid
+ {
+ get
+ {
+ return this._serverid ?? 0;
+ }
+ set
+ {
+ this._serverid = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool serveridSpecified
+ {
+ get
+ {
+ return this._serverid != null;
+ }
+ set
+ {
+ bool flag = value == (this._serverid == null);
+ if (flag)
+ {
+ this._serverid = (value ? new int?(this.serverid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)]
+ public string rolename
+ {
+ get
+ {
+ return this._rolename ?? "";
+ }
+ set
+ {
+ this._rolename = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool rolenameSpecified
+ {
+ get
+ {
+ return this._rolename != null;
+ }
+ set
+ {
+ bool flag = value == (this._rolename == null);
+ if (flag)
+ {
+ this._rolename = (value ? this.rolename : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)]
+ public int level
+ {
+ get
+ {
+ return this._level ?? 0;
+ }
+ set
+ {
+ this._level = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool levelSpecified
+ {
+ get
+ {
+ return this._level != null;
+ }
+ set
+ {
+ bool flag = value == (this._level == null);
+ if (flag)
+ {
+ this._level = (value ? new int?(this.level) : null);
+ }
+ }
+ }
+
+ private string _openid;
+
+ private int? _serverid;
+
+ private string _rolename;
+
+ private int? _level;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeopenid()
+ {
+ return this.openidSpecified;
+ }
+
+ private void Resetopenid()
+ {
+ this.openidSpecified = false;
+ }
+
+ private bool ShouldSerializeserverid()
+ {
+ return this.serveridSpecified;
+ }
+
+ private void Resetserverid()
+ {
+ this.serveridSpecified = false;
+ }
+
+ private bool ShouldSerializerolename()
+ {
+ return this.rolenameSpecified;
+ }
+
+ private void Resetrolename()
+ {
+ this.rolenameSpecified = false;
+ }
+
+ private bool ShouldSerializelevel()
+ {
+ return this.levelSpecified;
+ }
+
+ private void Resetlevel()
+ {
+ this.levelSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}