?? msgqueryringgroup.java
字號:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201.crm.rgm;
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 6, 2007
*/
public class MsgQueryRingGroup extends Msg {
private static int operCode = MsgInfo.CRBT_QUERY_RINGGROUP;
private static int lenBody = MsgInfo.LEN_CRBT_QUERY_RING_GROUP;
/*
AccountID 21 String 用戶手機號碼
Startnum 4 Integer 起始記錄數(第一次查詢填0)
RequireNum 4 Interger 請求返回的最多記錄數
*/
private String accountId;
private int startnum;
private int requireNum;
public MsgQueryRingGroup(String seqNo, String linkId, String accountId, int startnum, int requireNum){
this.accountId = DataFormat.makeString(accountId, 21);
this.startnum = startnum;
if (requireNum != 0){
this.requireNum = requireNum;
this.lenBody+=4;
}
super.setCommandLength(lenBody);
super.setMsgHead(operCode, "", seqNo, linkId);
ByteBuffer buff = ByteBuffer.allocate(lenBody);
buff.put(this.accountId.getBytes());
buff.putInt(this.startnum);
if (lenBody == MsgInfo.LEN_CRBT_QUERY+4){
buff.putInt(this.requireNum);
}
buff.flip();
super.setMsgBody(buff.array());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -