public SettingQuery(byte[] data) { var r = new Jt808Reader(data); var count = r.ReadByte(); for (var i = 0; i < count; i++) { _items.Add(r.ReadDword()); } }
public CommonRespond(byte[] data) { var r = new Jt808Reader(data); Seq = r.ReadWord(); MessageId = r.ReadWord(); Result = r.ReadByte(); }
public SettingCommand(byte[] data) { var r = new Jt808Reader(data); var count = r.ReadByte(); for (var i = 0; i < count; i++) { var id = r.ReadDword(); var len = r.ReadByte(); var val = r.ReadBytes(len); _items.Add(new KeyValuePair<uint, byte[]>(id, val)); } }
public RegisterRespond(byte[] data) { var r = new Jt808Reader(data); Seq = r.ReadWord(); Result = r.ReadByte(); AuthCode = Jt808Reader.GetString(r.ReadBytesToEnd()); }