public class MessageCreator extends Creator<MessageCreateResponse>
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
destination() |
java.lang.Boolean |
log() |
MessageCreator |
log(java.lang.Boolean log) |
java.lang.String |
method() |
MessageCreator |
method(java.lang.String method) |
protected retrofit2.Call<MessageCreateResponse> |
obtainCall() |
java.lang.String |
source() |
java.lang.String |
text() |
MessageType |
type() |
MessageCreator |
type(MessageType type) |
java.net.URL |
url() |
MessageCreator |
url(java.net.URL url) |
client, client, handleResponse, validatepublic java.lang.String source()
public java.util.List<java.lang.String> destination()
public java.lang.String text()
public MessageType type()
public java.net.URL url()
public java.lang.String method()
public java.lang.Boolean log()
public MessageCreator type(MessageType type)
type - Must be MessageType.SMSpublic MessageCreator url(java.net.URL url)
url - The URL to which with the status of the message is sent.public MessageCreator method(java.lang.String method)
method - The method used to call the url. Defaults to POST.public MessageCreator log(java.lang.Boolean log)
log - If set to false, the content of this message will not be logged on the Plivo
infrastructure and the dst value will be maskedprotected retrofit2.Call<MessageCreateResponse> obtainCall()
obtainCall in class Creator<MessageCreateResponse>