@Value.Immutable(builder=false, copy=false, intern=true) public abstract class DeliveryStatus extends Object
Modifier and Type | Field and Description |
---|---|
static DeliveryStatus |
ABORTED
Message was aborted before reaching SMSC.
|
static DeliveryStatus |
DELIVERED
Message has been delivered.
|
static DeliveryStatus |
DISPATCHED
Message has been dispatched and accepted for delivery by the SMSC.
|
static DeliveryStatus |
EXPIRED
Message expired before delivery.
|
static DeliveryStatus |
FAILED
Message failed to be delivered.
|
static DeliveryStatus |
QUEUED
Message is queued within REST API system and will be dispatched according
to the rate of the account.
|
static DeliveryStatus |
REJECTED
Message was rejected by SMSC.
|
static DeliveryStatus |
UNKNOWN
It is not known if message was delivered or not.
|
Constructor and Description |
---|
DeliveryStatus() |
Modifier and Type | Method and Description |
---|---|
static DeliveryStatus |
of(String status)
Creates a delivery status object from the given string representation.
|
abstract String |
status()
The string representation of this delivery status.
|
public static final DeliveryStatus QUEUED
public static final DeliveryStatus DISPATCHED
public static final DeliveryStatus ABORTED
public static final DeliveryStatus REJECTED
public static final DeliveryStatus DELIVERED
public static final DeliveryStatus FAILED
public static final DeliveryStatus EXPIRED
public static final DeliveryStatus UNKNOWN
public abstract String status()
public static DeliveryStatus of(String status)
status
- string describing the statusCopyright © 2016–2019 CLX Communications. All rights reserved.