cmppqueryresp.java

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

JAVA
47
字号
// 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:   CMPPQueryResp.java

package com.cmpp3_0.process;

import com.cmpp3_0.body.BodyQueryResp;
import com.cmpp3_0.util.CMPPUtil;

public class CMPPQueryResp
{

    private BodyQueryResp bodyQueryResp;

    public CMPPQueryResp(byte body[], int seqId)
    {
        bodyQueryResp = new BodyQueryResp();
        bodyQueryResp.seqId = seqId;
        bodyQueryResp.time = new String(body, 0, 8);
        bodyQueryResp.queryType = body[8];
        bodyQueryResp.queryCode = new String(body, 9, 10);
        byte b[] = new byte[4];
        CMPPUtil.bytesCopy(body, b, 19, 4, 0);
        bodyQueryResp.mtTlMsg = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 23, 4, 0);
        bodyQueryResp.mtTlUsr = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 27, 4, 0);
        bodyQueryResp.mtScs = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 31, 4, 0);
        bodyQueryResp.mtWt = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 35, 4, 0);
        bodyQueryResp.mtFl = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 39, 4, 0);
        bodyQueryResp.moScs = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 43, 4, 0);
        bodyQueryResp.moWt = CMPPUtil.fourBytesToInt(b);
        CMPPUtil.bytesCopy(body, b, 47, 4, 0);
        bodyQueryResp.moFl = CMPPUtil.fourBytesToInt(b);
    }

    public BodyQueryResp getBodyQueryResp()
    {
        return bodyQueryResp;
    }
}

⌨️ 快捷键说明

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