📄 submitresponse.java
字号:
package cn.madhouse.gateway.empp.msgformat;
import cn.madhouse.gateway.empp.util.Tools;
public class SubmitResponse extends Message {
private byte[] msgId;
private Integer result;
public SubmitResponse(byte[] b) {
byte[] totalLengthB = new byte[4];
byte[] commandIdB = new byte[4];
byte[] sequenceIdB = new byte[4];
byte[] msgIdB = new byte[10];
byte[] resultB = new byte[4];
System.arraycopy(b,0,totalLengthB,0,4);
System.arraycopy(b,4,commandIdB,0,4);
System.arraycopy(b,8,sequenceIdB,0,4);
System.arraycopy(b,12,msgIdB,0,10);
System.arraycopy(b,22,resultB,0,4);
totalLength = Tools.byte2int(totalLengthB);
commandId = Tools.byte2int(commandIdB);
sequenceId = Tools.byte2int(sequenceIdB);
msgId = msgIdB;
result = Tools.byte2int(resultB);
}
public byte[] getMsgId() {
return msgId;
}
public Integer getResult() {
return result;
}
public void setMsgId(byte[] msgId) {
this.msgId = msgId;
}
public void setResult(Integer result) {
this.result = result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -