📄 content.java
字号:
package data;/** * Title: * Description:由mobile_content表提取的内容 ; * 根据msg_type确定tp_pid,tp_udhi,msg_fmt三个参数; * 定义数据结构; * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */public class Content { public static int pk_t; public static int pk_n; //public static String msg_fmt;//???? public static String msg_content; //通过网关,msg_type来确定的内容 public static int tp_pid; public static int msg_fmt;//?????? public static int tp_udhi; public Content() { } public void getParameter(String gatewayName,int msg_type){ if(gatewayName.equals("huawei")){ if(msg_type==0){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 0; }else if(msg_type == 1){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 8; }else if(msg_type == 2){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt =15; }else if(msg_type<=10 && msg_type>=3){ this.tp_pid = 0; this.tp_udhi = 1; this.msg_fmt = 14; }else if(msg_type == 11 || msg_type == 12){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 4; }else if(msg_type == 13){ this.tp_pid = 1; this.tp_udhi = 0; this.msg_fmt = 24; } }else if(gatewayName.startsWith("nokia")){ if(msg_type == 0){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 0; }else if(msg_type ==1){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 8; }else if(msg_type == 2){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 15; }else if(msg_type<=10 && msg_type>=3){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 64; }else if(msg_type == 11 ||msg_type == 12){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 4; }else if(msg_type == 13){ this.tp_pid = 1; this.tp_udhi = 0; this.msg_fmt = 24; } }else{ if(msg_type ==0){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt=0; }else if(msg_type == 1){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 8; }else if(msg_type == 2){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 15; }else if(msg_type<=10 && msg_type>=3){ this.tp_pid = 0; this.tp_udhi = 0x40; this.msg_fmt = 4; }else if(msg_type == 11 || msg_type == 12){ this.tp_pid = 0; this.tp_udhi = 0; this.msg_fmt = 3; }else if(msg_type == 13){ this.tp_pid = 1; this.tp_udhi = 0; this.msg_fmt = 24; } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -