SmsLoggingRecord

public class SmsLoggingRecord

Represents one record in the logging UI

Constructors

SmsLoggingRecord

public SmsLoggingRecord(SmsRecord record)

Constructs an instance of SmsLoggingRecord from an SmsRecord. In other words it converts the domain object to the view object.

Parameters:
  • record – the domain representation of the record

Methods

getConfig

public String getConfig()
Returns:the name of the configuration this SMS should be associated with

getDeliveryStatus

public String getDeliveryStatus()
Returns:the delivery status for this SMS

getErrorMessage

public String getErrorMessage()
Returns:the error message from the provider

getMessageContent

public String getMessageContent()
Returns:the content of the SMS message

getMotechId

public String getMotechId()
Returns:the ID used to identify the SMS in Motech

getPhoneNumber

public String getPhoneNumber()
Returns:the phone number to which the SMS was sent, or from which it was received

getProviderId

public String getProviderId()
Returns:the provider generated ID for the SMS

getProviderStatus

public String getProviderStatus()

getSmsDirection

public String getSmsDirection()
Returns:the direction of the SMS, inbound or outbound

getTimestamp

public String getTimestamp()
Returns:the timestamp for the SMS

setConfig

public void setConfig(String config)
Parameters:
  • config – the name of the configuration this SMS should be associated with

setDeliveryStatus

public void setDeliveryStatus(String deliveryStatus)
Parameters:
  • deliveryStatus – the delivery status for this SMS

setErrorMessage

public void setErrorMessage(String errorMessage)
Parameters:
  • errorMessage – the error message from the provider

setMessageContent

public void setMessageContent(String messageContent)
Parameters:
  • messageContent – the content of the SMS message

setMotechId

public void setMotechId(String motechId)
Parameters:
  • motechId – the ID used to identify the SMS in Motech

setPhoneNumber

public void setPhoneNumber(String phoneNumber)
Parameters:
  • phoneNumber – the phone number to which the SMS was sent, or from which it was received

setProviderId

public void setProviderId(String providerId)
Parameters:
  • providerId – the provider generated ID for the SMS

setProviderStatus

public void setProviderStatus(String providerStatus)

setSmsDirection

public void setSmsDirection(String smsDirection)
Parameters:
  • smsDirection – the direction of the SMS, inbound or outbound

setTimestamp

public void setTimestamp(String timestamp)
Parameters:
  • timestamp – the timestamp for the SMS

toString

public String toString()