activetestresponse.java

来自「采用JAVA开发」· Java 代码 · 共 48 行

JAVA
48
字号
package com.gctech.cmpp.msg;

/**
 * <p>Title: active response</p>
 * <p>Description: 短信SP API</p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: GCTECH</p>
 * @author not attributable
 * @version $Id: ActiveTestResponse.java,v 1.1 2004/05/21 07:50:10 wanghb Exp $
 */

public class ActiveTestResponse extends CmppMsg {
  public ActiveTestResponse() {
    super();
    this.head.setCommandId(CommandID.CMPP_ACTIVE_TEST_RESP);
    this.head.setTotalLength(12);
  }
  protected void toByteArray(byte[] parm1) {

  }

  //add by liya begin
  public ActiveTestResponse(CmppMsg cmppmsg) {
    super(cmppmsg);
  }

  public ActiveTestResponse(MsgHead msghead) {
    super(msghead,0,0x80000008);
  }

  private int reserved;

  public int getReserved()
  {
    return reserved;
  }

  public int readbody()
  {
    reserved = bodybytes[0];
    return 0;
  }

  public String toString() {
    return "Active Response:"+reserved;
  }
  //add by liya end
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?