summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.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/VoipRoomMember.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs191
1 files changed, 191 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs
new file mode 100644
index 00000000..2a5da6b6
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs
@@ -0,0 +1,191 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "VoipRoomMember")]
+ [Serializable]
+ public class VoipRoomMember : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "memberID", DataFormat = DataFormat.TwosComplement)]
+ public int memberID
+ {
+ get
+ {
+ return this._memberID ?? 0;
+ }
+ set
+ {
+ this._memberID = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool memberIDSpecified
+ {
+ get
+ {
+ return this._memberID != null;
+ }
+ set
+ {
+ bool flag = value == (this._memberID == null);
+ if (flag)
+ {
+ this._memberID = (value ? new int?(this.memberID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)]
+ public ulong roleID
+ {
+ get
+ {
+ return this._roleID ?? 0UL;
+ }
+ set
+ {
+ this._roleID = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool roleIDSpecified
+ {
+ get
+ {
+ return this._roleID != null;
+ }
+ set
+ {
+ bool flag = value == (this._roleID == null);
+ if (flag)
+ {
+ this._roleID = (value ? new ulong?(this.roleID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)]
+ public string name
+ {
+ get
+ {
+ return this._name ?? "";
+ }
+ set
+ {
+ this._name = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool nameSpecified
+ {
+ get
+ {
+ return this._name != null;
+ }
+ set
+ {
+ bool flag = value == (this._name == null);
+ if (flag)
+ {
+ this._name = (value ? this.name : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)]
+ public uint state
+ {
+ get
+ {
+ return this._state ?? 0u;
+ }
+ set
+ {
+ this._state = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool stateSpecified
+ {
+ get
+ {
+ return this._state != null;
+ }
+ set
+ {
+ bool flag = value == (this._state == null);
+ if (flag)
+ {
+ this._state = (value ? new uint?(this.state) : null);
+ }
+ }
+ }
+
+ private int? _memberID;
+
+ private ulong? _roleID;
+
+ private string _name;
+
+ private uint? _state;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializememberID()
+ {
+ return this.memberIDSpecified;
+ }
+
+ private void ResetmemberID()
+ {
+ this.memberIDSpecified = false;
+ }
+
+ private bool ShouldSerializeroleID()
+ {
+ return this.roleIDSpecified;
+ }
+
+ private void ResetroleID()
+ {
+ this.roleIDSpecified = false;
+ }
+
+ private bool ShouldSerializename()
+ {
+ return this.nameSpecified;
+ }
+
+ private void Resetname()
+ {
+ this.nameSpecified = false;
+ }
+
+ private bool ShouldSerializestate()
+ {
+ return this.stateSpecified;
+ }
+
+ private void Resetstate()
+ {
+ this.stateSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}