using JT809.Protocol.Enums; using JT809.Protocol.Formatters; using JT809.Protocol.MessagePack; using JT809.Protocol.Extensions; namespace JT809.Protocol.SubMessageBody { /// /// 补发车辆定位信息应答 /// 子业务类型标识:DOWN_EXG_MSG_APPLY_FOR_MONITOR_END_ACK /// public class JT809_0x9200_0x9209: JT809SubBodies, IJT809MessagePackFormatter { public override ushort SubMsgId => JT809SubBusinessType.补发车辆定位信息应答.ToUInt16Value(); public override string Description => "补发车辆定位信息应答"; /// /// 返回结果 /// public JT809_0x9209_Result Result { get; set; } public JT809_0x9200_0x9209 Deserialize(ref JT809MessagePackReader reader, IJT809Config config) { JT809_0x9200_0x9209 jT809_0X1200_0x9209 = new JT809_0x9200_0x9209(); jT809_0X1200_0x9209.Result = (JT809_0x9209_Result)reader.ReadByte(); return jT809_0X1200_0x9209; } public void Serialize(ref JT809MessagePackWriter writer, JT809_0x9200_0x9209 value, IJT809Config config) { writer.WriteByte((byte)value.Result); } } }