using JT808.Protocol.Formatters; using JT808.Protocol.Interfaces; using JT808.Protocol.MessagePack; using System; namespace JT808.Protocol.MessageBody { /// /// 信息点播/取消 /// 0x0303 /// [Obsolete("2019版本已作删除")] public class JT808_0x0303 : JT808Bodies, IJT808MessagePackFormatter, IJT808_2019_Version { public override ushort MsgId { get; } = 0x0303; /// /// 信息类型 /// public byte InformationType { get; set; } /// /// 点播/取消标志 /// public byte Flag { get; set; } public JT808_0x0303 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) { JT808_0x0303 jT808_0X0303 = new JT808_0x0303(); jT808_0X0303.InformationType = reader.ReadByte(); jT808_0X0303.Flag = reader.ReadByte(); return jT808_0X0303; } public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0303 value, IJT808Config config) { writer.WriteByte(value.InformationType); writer.WriteByte(value.Flag); } } }