traceresp.java

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

JAVA
77
字号
// 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:   TraceResp.java

package com.SGIP12.sgipdata;


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

public class TraceResp extends SGIP_Command
{

    public int Count;
    public String NodeId;
    public String ReceiveTime;
    public String Reserve;
    public int Result;
    public String SendTime;

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

    public TraceResp(MsgHead msghead)
    {
        super(msghead, 48, 0x80001000);
    }

    public TraceResp()
    {
    }

    public void SetResult(int result)
    {
        Result = result;
        bodybytes[1] = SGIP_Command.IntToByte(result);
    }

    public int getCount()
    {
        return Count;
    }

    public String getNodeId()
    {
        return NodeId;
    }

    public String getReceiveTime()
    {
        return ReceiveTime;
    }

    public int getResult()
    {
        return Result;
    }

    public String getSendTime()
    {
        return SendTime;
    }

    public int readbody()
    {
        Count = bodybytes[0];
        Result = bodybytes[1];
        NodeId = new String(bodybytes, 2, 6);
        ReceiveTime = new String(bodybytes, 8, 16);
        SendTime = new String(bodybytes, 24, 16);
        return 0;
    }
}

⌨️ 快捷键说明

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