📄 commandid.java
字号:
package com.gctech.cmpp3.msg;
import java.util.TreeMap;
import java.util.Map;
/**
* <p>Title: 短信 API</p>
* <p>Description: 短信SP API</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: GCTECH</p>
* @author not attributable
* @version $Id: CommandID.java,v 1.1 2004/05/21 07:50:10 wanghb Exp $
*/
public class CommandID {
public static final int CMPP_CONNECT = 0x00000001; //请求连接
public static final int CMPP_CONNECT_RESP = 0x80000001; //请求连接应答
public static final int CMPP_TERMINATE = 0x00000002; //终止连接
public static final int CMPP_TERMINATE_RESP = 0x80000002; //终止连接应答
public static final int CMPP_SUBMIT = 0x00000004; //提交短信
public static final int CMPP_SUBMIT_RESP = 0x80000004; //提交短信应答
public static final int CMPP_DELIVER = 0x00000005; //短信下发
public static final int CMPP_DELIVER_RESP = 0x80000005; //下发短信应答
public static final int CMPP_ACTIVE_TEST = 0x00000008; //激活测试
public static final int CMPP_ACTIVE_TEST_RESP = 0x80000008; //激活测试应答
//
/* */
static Map all = new TreeMap();
static {
all.put(new Integer(CMPP_CONNECT), "请求连接");
all.put(new Integer(CMPP_CONNECT_RESP), "请求连接应答");
all.put(new Integer(CMPP_TERMINATE), "终止连接");
all.put(new Integer(CMPP_TERMINATE_RESP), "终止连接应答");
all.put(new Integer(CMPP_SUBMIT), "提交短信");
all.put(new Integer(CMPP_SUBMIT_RESP), "提交短信应答");
all.put(new Integer(CMPP_DELIVER), "短信下发");
all.put(new Integer(CMPP_DELIVER_RESP), "下发短信应答");
all.put(new Integer(CMPP_ACTIVE_TEST), "激活测试");
all.put(new Integer(CMPP_ACTIVE_TEST_RESP), "激活测试应答");
}
public static String valueToName(int value) {
Object obj = all.get(new Integer(value));
if (obj == null) {
return "UNKNOWN";
} else {
return obj.toString();
}
// return all.get(new Integer(value)).toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -