Interface SMSNotificationService
- All Superinterfaces:
Service
public interface SMSNotificationService extends Service
Service for sending short message (SMS) to mobile phones.
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
listProviders()
Lists the available providers which can be used to send an SMS.void
registerProvider(SMSNotificationProvider provider)
Registers an additional third party provider for SMS.java.util.List<SMSNotificationResponse>
send(SMSNotificationRequest request)
Sends a short message (SMS) to a list of receivers.
-
Method Details
-
listProviders
java.util.List<java.lang.String> listProviders()Lists the available providers which can be used to send an SMS. The provider "Twilio" is always available; it is the default implementation for sending SMS. -
registerProvider
Registers an additional third party provider for SMS. -
send
Sends a short message (SMS) to a list of receivers. The message will be sent separately to each receiver; it will NOT be sent as a group text.- Parameters:
request
-SMSNotificationRequest
- Returns:
- list of
SMSNotificationResponse
-