public class DBCInSMSPacket
extends java.lang.Object
DBCDBPlugin_3.handleReceivedSMS(DBCInSMSPacket)
.
Note that this object does not represent a concatenated SMS message. The concatenation part number and other information are present in this object. Its the responsibility of the plugin to perform concatenation.
Constructor and Description |
---|
DBCInSMSPacket() |
DBCInSMSPacket(I_GemInSMSPacket data)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
int |
getConcatenationMessageNo()
The number representing which part of the concatenated SMS.
|
int |
getConcatenationReferenceNo()
A reference number that is the same in all parts of a concatenated SMS.
|
int |
getConcatenationTotalNoOfMessages()
The total number of SMS parts that make up the whole message.
|
java.lang.String |
getContent()
The text content of the message
|
java.lang.String |
getFromPhoneNo()
The source phone number (MO)
|
I_GemInSMSPacket |
getInternalData()
For internal use.
|
boolean |
getIsUnicode()
Boolean parameter indicating true if the text content used the unicode characterset.
|
java.lang.String |
getToShortCode()
The shortcode to which this message was originally sent, ie, the 'To' field.
|
public DBCInSMSPacket()
public DBCInSMSPacket(I_GemInSMSPacket data)
public I_GemInSMSPacket getInternalData()
public java.lang.String getFromPhoneNo()
public java.lang.String getToShortCode()
public java.lang.String getContent()
public boolean getIsUnicode()
public int getConcatenationTotalNoOfMessages()
Will be 0 or 1 if this is not a part of a concatenated set.
public int getConcatenationMessageNo()
For example, if the SMS comrpised of 3 parts, this value could be 1, 2 or 3 depending on whether it was the first, second or third part of the whole message.
public int getConcatenationReferenceNo()
This is useful if more than one concatenated message is received from the same source.
Note that during concatenation of the parts, it is recommended that the getFromPhoneNo()
field also be taken into account, since the same referenced number may be received from multiple sources.
The actual reference number value is generated by the remote handset, and can be any value.