com.bt.sdk.capabilities.messaging.inbound
Class OutboundMessage

java.lang.Object
  extended by com.bt.sdk.capabilities.messaging.inbound.OutboundMessage

public class OutboundMessage
extends java.lang.Object

Data representing a message that is to be or has been sent.


Constructor Summary
OutboundMessage()
          Default Constructor
OutboundMessage(java.util.Collection<java.lang.String> recipientUris, java.lang.String messageText)
          Creates a new OutboundMessage object.
OutboundMessage(java.lang.String messageText)
          Creates a new OutboundMessage object.
OutboundMessage(java.lang.String uri, java.lang.String messageText)
          Creates a new OutboundMessage object.
 
Method Summary
 java.util.Collection<com.bt.sdk.capabilities.messaging.inbound.MessageDeliveryStatus> getMessageDeliveryStatuses()
           
 java.lang.String getMessageId()
           
 java.lang.String getMessageText()
           
 java.util.Collection<java.lang.String> getRecipientUris()
           
 java.lang.String getUrl()
           
 void setMessageDeliveryStatuses(java.util.Collection<com.bt.sdk.capabilities.messaging.inbound.MessageDeliveryStatus> newValue)
           
protected  void setMessageId(java.lang.String newValue)
           
 void setMessageText(java.lang.String newValue)
           
 void setRecipientUris(java.util.Collection<java.lang.String> newValue)
           
 void setUrl(java.lang.String newValue)
           
 void updateStatus()
          Updates the status of the message object from the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundMessage

public OutboundMessage()
Default Constructor


OutboundMessage

public OutboundMessage(java.lang.String uri,
                       java.lang.String messageText)
Creates a new OutboundMessage object.

Parameters:
uri - A uri where the message is to be sent. At the time of release, uris should start with 'tel:' but are subject to change. Eg: 'tel:447700900123'
messageText - The message text to send.

OutboundMessage

public OutboundMessage(java.lang.String messageText)
Creates a new OutboundMessage object.

Parameters:
messageText - The message text to send.

OutboundMessage

public OutboundMessage(java.util.Collection<java.lang.String> recipientUris,
                       java.lang.String messageText)
Creates a new OutboundMessage object.

Parameters:
recipientUris - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:' but are subject to change. Eg: 'tel:447700900123'
messageText - The message text to send.
Method Detail

getMessageId

public java.lang.String getMessageId()
Returns:
messageId The message identifier.

setMessageId

protected void setMessageId(java.lang.String newValue)
Parameters:
messageId - The message identifier.

getUrl

public java.lang.String getUrl()
Returns:
url A url to receive postback messages for the status of the message sent.

setUrl

public void setUrl(java.lang.String newValue)
Parameters:
url - A url to receive postback messages for the status of the message sent.

getMessageDeliveryStatuses

public java.util.Collection<com.bt.sdk.capabilities.messaging.inbound.MessageDeliveryStatus> getMessageDeliveryStatuses()
Returns:
messageDeliveryStatuses The delivery statuses of the Message.

setMessageDeliveryStatuses

public void setMessageDeliveryStatuses(java.util.Collection<com.bt.sdk.capabilities.messaging.inbound.MessageDeliveryStatus> newValue)
Parameters:
messageDeliveryStatuses - The delivery statuses of the Message.

getRecipientUris

public java.util.Collection<java.lang.String> getRecipientUris()
Returns:
recipientUris An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:' but are subject to change. Eg: 'tel:447700900123'

setRecipientUris

public void setRecipientUris(java.util.Collection<java.lang.String> newValue)
Parameters:
recipientUris - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:' but are subject to change. Eg: 'tel:447700900123'

getMessageText

public java.lang.String getMessageText()
Returns:
messageText The message text to send.

setMessageText

public void setMessageText(java.lang.String newValue)
Parameters:
messageText - The message text to send.

updateStatus

public void updateStatus()
Updates the status of the message object from the service.