liusuyi
2024-10-31 b821735241678a21ddc033aba04ebaf7ce65a3d2
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
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 BoxPowerStatusReplyCmd extends BaseCmd {
    private final byte status; // 时间戳
 
    public BoxPowerStatusReplyCmd(byte status) {
        setDataHeader((short) 0x6A77);  // 设置帧头
        setCmdCode((byte) 0x0A);        // 设置指令编号
        setDataLength((short) 17);      // 数据长度
        this.status = status;
    }
 
    public void encode(ByteBuf out) {
 
    }
}