📄 smsinfo.java
字号:
package com.ekun.common.sms;
public class SmsInfo
{
public int SeqID; //cmpp专用,异步发送时,submitResponse后通过seqid获得MSGID
public String DBMsgID; //待发消息的数据库记录标示
public String SMSMsgID; //消息的msgid,产生与Submit,用于等状态报告进行异步匹配
public String DBMsgFrom; //发送者号码
public String DBMsgTo; //接受者号码
public String DBfee_number; //计费号码
public byte[] DBMsgContent; //待发送消息内容
public String DBServiceType; //业务类型
public int DBfee_type; //收费类型 1:免费,2:按条收费,3:包月收费
public int DBIsNeedStateReport; //是否需要状态报告
public int DBfee_total; //费用金额
public int SendResult; //发送状态,对应网关返回的错误码!
public String ErrorDesc;
public long liveTime; //进入滑动窗口的时间
public int sendTimes; //已经尝试重新发送的次数
public int smsType = 1; //短消息类型 1:普通短信 2:sms方式的WAP PUSH
public SmsInfo()
{
SeqID = -999;
DBMsgID = "";
SMSMsgID = "";
DBMsgFrom = "";
DBMsgTo = "";
DBfee_number = "";
DBServiceType = "";
DBfee_type = 1;
DBIsNeedStateReport = 0;
DBfee_total = 0;
SendResult = 0;
ErrorDesc = "";
liveTime = System.currentTimeMillis();
sendTimes = 0;
}
public String toString()
{
StringBuffer sb = new StringBuffer();
String strCrLf =System.getProperty("line.separator");
sb.append("SmsInfo info:").append(strCrLf).
append("[SeqID:]").append(this.SeqID).append(strCrLf).
append("[DBMsgID:]").append(this.DBMsgID).append(strCrLf).
append("[SMSMsgID:]").append(this.SMSMsgID).append(strCrLf).
append("[DBMsgFrom:]").append(this.DBMsgFrom).append(strCrLf).
append("[DBMsgTo:]").append(this.DBMsgTo).append(strCrLf).
append("[DBfee_number:]").append(this.DBfee_number).append(strCrLf).
append("[DBMsgContent:]").append(this.DBMsgContent).append(strCrLf).
append("[DBServiceType:]").append(this.DBServiceType).append(strCrLf).
append("[DBfee_type:]").append(this.DBfee_type).append(strCrLf).
append("[DBIsNeedStateReport:]").append(this.DBIsNeedStateReport).append(strCrLf).
append("[DBfee_total:]").append(this.DBfee_total).append(strCrLf).
append("[SendResult:]").append(this.SendResult).append(strCrLf).
append("[sendTimes:]").append(this.sendTimes).append(strCrLf).
append("[ErrorDesc:]").append(this.ErrorDesc);
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -