?? cmppdeliver.java
字號:
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov Date: 2004-4-16 11:12:22
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: cmppDeliver.java
package com.aspire.cmppApi;
// Referenced classes of package com.aspire.cmppApi:
// cmppCommon
public class cmppDeliver
{
public cmppDeliver(byte abyte0[], int i)
{
bodylens = i;
bodybytes = new byte[i];
MsgId = -1L;
DestnationId = "";
ServiceId = "";
TPpid = -1;
TPudhi = -1;
MsgFmt = -1;
SrcTerminalId = "";
RegisteredDelivery = -1;
MsgLength = 0;
MsgContent = new byte[160];
Reverse = "";
Stat = "";
SubmitTime = "";
DoneTime = "";
DestTerminalId = "";
SMSCSequence = -1;
boolean flag = false;
for(int j = 0; j < i; j++)
bodybytes[j] = abyte0[j];
}
public String getDestnationId()
{
byte abyte0[] = new byte[21];
cmppCommon.BytesCopy(bodybytes, abyte0, 8, 28, 0);
DestnationId = new String(abyte0);
return DestnationId;
}
public byte[] getMsgContent()
{
int i = getMsgLength();
MsgContent = new byte[i];
cmppCommon.BytesCopy(bodybytes, MsgContent, 65, 64 + i, 0);
return MsgContent;
}
public int getMsgFmt()
{
int i = bodybytes[41];
MsgFmt = i;
return MsgFmt;
}
public long getMsgId()
{
byte abyte0[] = new byte[8];
cmppCommon.BytesCopy(bodybytes, abyte0, 0, 7, 0);
MsgId = cmppCommon.Bytes8ToLong(abyte0);
return MsgId;
}
public int getMsgLength()
{
int i = bodybytes[64];
MsgLength = i;
if(MsgLength < 0)
MsgLength += 256;
return MsgLength;
}
public String getReceiptDestTerminalId()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
if(byte1 == 1)
{
byte abyte0[] = new byte[21];
cmppCommon.BytesCopy(bodybytes, abyte0, 100, 120, 0);
DestTerminalId = new String(abyte0);
}
return DestTerminalId;
}
public String getReceiptDoneTime()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
if(byte1 == 1)
{
byte abyte0[] = new byte[10];
cmppCommon.BytesCopy(bodybytes, abyte0, 90, 99, 0);
DoneTime = new String(abyte0);
}
return DoneTime;
}
public long getReceiptMsgId()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
byte abyte0[] = new byte[8];
if(byte1 == 1)
cmppCommon.BytesCopy(bodybytes, abyte0, 65, 72, 0);
MsgId = cmppCommon.Bytes8ToLong(abyte0);
return MsgId;
}
public int getReceiptSMSCSequence()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
if(byte1 == 1)
{
byte abyte0[] = new byte[4];
cmppCommon.BytesCopy(bodybytes, abyte0, 121, 124, 0);
SMSCSequence = cmppCommon.Bytes4ToInt(abyte0);
}
return SMSCSequence;
}
public String getReceiptStat()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
if(byte1 == 1)
{
byte abyte0[] = new byte[7];
cmppCommon.BytesCopy(bodybytes, abyte0, 73, 79, 0);
Stat = new String(abyte0);
}
return Stat;
}
public String getReceiptSubmitTime()
{
byte byte0 = bodybytes[63];
byte byte1 = byte0;
if(byte1 == 1)
{
byte abyte0[] = new byte[10];
cmppCommon.BytesCopy(bodybytes, abyte0, 80, 89, 0);
SubmitTime = new String(abyte0);
}
return SubmitTime;
}
public int getRegisteredDelivery()
{
int i = bodybytes[63];
RegisteredDelivery = i;
return RegisteredDelivery;
}
public String getReverse()
{
int j = getRegisteredDelivery();
int i;
if(j == 1)
i = 60;
else
i = getMsgLength();
byte abyte0[] = new byte[8];
cmppCommon.BytesCopy(bodybytes, abyte0, 65 + i, 65 + i + 7, 0);
Reverse = new String(abyte0);
return Reverse;
}
public String getServiceId()
{
byte abyte0[] = new byte[10];
cmppCommon.BytesCopy(bodybytes, abyte0, 29, 38, 0);
ServiceId = new String(abyte0);
return ServiceId;
}
public String getSrcTerminalId()
{
byte abyte0[] = new byte[21];
cmppCommon.BytesCopy(bodybytes, abyte0, 42, 62, 0);
SrcTerminalId = new String(abyte0);
return SrcTerminalId;
}
public int getTPpid()
{
int i = bodybytes[39];
TPpid = i;
return TPpid;
}
public int getTPudhi()
{
int i = bodybytes[40];
TPudhi = i;
return TPudhi;
}
byte bodybytes[];
long MsgId;
String DestnationId;
String ServiceId;
int TPpid;
int TPudhi;
int MsgFmt;
String SrcTerminalId;
int RegisteredDelivery;
int MsgLength;
byte MsgContent[];
String Reverse;
String Stat;
String SubmitTime;
String DoneTime;
String DestTerminalId;
int SMSCSequence;
int bodylens;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -