public interface OutboundSmsHandler
SmsSender), logging
and more.| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentSmsCountForUser(User user)
Returns the number of SMS sent messages in the current month for the given user
|
OutboundSms |
send(MobilePhone phone,
java.lang.String sms,
OutboundSmsType smsType)
Sends the given message to an specific mobile phone, returning the generated SMS log
|
java.util.List<OutboundSms> |
send(User user,
java.lang.String sms,
OutboundSmsType smsType)
Sends the given message to all mobile phones enabled for SMS of the given user, returning the generated SMS logs
|
OutboundSms |
sendEvenIfDisabled(MobilePhone phone,
java.lang.String sms,
OutboundSmsType smsType)
Sends the given message to an specific mobile phone, even if it is disabled for SMS, returning the generated SMS
log
|
OutboundSms |
sendToUnregistered(ConfigurationAccessor configuration,
java.lang.String phoneNumber,
java.lang.String sms,
OutboundSmsType smsType)
Sends the given message to a an unregistered mobile phone, using the message limit set in the configuration
|
OutboundSms |
sendToUnregistered(ConfigurationAccessor configuration,
java.lang.String phoneNumber,
java.lang.String sms,
OutboundSmsType smsType,
java.lang.Integer maxMessages)
Sends the given message to a an unregistered mobile phone using a custom message limit per number
|
java.util.List<OutboundSms> |
sendUnrestricted(User user,
java.lang.String sms,
OutboundSmsType smsType)
Sends the given message to a specific user, ignoring the SMS per month limit.
|
int getCurrentSmsCountForUser(User user)
OutboundSms send(MobilePhone phone, java.lang.String sms, OutboundSmsType smsType)
java.util.List<OutboundSms> send(User user, java.lang.String sms, OutboundSmsType smsType)
OutboundSms sendEvenIfDisabled(MobilePhone phone, java.lang.String sms, OutboundSmsType smsType)
OutboundSms sendToUnregistered(ConfigurationAccessor configuration, java.lang.String phoneNumber, java.lang.String sms, OutboundSmsType smsType)
OutboundSms sendToUnregistered(ConfigurationAccessor configuration, java.lang.String phoneNumber, java.lang.String sms, OutboundSmsType smsType, java.lang.Integer maxMessages)
java.util.List<OutboundSms> sendUnrestricted(User user, java.lang.String sms, OutboundSmsType smsType)