📄 msgbindrc.java
字号:
/**
*
*/
package com.aceway.vas.sjcraw.cbgp201;
import com.aceway.vas.sjcraw.cbgp201.common.DataFormat;
import com.aceway.vas.sjcraw.cbgp201.common.MsgInfo;
/**
* @标题: 华为彩铃平台接口规范
* @说明:
* @版权: Copyright(c) 2007
* @公司: 北京汉铭信通科技有限公司
* @部门: 增值业务部
* @作者: 武达
* @Jun 5, 2007
*/
public class MsgBindRc extends Msg{
/*
AuthMethod 2 Integer 绑定采用的认证方法。 8.2.31
Version 2 Integer 协议版本号。 8.2.32
*/
private int authMethod;
private int version;
private static int lenBody = MsgInfo.LEN_CRBT_BIND_RC;
private static int operCode = MsgInfo.CRBT_BING_RC;
public MsgBindRc(String seqNo, String linkId, int authMethod, int version){
this.authMethod = authMethod;
this.version = version;
super.setCommandLength(lenBody);
byte[] b1=DataFormat.int2bytes(this.authMethod);
byte[] b2 = DataFormat.int2bytes(this.version);
byte[] b = {b1[2], b1[3], b2[2], b2[3]};
super.setMsgHead(operCode, "0", seqNo, linkId);
super.setMsgBody(b);
}
public static void main(String[] args){
MsgBindRc m = new MsgBindRc("", "", 2,3);
byte[] bytes = m.getMsg();
System.out.println();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -