liusuyi
2025-03-20 8773c724919714845d4426a54d7b5aab8a9c0cae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.ard.tianyu.component.netty.command.settings;
 
import com.ard.tianyu.component.netty.command.BaseCmd;
import io.netty.buffer.ByteBuf;
import lombok.Data;
 
/**
 * 设置视频码流回复指令
 *
 * @author liusuyi
 * @date 2024年10月30日16:20
 **/
@Data
public class VideoStreamSettingReplyCmd extends BaseCmd {
 
    private final byte encryptFlag = 0x00; // 加密标志
    private final byte actionCode = 0x05;  // 动作编号
    private final byte result;             // 执行结果
    private final Integer errorCode;       // 错误码
 
    public VideoStreamSettingReplyCmd(String boxSn, Byte result, Integer errorCode) {
        setDataHeader((short) 0x6A77);
        //setDataLength((short) 18);
        setCmdCode((byte) 0XD2);
        setBoxSn(boxSn.getBytes());
        this.result = result;
        this.errorCode = errorCode;
    }
 
    public void encode(ByteBuf out) {
 
    }
}