public interface SmsRequest
Modifier and Type | Method and Description |
---|---|
SmsRequest |
addRecipient(String address)
Add another recipient to the existing set of recipients for this message.
|
String |
getAccountId()
Get the account ID.
|
SmsListener |
getListener()
Get the listener that was previously assigned using
SmsRequest.setListener(SmsListener) . |
String |
getPassword()
Get the password
|
List |
getRecipients()
Get the list of recipients for this request.
|
String |
getSender()
Get the sender (e.g., "13035551234")
|
String |
getText()
Get the text body
|
String |
getUserName()
Get the user name.
|
void |
send()
Send the message.
|
SmsRequest |
setAccountId(String accountId)
Set the account ID.
|
SmsRequest |
setListener(SmsListener smsListener)
Responses to a
SmsRequest.send() request arrive asynchronously. |
SmsRequest |
setPassword(String password)
Set the password.
|
SmsRequest |
setSender(String sender)
Set the sender.
|
SmsRequest |
setText(String text)
Set the text message body
|
SmsRequest |
setUserName(String userName)
Set the user name.
|
SmsRequest addRecipient(String address)
address
- the address (e.g., mobile number) of the recipientList getRecipients()
SmsRequest setText(String text)
text
- A text message up to 160 bytes in length.SmsBodyTooLargeException
String getText()
SmsRequest setSender(String sender)
sender
- The sender of this message (e.g., "13035551234")String getSender()
SmsRequest setUserName(String userName)
SmsRequest#setPassword(String)
.userName
- The user nameString getUserName()
SmsRequest setPassword(String password)
SmsRequest#setUserName(String)
.password
- The credentials associated with this accountString getPassword()
SmsRequest setAccountId(String accountId)
accountId
- the account ID, likely from the SMS service providerString getAccountId()
SmsRequest setListener(SmsListener smsListener)
SmsRequest.send()
request arrive asynchronously. There may
be more than one response for each send request. The client service will
not be notified when the listener is set to null (the default value). By
setting the listener, the responses for any send will be presented to the
listener. Changing the listener will not affect any responses to requests
already made. It will only affect where responses are notified to any
subsequent send.smsListener
- The listener which will be invoked upon receiving a response
to the SmsRequest.send()
SmsListener getListener()
SmsRequest.setListener(SmsListener)
.void send() throws CollaborationBusException
SmsRequest.setListener(SmsListener)
CollaborationBusException
Copyright © 2016 Avaya. All Rights Reserved.