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); } } }