📄 connectresponse.java
字号:
package cn.madhouse.gateway.empp.msgformat;
import cn.madhouse.gateway.empp.util.Tools;
public class ConnectResponse extends Message {
private Integer status;
private String authenticatorESMP;
private Integer version;
private Integer ability;
public ConnectResponse(byte[] b) {
byte[] totalLengthB = new byte[4];
byte[] commandIdB = new byte[4];
byte[] sequenceIdB = new byte[4];
byte[] statusB = new byte[4];
byte[] authenticatorESMPB = new byte[16];
byte[] versionB = new byte[1];
byte[] abilityB = 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,statusB,0,4);
System.arraycopy(b,16,authenticatorESMPB,0,16);
System.arraycopy(b,32,versionB,0,1);
System.arraycopy(b,33,abilityB,0,4);
totalLength = Tools.byte2int(totalLengthB);
commandId = Tools.byte2int(commandIdB);
sequenceId = Tools.byte2int(sequenceIdB);
status = Tools.byte2int(statusB);
authenticatorESMP = new String(authenticatorESMPB);
version = new Integer(versionB[0]);
ability = Tools.byte2int(abilityB);
}
public Integer getAbility() {
return ability;
}
public String getAuthenticatorESMP() {
return authenticatorESMP;
}
public Integer getStatus() {
return status;
}
public Integer getVersion() {
return version;
}
public void setAbility(Integer ability) {
this.ability = ability;
}
public void setAuthenticatorESMP(String authenticatorESMP) {
this.authenticatorESMP = authenticatorESMP;
}
public void setStatus(Integer status) {
this.status = status;
}
public void setVersion(Integer version) {
this.version = version;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -