com.ewon.ewonitf
Class SmsMessage
java.lang.Object
com.ewon.ewonitf.SmsMessage
public class SmsMessage
- extends Object
This class represents the content of an SMS message (received).
Objects of this class are typically returned by functions like: ModemManager.readSms()
Constructor Summary |
SmsMessage(long ndx,
String from,
long rxDateTime,
String message)
Creates a new instance of SmsMessage. |
SmsMessage
public SmsMessage(long ndx,
String from,
long rxDateTime,
String message)
- Creates a new instance of SmsMessage. This function is normaly not used by the user but internally
to return Sms objects with function like
ModemManager.readSms()
- Parameters:
ndx
- Index of the SMS in the SIM cardfrom
- Phone number of the Sms senderrxDateTime
- The difference, measured in milliseconds, between rxDataTime
time and midnight, January 1, 1970 UTC. This value can be converted in Calendar or Date object.message
- Sms message.
getSmsNdx
public long getSmsNdx()
- Returns:
- The Sms Ndx (this is allocated by the GSM during reception)
getSmsDataTime
public long getSmsDataTime()
- Returns:
- The Sms reception Dta and time. This value can be converted in Calendar or Date object.
getSmsFrom
public String getSmsFrom()
- Returns:
- The Sms From phone number
getSmsMessage
public String getSmsMessage()
- Returns:
- The Sms Message
www.eWON.biz: Your Eyes Watching Over Net