liusuyi
2025-03-20 a7e433a984402e47c5275901d7b59e3881280278
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
package com.ard.tianyu.netty.command.notice;
 
import com.ard.tianyu.netty.command.BaseCmd;
import io.netty.buffer.ByteBuf;
import lombok.Data;
 
/**
 * 航线结束通知回复指令
 *
 * @author liusuyi
 * @date 2024年10月26日11:54
 **/
@Data
public class FlyWayEndReplyCmd extends BaseCmd {
    private final byte encryptFlag = 0x00;  // 加密标志
    private final byte actionCode = 0x2E;   // 动作编号
    private final byte result;              // 执行结果
    private final int errorCode;            // 错误码
 
    public FlyWayEndReplyCmd(String boxSn, byte result, int errorCode) {
        setDataHeader((short) 0x6A77);      // 设置帧头
        setCmdCode((byte) 0x3D);            // 设置指令编号
        setDataLength((short) 23);          // 数据长度
        this.result = result;
        this.errorCode = errorCode;
        setBoxSn(boxSn.getBytes());
    }
 
    public void encode(ByteBuf out) {
 
    }
}