using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "DHRewrad2State")] [Serializable] public class DHRewrad2State : IExtensible { [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] public int id { get { return this._id ?? 0; } set { this._id = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool idSpecified { get { return this._id != null; } set { bool flag = value == (this._id == null); if (flag) { this._id = (value ? new int?(this.id) : null); } } } [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] public DHRState state { get { return this._state ?? DHRState.DHR_CANNOT; } set { this._state = new DHRState?(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 DHRState?(this.state) : null); } } } private int? _id; private DHRState? _state; private IExtension extensionObject; private bool ShouldSerializeid() { return this.idSpecified; } private void Resetid() { this.idSpecified = 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); } } }