copy from ard-work/src/main/java/com/ard/tianyu/netty/command/camera/RecordStopCommand.java
copy to ard-work/src/main/java/com/ard/tianyu/netty/command/camera/ZoomCmd.java
| File was copied from ard-work/src/main/java/com/ard/tianyu/netty/command/camera/RecordStopCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.camera; |
| | | |
| | | import com.ard.tianyu.model.dto.camera.RecordDTO; |
| | | import com.ard.tianyu.netty.command.BaseCommand; |
| | | import com.ard.tianyu.model.dto.camera.ZoomDTO; |
| | | import com.ard.tianyu.netty.command.BaseCmd; |
| | | import io.netty.buffer.ByteBuf; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 停止录像指令 |
| | | * 变倍指令 |
| | | * |
| | | * @author liusuyi |
| | | * @date 2024年10月25日14:44 |
| | | **/ |
| | | @Data |
| | | public class RecordStopCommand extends BaseCommand { |
| | | public class ZoomCmd extends BaseCmd { |
| | | private final byte encryptFlag = 0x00; // 加密标志 |
| | | private final byte actionCode = 0x25; // 动作编号 |
| | | private final byte actionCode; // 动作编号 |
| | | |
| | | |
| | | public RecordStopCommand(RecordDTO recordDto) { |
| | | public ZoomCmd(ZoomDTO zoomDTO) { |
| | | setDataHeader((short) 0x7479); |
| | | setDataLength((short) 18); |
| | | setBoxSn(recordDto.getBoxSn().getBytes()); |
| | | setBoxSn(zoomDTO.getBoxSn().getBytes()); |
| | | setCmdCode((byte) 0xD1); |
| | | this.actionCode=zoomDTO.getActionCode(); |
| | | } |
| | | |
| | | public void encode(ByteBuf out) { |