using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "SkyCityTimeInfo")] [Serializable] public class SkyCityTimeInfo : IExtensible { [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] public uint time { get { return this._time ?? 0u; } set { this._time = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool timeSpecified { get { return this._time != null; } set { bool flag = value == (this._time == null); if (flag) { this._time = (value ? new uint?(this.time) : null); } } } [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] public SkyCityTimeType type { get { return this._type ?? SkyCityTimeType.Waiting; } set { this._type = new SkyCityTimeType?(value); } } [XmlIgnore] [Browsable(false)] public bool typeSpecified { get { return this._type != null; } set { bool flag = value == (this._type == null); if (flag) { this._type = (value ? new SkyCityTimeType?(this.type) : null); } } } private uint? _time; private SkyCityTimeType? _type; private IExtension extensionObject; private bool ShouldSerializetime() { return this.timeSpecified; } private void Resettime() { this.timeSpecified = false; } private bool ShouldSerializetype() { return this.typeSpecified; } private void Resettype() { this.typeSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }