using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "FetchPlantInfoRes")] [Serializable] public class FetchPlantInfoRes : IExtensible { [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] public ErrorCode result { get { return this._result ?? ErrorCode.ERR_SUCCESS; } set { this._result = new ErrorCode?(value); } } [XmlIgnore] [Browsable(false)] public bool resultSpecified { get { return this._result != null; } set { bool flag = value == (this._result == null); if (flag) { this._result = (value ? new ErrorCode?(this.result) : null); } } } [ProtoMember(2, Name = "plant_info", DataFormat = DataFormat.Default)] public List plant_info { get { return this._plant_info; } } [ProtoMember(3, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] public uint sprite_id { get { return this._sprite_id ?? 0u; } set { this._sprite_id = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool sprite_idSpecified { get { return this._sprite_id != null; } set { bool flag = value == (this._sprite_id == null); if (flag) { this._sprite_id = (value ? new uint?(this.sprite_id) : null); } } } [ProtoMember(4, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] public List farmland_id { get { return this._farmland_id; } } private ErrorCode? _result; private readonly List _plant_info = new List(); private uint? _sprite_id; private readonly List _farmland_id = new List(); private IExtension extensionObject; private bool ShouldSerializeresult() { return this.resultSpecified; } private void Resetresult() { this.resultSpecified = false; } private bool ShouldSerializesprite_id() { return this.sprite_idSpecified; } private void Resetsprite_id() { this.sprite_idSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }