using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "FlowerInfo2Client")] [Serializable] public class FlowerInfo2Client : 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 = "itemID", DataFormat = DataFormat.TwosComplement)] public uint itemID { get { return this._itemID ?? 0u; } set { this._itemID = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool itemIDSpecified { get { return this._itemID != null; } set { bool flag = value == (this._itemID == null); if (flag) { this._itemID = (value ? new uint?(this.itemID) : null); } } } [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] public uint count { get { return this._count ?? 0u; } set { this._count = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool countSpecified { get { return this._count != null; } set { bool flag = value == (this._count == null); if (flag) { this._count = (value ? new uint?(this.count) : null); } } } [ProtoMember(4, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] public uint timestamp { get { return this._timestamp ?? 0u; } set { this._timestamp = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool timestampSpecified { get { return this._timestamp != null; } set { bool flag = value == (this._timestamp == null); if (flag) { this._timestamp = (value ? new uint?(this.timestamp) : null); } } } [ProtoMember(5, 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); } } } private ulong? _roleID; private uint? _itemID; private uint? _count; private uint? _timestamp; private string _roleName; private IExtension extensionObject; private bool ShouldSerializeroleID() { return this.roleIDSpecified; } private void ResetroleID() { this.roleIDSpecified = false; } private bool ShouldSerializeitemID() { return this.itemIDSpecified; } private void ResetitemID() { this.itemIDSpecified = false; } private bool ShouldSerializecount() { return this.countSpecified; } private void Resetcount() { this.countSpecified = false; } private bool ShouldSerializetimestamp() { return this.timestampSpecified; } private void Resettimestamp() { this.timestampSpecified = false; } private bool ShouldSerializeroleName() { return this.roleNameSpecified; } private void ResetroleName() { this.roleNameSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }