liusuyi
2025-11-25 c94cc1ffd7395efc127b10ed3436095fbfbd7c18
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
package com.ard.work.component.netty.command.camera;
 
import com.ard.work.component.netty.command.BaseCmd;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * Description: 格式化存储卡回复指令
 * Author: lsy
 * Date: 2025年11月24日9:31
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class FormatSdCardReplyCmd extends BaseCmd {
    private final byte result;             // 执行结果
    private final Integer errorCode;       // 错误码
    public FormatSdCardReplyCmd(String boxSn, Byte result, Integer errorCode) {
        setDataHeader((short) 0x6A77);
        setDataLength((short) 20);
        setBoxSn(boxSn.getBytes());
        setCmdCode((byte) 0xD1);
        this.result = result;
        this.errorCode = errorCode;
    }
    @Override
    public void encode(ByteBuf out) {
 
    }
}