zhaowenyu
2025-11-26 f2c909e42b81bb7b589c956bfcf90dba3e16d0a8
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
34
35
package com.ard.work.component.netty.command.manual;
 
import com.ard.work.component.netty.command.BaseCmd;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * 降落回复指令
 *
 * @author liusuyi
 * @date 2024年10月26日15:43
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class LandReplyCmd extends BaseCmd {
 
    private final byte encryptFlag = 0x00; // 加密标志
    private final byte actionCode = 0x14;  // 动作编号
    private final byte result;             // 执行结果
    private final Integer errorCode;       // 错误码
 
    public LandReplyCmd(String boxSn, Byte result, Integer errorCode) {
        setDataHeader((short) 0x6A77);
        setDataLength((short) 23);
        setBoxSn(boxSn.getBytes());
        setCmdCode((byte) 0xD1);
        this.result = result;
        this.errorCode = errorCode;
    }
 
    public void encode(ByteBuf out) {
 
    }
}