org.gsm.oneapi.responsebean.mms
Class InboundMessage

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

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

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

See Also:
Serialized Form

Constructor Summary
InboundMessage()
          default constructor
InboundMessage(java.util.Date dateTime, java.lang.String destinationAddress, java.lang.String messageId, 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 MMS 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
 InboundMMSMessage getInboundMMSMessage()
          return the MMS detail including subject/ 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 MMS 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 MMS message was sent.
 void setDateTimeAsDate(java.util.Date dateTime)
          set the date/time that the MMS message was sent.
 void setDestinationAddress(java.lang.String destinationAddress)
          set the recipient MSISDN or other identifying number.
 void setInboundMMSMessage(InboundMMSMessage inboundMMSMessage)
          set the MMS detail including subject/ message body.
 void setMessageId(java.lang.String messageId)
          set the unique messageId for the MMS message.
 void setResourceURL(java.lang.String resourceURL)
          set resourceURL containing a URL uniquely identifying this MMS 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 instance 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

InboundMessage

public InboundMessage()
default constructor


InboundMessage

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

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

getDateTime

public java.lang.String getDateTime()
return the date/time that the MMS 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


getInboundMMSMessage

public InboundMMSMessage getInboundMMSMessage()
return the MMS detail including subject/ message body


getMessageId

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


getResourceURL

public java.lang.String getResourceURL()
return resourceURL containing a URL uniquely identifying this MMS 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 MMS 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.


setInboundMMSMessage

public void setInboundMMSMessage(InboundMMSMessage inboundMMSMessage)
set the MMS detail including subject/ message body. 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 MMS message. 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 MMS 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)
set the date/time that the MMS message was sent. This time formatted as java.util.Date


toString

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

Overrides:
toString in class java.lang.Object