⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 report.java

📁 联通的SGIP协议Java实现
💻 JAVA
字号:
package spApi;

public class Report extends SGIP_Command
{
  String UserNumber;
  long Seq_1;
  int Seq_2;
  int Seq_3;
  int State;
  int ErrorCode;
  int ReportType;

  public Report(MsgHead paramMsgHead)
  {
    super(paramMsgHead);
  }

  public Report() {
  }

  public Report(SGIP_Command paramSGIP_Command) {
    super(paramSGIP_Command);
  }

  public int readbody()
  {
    byte[] arrayOfByte = new byte[4];

    SGIP_Command.BytesCopy(this.bodybytes, arrayOfByte, 0, 3, 0);
    this.Seq_1 = SGIP_Command.Bytes4ToLong(arrayOfByte);

    SGIP_Command.BytesCopy(this.bodybytes, arrayOfByte, 4, 7, 0);
    this.Seq_2 = SGIP_Command.Bytes4ToInt(arrayOfByte);

    SGIP_Command.BytesCopy(this.bodybytes, arrayOfByte, 8, 11, 0);
    this.Seq_3 = SGIP_Command.Bytes4ToInt(arrayOfByte);

    this.ReportType = this.bodybytes[12];

    this.UserNumber = new String(this.bodybytes, 13, 21);

    this.State = this.bodybytes[34];
    this.ErrorCode = this.bodybytes[35];
    return 0;
  }

  public String getUserNumber()
  {
    return this.UserNumber;
  }

  public int getReportType() {
    return this.ReportType;
  }

  public long getSeq_1() {
    return this.Seq_1;
  }

  public int getSeq_2() {
    return this.Seq_2;
  }

  public int getSeq_3() {
    return this.Seq_3;
  }

  public int getState() {
    return this.State;
  }

  public int getErrorCode() {
    return this.ErrorCode;
  }
}

⌨️ 快捷键说明

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