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

📄 bodydeliver.java

📁 短信平台CMPP30 的JAVA程序,(含SQL数据库)
💻 JAVA
字号:
// 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:   BodyDeliver.java

package com.cmpp3_0.body;

import com.cmpp3_0.util.CMPPUtil;

// Referenced classes of package com.cmpp3_0.body:
//            BodyDeliverStatusMsgContent

public class BodyDeliver
{

    public static final int DELIVER_MSGFORMAT_BYTESCODE = 4;
    public static final int DELIVER_MSGFORMAT_CHINESE = 15;
    public static final int DELIVER_MSGFORMAT_ENGLISH = 0;
    public static final int DELIVER_MSGFORMAT_UNICODE = 8;
    public static final int DELIVER_MSGFORMAT_WRITECARD = 3;
    public static final int DELIVER_REGESTERY_NOT_REPORT = 0;
    public static final int DELIVER_REGESTERY_REPORT = 1;
    public BodyDeliverStatusMsgContent bodyDeliverStatusMsgContent;
    public String dstId;
    public String linkId;
    public String msgContent;
    public int msgFmt;
    public long msgId;
    public byte msgIdBytes[];
    public int msgLength;
    public int registerDeliver;
    public int seqId;
    public String serviceId;
    public String srcTermId;
    public int srcTermType;
    public int tpPid;
    public int tpUdhi;

    public BodyDeliver(int seqId, byte msgId[], String dstId, String dstAddr, String serviceId, int tpPid, int tpUdhi, 
            int msgFmt, String srcTermId, int srcTermType, int registerDeliver, int msgLength, byte msgContent[], String linkId)
    {
        this.seqId = -1;
        this.seqId = seqId;
        msgIdBytes = msgId;
        this.msgId = CMPPUtil.eightBytesToLong(msgIdBytes);
        this.dstId = dstId;
        this.serviceId = serviceId;
        this.tpPid = tpPid;
        this.tpUdhi = tpUdhi;
        this.msgFmt = msgFmt;
        this.srcTermId = srcTermId;
        this.srcTermType = srcTermType;
        this.registerDeliver = registerDeliver;
        this.msgLength = msgLength;
        this.msgContent = CMPPUtil.parseBytesToString(msgFmt, msgContent);
        this.linkId = linkId;
    }

    public BodyDeliver(int seqId, long msgId, String dstId, String serviceId, int tpPid, int tpUdhi, 
            int msgFmt, String srcTermId, int srcTermType, int registerDeliver, int msgLength, BodyDeliverStatusMsgContent msgContent, String linkId)
    {
        this.seqId = -1;
        this.seqId = seqId;
        this.msgId = msgId;
        this.dstId = dstId;
        this.serviceId = serviceId;
        this.tpPid = tpPid;
        this.tpUdhi = tpUdhi;
        this.msgFmt = msgFmt;
        this.srcTermId = srcTermId;
        this.srcTermType = srcTermType;
        this.registerDeliver = registerDeliver;
        this.msgLength = msgLength;
        bodyDeliverStatusMsgContent = msgContent;
        this.linkId = linkId;
    }

    public BodyDeliver()
    {
        seqId = -1;
    }

    public String toString()
    {
        if(registerDeliver == 0)
            return "msgId : " + msgId + "\ndstId : " + dstId + "\nserviceId : " + serviceId + "\ntpPid : " + tpPid + "\ntpUdhi : " + tpUdhi + "\nmsgFmt : " + msgFmt + "\nsrcTermId : " + srcTermId + "\nsrcTermType : " + srcTermType + "\nregisterDeliver : " + registerDeliver + "\nmsgLength : " + msgLength + "\nmsgContent : " + msgContent + "\nlinkId : " + linkId + "\n";
        else
            return "msgId : " + msgId + "\ndstId : " + dstId + "\nserviceId : " + serviceId + "\ntpPid : " + tpPid + "\ntpUdhi : " + tpUdhi + "\nmsgFmt : " + msgFmt + "\nsrcTermId : " + srcTermId + "\nsrcTermType : " + srcTermType + "\nregisterDeliver : " + registerDeliver + "\nmsgLength : " + msgLength + "\n状态报告内容 :\n " + bodyDeliverStatusMsgContent + "\nlinkId : " + linkId + "\n";
    }
}

⌨️ 快捷键说明

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