Beispiel #1
0
 public ManualAlertConfirm(byte[] data)
 {
     var r = new Jt808Reader(data);
     Seq = r.ReadWord();
     Type = r.ReadDword();
 }
Beispiel #2
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());
            }
        }
Beispiel #3
0
 public CommonRespond(byte[] data)
 {
     var r = new Jt808Reader(data);
     Seq = r.ReadWord();
     MessageId = r.ReadWord();
     Result = r.ReadByte();
 }
Beispiel #4
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));
            }
        }
Beispiel #5
0
 public RegisterRespond(byte[] data)
 {
     var r = new Jt808Reader(data);
     Seq = r.ReadWord();
     Result = r.ReadByte();
     AuthCode = Jt808Reader.GetString(r.ReadBytesToEnd());
 }