Example #1
0
        public SettingQuery(byte[] data)
        {
            var r = new Jt808Reader(data);
            var count = r.ReadByte();

            for (var i = 0; i < count; i++)
            {
                _items.Add(r.ReadDword());
            }
        }
Example #2
0
 public ManualAlertConfirm(byte[] data)
 {
     var r = new Jt808Reader(data);
     Seq = r.ReadWord();
     Type = r.ReadDword();
 }
Example #3
0
        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));
            }
        }