com.samsung.util
Class SM

java.lang.Object
  |
  +--com.samsung.util.SM

public class SM
extends java.lang.Object

The SM is the class contains the destination phone number, callback phone number and text messages.


Constructor Summary
SM()
          Constructs a new instance of Short Message
SM(java.lang.String dest, java.lang.String callback, java.lang.String textMessage)
          Constructs a new instance of Short Message with destinationAddress, callbackAddress and text message.
 
Method Summary
 java.lang.String getCallbackAddress()
          Gets callback phone number.
 java.lang.String getData()
          Gets message which will be sent.
 java.lang.String getDestAddress()
          Gets destination phone number.
 void setCallbackAddress(java.lang.String address)
          Sets the callback address for sending message.
 void setData(java.lang.String textMessage)
          Sets text message which will be sent.
 void setDestAddress(java.lang.String address)
          Sets the destination address for sending message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SM

public SM()
Constructs a new instance of Short Message


SM

public SM(java.lang.String dest,
          java.lang.String callback,
          java.lang.String textMessage)
Constructs a new instance of Short Message with destinationAddress, callbackAddress and text message.

Throws:
java.lang.IllegalArgumentException - if the length of textMessage exceeds 80. or dest is invalid phone number.
Method Detail

setDestAddress

public void setDestAddress(java.lang.String address)
Sets the destination address for sending message.

Throws:
java.lang.IllegalArgumentException - if address is invalid phone number.

setCallbackAddress

public void setCallbackAddress(java.lang.String address)
Sets the callback address for sending message. This function is used when you want to set the originated address differently with original one.
Currently this function call is ignored.


setData

public void setData(java.lang.String textMessage)
Sets text message which will be sent.

Throws:
java.lang.IllegalArgumentException - if the length of textMessage exceeds 80.

getDestAddress

public java.lang.String getDestAddress()
Gets destination phone number.


getCallbackAddress

public java.lang.String getCallbackAddress()
Gets callback phone number.


getData

public java.lang.String getData()
Gets message which will be sent.