using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "WeddingRoleBrief")] [Serializable] public class WeddingRoleBrief : IExtensible { [ProtoMember(1, 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(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); } } } [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] public uint profession { get { return this._profession ?? 0u; } set { this._profession = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool professionSpecified { get { return this._profession != null; } set { bool flag = value == (this._profession == null); if (flag) { this._profession = (value ? new uint?(this.profession) : null); } } } [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] public uint level { get { return this._level ?? 0u; } set { this._level = new uint?(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 uint?(this.level) : null); } } } [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] public uint ppt { get { return this._ppt ?? 0u; } set { this._ppt = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool pptSpecified { get { return this._ppt != null; } set { bool flag = value == (this._ppt == null); if (flag) { this._ppt = (value ? new uint?(this.ppt) : null); } } } [ProtoMember(6, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] public string guildname { get { return this._guildname ?? ""; } set { this._guildname = value; } } [XmlIgnore] [Browsable(false)] public bool guildnameSpecified { get { return this._guildname != null; } set { bool flag = value == (this._guildname == null); if (flag) { this._guildname = (value ? this.guildname : null); } } } private ulong? _roleid; private string _name; private uint? _profession; private uint? _level; private uint? _ppt; private string _guildname; private IExtension extensionObject; 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 ShouldSerializeprofession() { return this.professionSpecified; } private void Resetprofession() { this.professionSpecified = false; } private bool ShouldSerializelevel() { return this.levelSpecified; } private void Resetlevel() { this.levelSpecified = false; } private bool ShouldSerializeppt() { return this.pptSpecified; } private void Resetppt() { this.pptSpecified = false; } private bool ShouldSerializeguildname() { return this.guildnameSpecified; } private void Resetguildname() { this.guildnameSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }