1078-添加文件上传控制

This commit is contained in:
648540858
2024-04-07 07:02:06 +08:00
parent 5fc1000fcc
commit 4ec4d618d6
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
package com.genersoft.iot.vmp.jt1078.proc.response;
import com.genersoft.iot.vmp.jt1078.annotation.MsgId;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.Unpooled;
import io.netty.util.CharsetUtil;
/**
* 文件上传控制
*
*/
@MsgId(id = "9207")
public class J9207 extends Rs {
// 对应平台文件上传消息的流水号
Integer respNo;
// 控制: 0暂停 1继续 2取消
private int control;
@Override
public ByteBuf encode() {
ByteBuf buffer = Unpooled.buffer();
buffer.writeShort(respNo);
buffer.writeByte(control);
return buffer;
}
public Integer getRespNo() {
return respNo;
}
public void setRespNo(Integer respNo) {
this.respNo = respNo;
}
public int getControl() {
return control;
}
public void setControl(int control) {
this.control = control;
}
@Override
public String toString() {
return "J9207{" +
"respNo=" + respNo +
", control=" + control +
'}';
}
}