Records one attempt to hand an SMS message to the SMS provider, together with the status the provider gave back. An SmsItem is the message itself and may be tried more than once, so it can own several attempts; this row is the history of a single try. The status code and description come straight from the provider, so their values depend on which provider the organisation uses. Attempts are written by the sending process, not by application code.

Group: Database Entities

Implements: Serializable, Relational


Properties

PropertyReturnsDescription
idlongDatabase identifier for this send attempt, assigned when it is first saved.
smsItemSmsItemThe SMS message this attempt was made for. Never null, and the same message can have several attempts.
statusCodeStringStatus code returned by the SMS provider for this attempt. The set of possible values is defined by the provider, so do not assume codes are portable between providers.
statusDateDateDate and time this attempt was made and its status recorded.
statusDescriptionStringHuman readable message from the SMS provider explaining the status, usually the reason for a failure. Truncated to 1000 characters.

Methods

getId()

Returns: long

Database identifier for this send attempt, assigned when it is first saved.

getSmsItem()

Returns: SmsItem

The SMS message this attempt was made for. Never null, and the same message can have several attempts.

getStatusCode()

Returns: String

Status code returned by the SMS provider for this attempt. The set of possible values is defined by the provider, so do not assume codes are portable between providers.

getStatusDescription()

Returns: String

Human readable message from the SMS provider explaining the status, usually the reason for a failure. Truncated to 1000 characters.

getStatusDate()

Returns: Date

Date and time this attempt was made and its status recorded.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.