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) { } }