Class TwilioServiceClientImpl
- java.lang.Object
-
- com.mongodb.stitch.server.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.server.services.twilio.TwilioServiceClient
factory
-
-
Constructor Summary
Constructors Constructor Description TwilioServiceClientImpl(CoreTwilioServiceClient client)
-
Method Summary
Modifier and Type Method Description voidsendMessage(String to, String from, String body)Sends an SMS/MMS message.voidsendMessage(String to, String from, String body, String mediaUrl)Sends an SMS/MMS message.
-
-
-
Constructor Detail
-
TwilioServiceClientImpl
public TwilioServiceClientImpl(CoreTwilioServiceClient client)
-
-
Method Detail
-
sendMessage
public 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.
-
sendMessage
public 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.
-
-