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