report.java

来自「短信服务的源码,可以连接联通SMG等短信网关进行短信发送」· Java 代码 · 共 88 行

JAVA
88
字号
// 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 spApi;


// Referenced classes of package spApi:
//            SGIP_Command, MsgHead

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 msghead)
    {
        super(msghead);
    }

    public Report()
    {
    }

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

    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 0;
    }

    public String getUserNumber()
    {
        return UserNumber;
    }

    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 int getErrorCode()
    {
        return ErrorCode;
    }
}

⌨️ 快捷键说明

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