org.gsm.oneapi.responsebean.sms
Class InboundSMSMessage

java.lang.Object
  extended by org.gsm.oneapi.responsebean.sms.InboundSMSMessage
All Implemented Interfaces:
java.io.Serializable

public class InboundSMSMessage
extends java.lang.Object
implements java.io.Serializable

InboundMessage contains the main message information for an SMS message (not including attachment information)

See Also:
Serialized Form

Constructor Summary
InboundSMSMessage()
          default constructor
InboundSMSMessage(java.util.Date dateTime, java.lang.String destinationAddress, java.lang.String messageId, java.lang.String message, java.lang.String resourceURL, java.lang.String senderAddress)
          utility constructor to create an InboundMessage class with all fields set
 
Method Summary
 java.lang.String getDateTime()
          return the date/time that the SMS message was sent.
 java.util.Date getDateTimeAsDate()
          alternate method to get the message date/time in java.util.Date format
 java.lang.String getDestinationAddress()
          return the recipient MSISDN or other identifying number
 java.lang.String getMessage()
          return the SMS message body
 java.lang.String getMessageId()
          return the unique messageId for the message
 java.lang.String getResourceURL()
          return resourceURL containing a URL uniquely identifying this SMS message
 java.lang.String getSenderAddress()
          return the sender MSISDN or other identifying number
 void setDateTime(java.lang.String dateTime)
          set the date/time that the SMS message was sent.
 void setDateTimeAsDate(java.util.Date dateTime)
           
 void setDestinationAddress(java.lang.String destinationAddress)
          set the recipient MSISDN or other identifying number.
 void setMessage(java.lang.String message)
          set the SMS message body.
 void setMessageId(java.lang.String messageId)
          set the unique messageId for the SMS message.
 void setResourceURL(java.lang.String resourceURL)
          set resourceURL containing a URL uniquely identifying this SMS message.
 void setSenderAddress(java.lang.String senderAddress)
          set the sender MSISDN or other identifying number.
 java.lang.String toString()
          generate a textual representation of the InboundMessage including all nested elements and classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InboundSMSMessage

public InboundSMSMessage()
default constructor


InboundSMSMessage

public InboundSMSMessage(java.util.Date dateTime,
                         java.lang.String destinationAddress,
                         java.lang.String messageId,
                         java.lang.String message,
                         java.lang.String resourceURL,
                         java.lang.String senderAddress)
utility constructor to create an InboundMessage class with all fields set

Parameters:
dateTime -
destinationAddress -
messageId -
message -
resourceURL -
senderAddress -
Method Detail

getDateTime

public java.lang.String getDateTime()
return the date/time that the SMS message was sent. The date/time is formatted as an ISO 8601 format string


getDestinationAddress

public java.lang.String getDestinationAddress()
return the recipient MSISDN or other identifying number


getMessageId

public java.lang.String getMessageId()
return the unique messageId for the message


getMessage

public java.lang.String getMessage()
return the SMS message body


getResourceURL

public java.lang.String getResourceURL()
return resourceURL containing a URL uniquely identifying this SMS message


getSenderAddress

public java.lang.String getSenderAddress()
return the sender MSISDN or other identifying number


getDateTimeAsDate

public java.util.Date getDateTimeAsDate()
alternate method to get the message date/time in java.util.Date format


setDateTime

public void setDateTime(java.lang.String dateTime)
set the date/time that the SMS message was sent. The date/time is formatted as an ISO 8601 format string. This is called internally to set the contents according to the JSON response.


setDestinationAddress

public void setDestinationAddress(java.lang.String destinationAddress)
set the recipient MSISDN or other identifying number. This is called internally to set the contents according to the JSON response.


setMessageId

public void setMessageId(java.lang.String messageId)
set the unique messageId for the SMS message. This is called internally to set the contents according to the JSON response.


setMessage

public void setMessage(java.lang.String message)
set the SMS message body. This is called internally to set the contents according to the JSON response.


setResourceURL

public void setResourceURL(java.lang.String resourceURL)
set resourceURL containing a URL uniquely identifying this SMS message. This is called internally to set the contents according to the JSON response.


setSenderAddress

public void setSenderAddress(java.lang.String senderAddress)
set the sender MSISDN or other identifying number. This is called internally to set the contents according to the JSON response.


setDateTimeAsDate

public void setDateTimeAsDate(java.util.Date dateTime)

toString

public java.lang.String toString()
generate a textual representation of the InboundMessage including all nested elements and classes

Overrides:
toString in class java.lang.Object