1078-添加文件上传控制
This commit is contained in:
@@ -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 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user