?? msgsmsnotify.java
字號:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201.crm.sn;
import java.nio.ByteBuffer;
import com.aceway.vas.sjcraw.cbgp201.Msg;
import com.aceway.vas.sjcraw.cbgp201.common.DataFormat;
import com.aceway.vas.sjcraw.cbgp201.common.MsgInfo;
/**
* @標題: 華為彩鈴平臺接口規范
* @說明:
* @版權: Copyright(c) 2007
* @公司: 北京漢銘信通科技有限公司
* @部門: 增值業務部
* @作者: 武達
* @Jun 8, 2007
*/
public class MsgSmsNotify extends Msg {
private static int operCode = MsgInfo.CRBT_SMS_NOTIFY;
private static int lenBody = MsgInfo.LEN_CRBT_SMS_NOTIFY;
/*
AccountID 21 String 用戶終端號碼
Information 255 String 通知內容
*/
private String accountId;
private String information;
public MsgSmsNotify(String seqNo, String linkId, String accountId, String information){
super.setCommandLength(lenBody);
super.setMsgHead(operCode, "0", seqNo, linkId);
this.accountId = DataFormat.makeString(accountId, 21);
this.information = DataFormat.makeString(information, 255);
ByteBuffer buff = ByteBuffer.allocate(lenBody);
buff.put(this.accountId.getBytes());
buff.put(this.information.getBytes());
buff.flip();
super.setMsgBody(buff.array());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -