SmsRecord¶
-
public class
SmsRecord
¶ SMS audit record for the database.
Constructors¶
SmsRecord¶
-
public
SmsRecord
()¶ Constructs a new instance of a record without filling out any fields.
SmsRecord¶
-
public
SmsRecord
(String config, SmsDirection smsDirection, String number, String message, DateTime timestamp, String deliveryStatus, String providerStatus, String motechId, String providerId, String errorMessage)¶ Constructs a new instance using the provided data.
Parameters: - config – the name of the configuration to which this SMS should be associated with
- smsDirection – the direction of the SMS - either inbound or outbound
- number – the phone number to which this SMS was sent, or which it was received
- message – the content of the SMS message
- timestamp – the timestamp for this SMS
- deliveryStatus – the delivery status for this SMS
- providerStatus –
- motechId – the ID by which MOTECH identifies this SMS.
- providerId – the ID generated by the provider for this SMS
- errorMessage – the error message for this SMS, if applicable
Methods¶
getConfig¶
getPhoneNumber¶
getSmsDirection¶
-
public SmsDirection
getSmsDirection
()¶ Returns: the direction of the SMS - either inbound or outbound
setConfig¶
setDeliveryStatus¶
setErrorMessage¶
setMessageContent¶
setMotechId¶
setPhoneNumber¶
setProviderId¶
setSmsDirection¶
-
public void
setSmsDirection
(SmsDirection smsDirection)¶ Parameters: - smsDirection – the direction of the SMS - either inbound or outbound