report.java

来自「短信平台CMPP30 的JAVA程序,(含SQL数据库)」· Java 代码 · 共 89 行

JAVA
89
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Report.java

package com.SGIP12.sgipdata;


// Referenced classes of package com.SGIP12.sgipdata:
//            SGIP_Command, MsgHead

public class Report extends SGIP_Command
{

    private int ErrorCode;
    private int ReportType;
    private String Reserve;
    private long Seq_1;
    private int Seq_2;
    private int Seq_3;
    private int State;
    private String UserNumber;

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

    public Report()
    {
    }

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

    public int getErrorCode()
    {
        return ErrorCode;
    }

    public int getReportType()
    {
        return ReportType;
    }

    public long getSeq_1()
    {
        return Seq_1;
    }

    public int getSeq_2()
    {
        return Seq_2;
    }

    public int getSeq_3()
    {
        return Seq_3;
    }

    public int getState()
    {
        return State;
    }

    public String getUserNumber()
    {
        return UserNumber;
    }

    public int readbody()
    {
        byte abyte0[] = new byte[4];
        SGIP_Command.BytesCopy(bodybytes, abyte0, 0, 3, 0);
        Seq_1 = SGIP_Command.Bytes4ToLong(abyte0);
        SGIP_Command.BytesCopy(bodybytes, abyte0, 4, 7, 0);
        Seq_2 = SGIP_Command.Bytes4ToInt(abyte0);
        SGIP_Command.BytesCopy(bodybytes, abyte0, 8, 11, 0);
        Seq_3 = SGIP_Command.Bytes4ToInt(abyte0);
        ReportType = bodybytes[12];
        UserNumber = new String(bodybytes, 13, 21);
        State = bodybytes[34];
        ErrorCode = bodybytes[35];
        return !UserNumber.startsWith("8613") ? 0 : 6;
    }
}

⌨️ 快捷键说明

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