using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "QAIDName")] [Serializable] public class QAIDName : IExtensible { [ProtoMember(1, IsRequired = false, Name = "uuid", DataFormat = DataFormat.TwosComplement)] public ulong uuid { get { return this._uuid ?? 0UL; } set { this._uuid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool uuidSpecified { get { return this._uuid != null; } set { bool flag = value == (this._uuid == null); if (flag) { this._uuid = (value ? new ulong?(this.uuid) : null); } } } [ProtoMember(2, 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); } } } private ulong? _uuid; private string _name; private IExtension extensionObject; private bool ShouldSerializeuuid() { return this.uuidSpecified; } private void Resetuuid() { this.uuidSpecified = false; } private bool ShouldSerializename() { return this.nameSpecified; } private void Resetname() { this.nameSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }