public final class TwilioServiceClientImpl extends Object implements TwilioServiceClient
factory| Constructor and Description |
|---|
TwilioServiceClientImpl(CoreTwilioServiceClient client,
TaskDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
sendMessage(String to,
String from,
String body)
Sends an SMS/MMS message.
|
Task<Void> |
sendMessage(String to,
String from,
String body,
String mediaUrl)
Sends an SMS/MMS message.
|
public TwilioServiceClientImpl(CoreTwilioServiceClient client, TaskDispatcher dispatcher)
public Task<Void> sendMessage(@NonNull String to, @NonNull String from, @NonNull String body)
sendMessage in interface TwilioServiceClientto - the number to send the message to.from - the number that the message is from.body - the body text of the message.public Task<Void> sendMessage(@NonNull String to, @NonNull String from, @NonNull String body, @NonNull String mediaUrl)
sendMessage in interface TwilioServiceClientto - the number to send the message to.from - the number that the message is from.body - the body text of the message.mediaUrl - the URL of the media to send in an MMS.