|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.unipro.smlib.InMessage
Class represents incoming message.
InMessage object is passed as a parameter to SmsListener.proccessMessage() method.
To process in messages register SmsListener in the SmsManager.
You can get parameters of the message using get methods. If there is a concatenated message, text of message is a concatenated string.
Parameters are: | |
Sender number | The phone number in national format without '+' or in provider specified number's format. For example: 79029070904 - national format, 001900 - provider specified format. |
SMSC Number | The number of Short Message Service Center in national format without '+' |
Text | The message text |
SMSC Time | The time stamp from SMSC in java.util.GregorianCalendar format |
Reply Path | Reply path flag can be use to notify receiver if transmitter is capable to receive messages. |
More Messages | The More Messages is the information element by which the SMSC informs the mobile station that there are one or more messages waiting in that SMSC to be delivered to the mobile. |
Flash Flag | Flag indicates if this message is a flash message, false by default. |
ACK | The request for status indication report. |
Method Summary | |
boolean |
getMoreMessages()
Gets more messages flag. |
boolean |
getReplyPath()
Gets the reply path flag. |
java.lang.String |
getSenderNumber()
Gets message sender number. |
java.lang.String |
getSMSCNumber()
Gets Short Message Service Center number of the message. |
java.util.GregorianCalendar |
getSMSCTime()
Gets Short Message Service Center time. |
java.lang.String |
getText()
Gets message text. |
boolean |
isACKReportForThisMessage()
Tests if a status report will be returned to the mobile phone for this message. |
boolean |
isFlash()
Tests if this message is a flash message. |
java.lang.String |
toString()
Returns String representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getSenderNumber()
public java.lang.String getSMSCNumber()
getSMSCNumber
in interface com.unipro.smlib.InputItem
public java.util.GregorianCalendar getSMSCTime()
getSMSCTime
in interface com.unipro.smlib.InputItem
public java.lang.String getText()
public boolean getMoreMessages()
public boolean getReplyPath()
public boolean isFlash()
public boolean isACKReportForThisMessage()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |