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
| Property | Returns | Description |
|---|---|---|
| id | long | Database identifier for this send attempt, assigned when it is first saved. |
| smsItem | SmsItem | The SMS message this attempt was made for. Never null, and the same message can have several attempts. |
| statusCode | 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. |
| statusDate | Date | Date and time this attempt was made and its status recorded. |
| statusDescription | String | Human 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.