public class SMSRequest extends Object
| Constructor and Description |
|---|
SMSRequest() |
SMSRequest(String senderAddress,
String message,
String... recipientAddress)
Initialize SMS object using mandatory parameters
|
SMSRequest(String senderAddress,
String message,
String clientCorrelator,
String notifyURL,
String senderName,
String callbackData,
String... recipientAddress)
Initialize SMS object using mandatory parameters
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAddress()
(mandatory) contains one address for end user ID to send to
|
String |
getCallbackData()
(optional) will be passed back to the notifyURL location, so you can use it to identify the message the receipt relates to (or any other useful data, such as a function name)
|
String |
getClientCorrelator()
(optional) uniquely identifies this create MMS request.
|
Language |
getLanguage()
(optional) if using Turkish, Spanish or Portuguese language.
|
String |
getMessage()
(mandatory) contains the message text to send
|
String |
getNotifyURL()
(optional) is the URL to which you would like a notification of delivery sent
|
String |
getSenderAddress()
(mandatory) is the address to whom a responding SMS may be sent
|
String |
getSenderName()
(optional) is the name to appear on the user's terminal as the sender of the message
|
void |
setAddress(String[] address)
(mandatory) contains one address for end user ID to send to
|
void |
setCallbackData(String callbackData)
(optional) will be passed back to the notifyURL location, so you can use it to identify the message the receipt relates to (or any other useful data, such as a function name)
|
void |
setClientCorrelator(String clientCorrelator)
(optional) uniquely identifies this create MMS request.
|
void |
setLanguage(Language language)
(optional) is NLI information
|
void |
setMessage(String message)
(mandatory) contains the message text to send
|
void |
setNotifyURL(String notifyURL)
(optional) is the URL to which you would like a notification of delivery sent
|
void |
setSenderAddress(String senderAddress)
(mandatory) is the address to whom a responding SMS may be sent
|
void |
setSenderName(String senderName)
(optional) is the name to appear on the user's terminal as the sender of the message
|
public SMSRequest()
public SMSRequest(String senderAddress, String message, String... recipientAddress)
senderAddress - is the address to whom a responding SMS may be sentrecipientAddress - contains one or more addresses for end user ID to send tomessage - contains the message text to sendpublic SMSRequest(String senderAddress, String message, String clientCorrelator, String notifyURL, String senderName, String callbackData, String... recipientAddress)
senderAddress - is the address to whom a responding SMS may be sentrecipientAddress - contains one or more addresses for end user ID to send tomessage - contains the message text to sendclientCorrelator - uniquely identifies this create MMS request. If there is a communication failure during the request, using the same clientCorrelator when retrying the request allows the operator to avoid sending the same MMS twice.notifyURL - is the URL to which you would like a notification of delivery sentsenderName - is the name to appear on the user's terminal as the sender of the messagecallbackData - will be passed back to the notifyURL location, so you can use it to identify the message the receipt relates to (or any other useful data, such as a function name)public String getSenderAddress()
public void setSenderAddress(String senderAddress)
public String[] getAddress()
public void setAddress(String[] address)
public String getMessage()
public void setMessage(String message)
public String getClientCorrelator()
public void setClientCorrelator(String clientCorrelator)
public String getNotifyURL()
public void setNotifyURL(String notifyURL)
public String getSenderName()
public void setSenderName(String senderName)
public void setCallbackData(String callbackData)
public String getCallbackData()
public Language getLanguage()
public void setLanguage(Language language)
Copyright © 2014. All rights reserved.