📄 shortmsg.java
字号:
package cn.netjava.cngpclient.connection;
/**
* 消息对象接口
* 中国网通短信网关客户端--蓝杰实训项目
* @author www.NetJava.cn
*
*/
interface ShortMsg {
int getCommandId(); // 返回消息命令类型Command Id
boolean setCommandId(int i); // 设置命令类型Command Id
int getHeadCmdStatus(); // 返回命令状态Command_Status
int getParseResult();
boolean setHeadCmdStatus(int i); // 设置命令状态Command_Status
byte getMsgEsmClass(); // 返回短消息类型EsmClass
String getMsgId(); // 返回短消息ID
// String getConSourceAddr(); //返回登录源地址标志码,如SP_Id
boolean setConSourceAddr(); // 设置登录源地址标志码,如SP_Id
byte getLastVersion(); // 返回MPCA支持的最高版本
boolean setLastVersion(byte b); // 设置SP支持的最高版本
byte[] getRepAuth(); // 返回MPCA认证码
boolean setRepAuth(byte[] b); // 设置SP认证码
byte[] getConAuth(); // 返回SP认证码
boolean setConAuth(byte[] b); // 设置MPCA认证码
String getBindSysId(); // 返回BindSystermId
boolean setAccessorId(int i); // 设置AccessorId
String getDestId(); // 返回接收消息的MSISDN号码
byte getMsgMode(); // 返回消息模式
byte[] getPackage(); // 根据CommandId返回Fwd Mo、Submit、Deliver等消息包
void parsePackage(byte[] rcvdPackage);// 读入各类消息包
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -