com.bt.sdk.capabilities.messaging.oneway
Class MessagingOneWayManager

java.lang.Object
  extended by com.bt.sdk.capabilities.messaging.oneway.MessagingOneWayManager

public class MessagingOneWayManager
extends java.lang.Object

This service allows you to send an SMS to a GSM device and gather information about its delivery


Constructor Summary
MessagingOneWayManager()
           
 
Method Summary
 com.bt.sdk.capabilities.messaging.oneway.MessageDeliveryStatuses getMessageDeliveryStatuses(java.lang.String messageId)
          Returns the status of a sent SMS message
 Message sendMessage(java.util.Collection<java.lang.String> recipients, java.lang.String messageText)
          Sends an SMS message to a GSM device
 Message sendMessage(java.util.Collection<java.lang.String> recipients, java.lang.String from, java.lang.String messageText)
          Sends an SMS message to a GSM device
 Message sendMessage(Message message)
          Sends an SMS message to a GSM device
 Message sendMessage(java.lang.String recipient, java.lang.String messageText)
          Sends an SMS message to a GSM device
 Message sendMessage(java.lang.String recipient, java.lang.String from, java.lang.String messageText)
          Sends an SMS message to a GSM device
 Message sendMessageWithEventing(java.util.Collection<java.lang.String> recipients, java.lang.String messageText, java.lang.String url)
          Sends an SMS message to a GSM device and sends event updates to url entered
 Message sendMessageWithEventing(java.util.Collection<java.lang.String> recipients, java.lang.String from, java.lang.String messageText, java.lang.String url)
          Sends an SMS message to a GSM device and sends event updates to url entered
 Message sendMessageWithEventing(java.lang.String recipient, java.lang.String messageText, java.lang.String url)
          Sends an SMS message to a GSM device and sends event updates to url entered
 Message sendMessageWithEventing(java.lang.String recipient, java.lang.String from, java.lang.String messageText, java.lang.String url)
          Sends an SMS message to a GSM device and sends event updates to url entered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingOneWayManager

public MessagingOneWayManager()
Method Detail

sendMessage

public Message sendMessage(java.util.Collection<java.lang.String> recipients,
                           java.lang.String from,
                           java.lang.String messageText)
Sends an SMS message to a GSM device

Parameters:
recipients - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
from - The subject of the message or email sent.
messageText - The message text to send.
Returns:
Message The Message that was sent.

sendMessage

public Message sendMessage(java.lang.String recipient,
                           java.lang.String from,
                           java.lang.String messageText)
Sends an SMS message to a GSM device

Parameters:
recipient - A uri where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
from - The subject of the message or email sent.
messageText - The message text to send.
Returns:
Message The Message that was sent.

sendMessage

public Message sendMessage(java.util.Collection<java.lang.String> recipients,
                           java.lang.String messageText)
Sends an SMS message to a GSM device

Parameters:
recipients - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
messageText - The message text to send.
Returns:
Message The Message that was sent.

sendMessage

public Message sendMessage(java.lang.String recipient,
                           java.lang.String messageText)
Sends an SMS message to a GSM device

Parameters:
recipient - A uri where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
messageText - The message text to send.
Returns:
Message The Message that was sent.

sendMessage

public Message sendMessage(Message message)
Sends an SMS message to a GSM device

Parameters:
message - A Message object.
Returns:
Message The Message that was sent.

sendMessageWithEventing

public Message sendMessageWithEventing(java.util.Collection<java.lang.String> recipients,
                                       java.lang.String from,
                                       java.lang.String messageText,
                                       java.lang.String url)
Sends an SMS message to a GSM device and sends event updates to url entered

Parameters:
recipients - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
from - The subject of the message or email sent.
messageText - The message text to send.
url - A url to receive postback messages for the status of the message sent.
Returns:
Message The Message that was sent.

sendMessageWithEventing

public Message sendMessageWithEventing(java.lang.String recipient,
                                       java.lang.String from,
                                       java.lang.String messageText,
                                       java.lang.String url)
Sends an SMS message to a GSM device and sends event updates to url entered

Parameters:
recipient - A uri where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
from - The subject of the message or email sent.
messageText - The message text to send.
url - A url to receive postback messages for the status of the message sent.
Returns:
Message The Message that was sent.

sendMessageWithEventing

public Message sendMessageWithEventing(java.util.Collection<java.lang.String> recipients,
                                       java.lang.String messageText,
                                       java.lang.String url)
Sends an SMS message to a GSM device and sends event updates to url entered

Parameters:
recipients - An array of uris where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
messageText - The message text to send.
url - A url to receive postback messages for the status of the message sent.
Returns:
Message The Message that was sent.

sendMessageWithEventing

public Message sendMessageWithEventing(java.lang.String recipient,
                                       java.lang.String messageText,
                                       java.lang.String url)
Sends an SMS message to a GSM device and sends event updates to url entered

Parameters:
recipient - A uri where the message is to be sent. At the time of release, uris should start with 'tel:', 'sip:' or 'mailto:', but are subject to change. Eg: 'tel:447700900123', 'sip:user@domain.com', 'mailto:user@domain.com'
messageText - The message text to send.
url - A url to receive postback messages for the status of the message sent.
Returns:
Message The Message that was sent.

getMessageDeliveryStatuses

public com.bt.sdk.capabilities.messaging.oneway.MessageDeliveryStatuses getMessageDeliveryStatuses(java.lang.String messageId)
Returns the status of a sent SMS message

Parameters:
messageId - The message identifier.
Returns:
MessageDeliveryStatuses The delivery statuses of the Message.