eWON JTK

com.ewon.ewonitf
Class SmsMessage

java.lang.Object
  extended by 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.
 
Method Summary
 long getSmsDataTime()
           
 String getSmsFrom()
           
 String getSmsMessage()
           
 long getSmsNdx()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 card
from - Phone number of the Sms sender
rxDateTime - 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.
Method Detail

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

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net