Class TwilioServiceClientImpl
- java.lang.Object
-
- com.mongodb.stitch.android.services.twilio.internal.TwilioServiceClientImpl
-
- All Implemented Interfaces:
TwilioServiceClient
public final class TwilioServiceClientImpl extends Object implements TwilioServiceClient
-
-
Field Summary
-
Fields inherited from interface com.mongodb.stitch.android.services.twilio.TwilioServiceClient
factory
-
-
Constructor Summary
Constructors Constructor Description TwilioServiceClientImpl(CoreTwilioServiceClient client, TaskDispatcher dispatcher)
-
-
-
Constructor Detail
-
TwilioServiceClientImpl
public TwilioServiceClientImpl(CoreTwilioServiceClient client, TaskDispatcher dispatcher)
-
-
Method Detail
-
sendMessage
public Task<Void> sendMessage(@NonNull String to, @NonNull String from, @NonNull String body)
Sends an SMS/MMS message.- Specified by:
sendMessagein interfaceTwilioServiceClient- Parameters:
to- the number to send the message to.from- the number that the message is from.body- the body text of the message.- Returns:
- a task that completes when the send is done.
-
sendMessage
public Task<Void> sendMessage(@NonNull String to, @NonNull String from, @NonNull String body, @NonNull String mediaUrl)
Sends an SMS/MMS message.- Specified by:
sendMessagein interfaceTwilioServiceClient- Parameters:
to- 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.- Returns:
- a task that completes when the send is done.
-
-