?? msgdelringset.java
字號:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201.crm.ruc;
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 7, 2007
*/
public class MsgDelRingSet extends Msg {
private static int operCode = MsgInfo.CRBT_DEL_RINGSET;
private static int lenBody = MsgInfo.LEN_CRBT_DEL_RINGSET;
/*
AccountID 21 String 用戶手機號碼
RingSetIndex 2 Integer 鈴音設置標識,每個用戶的鈴音設置方式都有自己唯一的標識
*/
private String accountId;
private int ringSetIndex;
public MsgDelRingSet(String seqNo, String linkId, String accountId, int ringSetIndex){
super.setCommandLength(lenBody);
super.setMsgHead(operCode, "0", seqNo, linkId);
this.accountId = DataFormat.makeString(this.accountId, 21);
this.ringSetIndex = ringSetIndex;
ByteBuffer buff = ByteBuffer.allocate(lenBody);
buff.put(this.accountId.getBytes());
buff.put((byte)(this.ringSetIndex>>>8));
buff.put((byte)this.ringSetIndex);
buff.flip();
super.setMsgBody(buff.array());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -