OutgoingSms¶
-
public class
OutgoingSms
¶ Represents an outgoing SMS
Constructors¶
OutgoingSms¶
-
public
OutgoingSms
(MotechEvent event)¶ Constructs an instance using the field map from the provided event.
Parameters: - event – the event to parse into the SMS instance
See also:
SmsEventParams
OutgoingSms¶
-
public
OutgoingSms
(String config, List<String> recipients, String message, DateTime deliveryTime)¶ Creates a new instance using the provided parameters.
Parameters: - config – use this config to send the SMS, otherwise use the default config
- recipients – one or more recipients
- message – the message to send
- deliveryTime – the expected delivery time of the sms
OutgoingSms¶
-
public
OutgoingSms
(String config, String recipient, String message, DateTime deliveryTime)¶ Creates a new instance using the provided parameters.
Parameters: - config – use this config to send the SMS, otherwise use the default config
- recipient – the recipient of the SMS
- message – the message to send
- deliveryTime – the expected delivery time of the sms
OutgoingSms¶
OutgoingSms¶
OutgoingSms¶
OutgoingSms¶
Methods¶
getConfig¶
getCustomParams¶
getDeliveryTime¶
getFailureCount¶
getMotechId¶
getRecipients¶
hasConfig¶
hasDeliveryTime¶
-
public Boolean
hasDeliveryTime
()¶ Checks whether this SMS has a specified delivery time. If specified, will schedule the message for future delivery using the MOTECH scheduler. If not, the message should be immediately delivered.
Returns: true if this SMS has a specific delivery time, false otherwise