📄 msgbind.java
字号:
package com.wireless.sms.gwif.sgip12;
//import com.wireless.sms.pub.mq.*;
/**
* <p>Title: WVAS-PLATFORM-SMS</p>
* <p>Description: 无线增值业务平台-----短信接口机</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: moon</p>
* @author tech team
* @version 1.0
*/
public class MsgBind extends MsgHead
{
private int Type; // 1 Integer
private String Name; // 16 Text
private String Password; // 16 Text
private String Reserve; // 8 Text
public MsgBind(){
super();
setTotalLen(61);
setCmdID(0x1);
Type = 0x1;
Name = new String();
Password = new String();
Reserve = new String();
}
public MsgBind(byte[] ba){
super();
setHead(ba);
Type = 0x1;
Name = byte2str(ba, 21, 16);
Password = byte2str(ba, 37, 16);
Reserve = byte2str(ba, 53, 8);
}
public void print()
{
System.out.print("/");
printHead();
System.out.print("\n");
System.out.print("\\Type=" + Type);
System.out.print(" Name=\"" + Name + "\"");
System.out.print(" Password=\"" + Password + "\"");
System.out.print(" Reserve=\"" + Reserve + "\"");
System.out.print("\n");
}
public byte[] getBytes()
{
byte[] r = new byte[61];
headFill(r);
r[20] = (byte)(Type);
str2byte(r, Name, 21, 16);
str2byte(r, Password, 37, 16);
str2byte(r, Reserve, 53, 8);
return r;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public String getPassword() {
return Password;
}
public void setPassword(String Password) {
this.Password = Password;
}
public String getReserve() {
return Reserve;
}
public void setReserve(String Reserve) {
this.Reserve = Reserve;
}
public int getType() {
return Type;
}
public void setType(int Type) {
this.Type = Type;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -