?? msgdelmemringgroup.java
字號(hào):
/**
*
*/
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;
/**
* @標(biāo)題: 華為彩鈴平臺(tái)接口規(guī)范
* @說明:
* @版權(quán): Copyright(c) 2007
* @公司: 北京漢銘信通科技有限公司
* @部門: 增值業(yè)務(wù)部
* @作者: 武達(dá)
* @Jun 6, 2007
*/
public class MsgDelMemRingGroup extends Msg {
private static int operCode = MsgInfo.CRBT_DELMEM_RINGGROUP;
private static int lenBody = MsgInfo.LEN_CRBT_ADD_RING;
/*
AccountID 21 String 用戶手機(jī)號(hào)碼
RingGroupID 2 Integer 鈴音組ID
RingID 12 String 增加的鈴音ID
*/
private String accountId;
private int ringGroupId;
private String ringId;
public MsgDelMemRingGroup(String seqNo, String linkId, String accountId, int ringGroupId, String ringId){
this.accountId = DataFormat.makeString(accountId, 21);
this.accountId = accountId;
this.ringId = ringId;
super.setCommandLength(lenBody);
super.setMsgHead(operCode, "0", seqNo, linkId);
ByteBuffer buff = ByteBuffer.allocate(lenBody);
buff.put(this.accountId.getBytes());
byte[] bytes=DataFormat.int2bytes(this.ringGroupId);
buff.put(bytes[2]);
buff.put(bytes[3]);
buff.put(this.ringId.getBytes());
buff.flip();
super.setMsgBody(buff.array());
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -