package com.ard.tianyu.component.netty.command.notice;
|
|
import com.ard.tianyu.component.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) {
|
|
}
|
}
|