?? msgupdateringset.java
字號:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201.crm.ruc;
import java.nio.ByteBuffer;
import java.util.Date;
import com.aceway.vas.sjcraw.cbgp201.Msg;
import com.aceway.vas.sjcraw.cbgp201.common.DataFormat;
import com.aceway.vas.sjcraw.cbgp201.common.MsgInfo;
/**
* @標題: 華為彩鈴平臺接口規(guī)范
* @說明:
* @版權(quán): Copyright(c) 2007
* @公司: 北京漢銘信通科技有限公司
* @部門: 增值業(yè)務部
* @作者: 武達
* @Jun 7, 2007
*/
public class MsgUpdateRingSet extends Msg {
private static int operCode = MsgInfo.CRBT_UPDATE_RINGSET;
private static int lenBody = MsgInfo.LEN_CRBT_UPDATE_RINGSET;
/*
AccountID 21 String 用戶手機號碼
RingSetIndex 2 Integer 鈴音設置標識,每個用戶的鈴音設置方式都有自己唯一的標識
RingType 1 Integer 鈴音類型
RingID 12 String 鈴音ID,當RingType=1時,表示鈴音ID號,當RingType=2時,表示鈴音組的ID號(將整型鈴音組ID轉(zhuǎn)換成字符填入)
PlayMode 1 Integer 鈴音組的播放方式,當RingType=1時,本字段無效
RingSetType 1 Integer 鈴音設置的方式
RingSetStart 10 String 鈴音設置起始時間
RingSetEnd 10 String 鈴音設置結(jié)束時間
*/
private String accountId;
private int ringSetIndex;
private int ringType;
private String ringId;
private int playMode;
private int ringSetType;
private String ringSetStart;
private String ringSetEnd;
public MsgUpdateRingSet(String seqNo, String linkId, String accountId, int ringSetIndex,
int ringType, String ringId, int playMode, int ringSetType, String ringSetStart, Date ringSetEnd){
super.setCommandLength(lenBody);
super.setMsgHead(operCode, "0", seqNo, linkId);
this.accountId = DataFormat.makeString(accountId, 21);
this.ringSetIndex = ringSetIndex;
this.ringType = ringType;
this.ringId = DataFormat.makeString(ringId, 12);
this.playMode = playMode;
this.ringSetType = ringSetType;
this.ringSetStart = super.dateFormat.format(ringSetStart);
this.ringSetEnd = super.dateFormat.format(ringSetEnd);
ByteBuffer buff = ByteBuffer.allocate(lenBody);
buff.put(this.accountId.getBytes());
buff.put((byte)this.ringSetIndex);
buff.put((byte)(this.ringSetIndex>>>8));
buff.put((byte)this.ringType);
buff.put(this.ringId.getBytes());
buff.put((byte)this.playMode);
buff.put((byte)this.ringSetType);
buff.put(this.ringSetStart.getBytes());
buff.put(this.ringSetEnd.getBytes());
buff.flip();
super.setMsgBody(buff.array());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -