Package org.cyclos.model.messaging.sms
Enum OutboundSmsStatus
- java.lang.Object
-
- java.lang.Enum<OutboundSmsStatus>
-
- org.cyclos.model.messaging.sms.OutboundSmsStatus
-
- All Implemented Interfaces:
Serializable,Comparable<OutboundSmsStatus>,HasMessageKey
public enum OutboundSmsStatus extends Enum<OutboundSmsStatus> implements HasMessageKey
Contains the possible statuses for an outbound SMS message
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GATEWAY_UNREACHABLENetwork problem, or gateway server downINVALIDThe parameters for sending an SMS message were invalidMAX_GLOBAL_MESSAGES_REACHEDThe message was not sent, as the maximum SMS messages for a configuration have been reachedMAX_UNREGISTERED_MESSAGES_REACHEDThe message was not sent, as the maximum SMS messages for a particular unregistered mobile phone have been reachedMAX_USER_MESSAGES_REACHEDThe message was not sent, as the maximum SMS messages for a particular user have been reachedREJECTEDThe gateway has rejected the SMS sendingSUCCESSThe SMS message was successfully sentTIMEOUTTimeout while waiting for a server replyUNKNOWN_ERRORThere was an unhandled error
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static OutboundSmsStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static OutboundSmsStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final OutboundSmsStatus SUCCESS
The SMS message was successfully sent
-
INVALID
public static final OutboundSmsStatus INVALID
The parameters for sending an SMS message were invalid
-
MAX_USER_MESSAGES_REACHED
public static final OutboundSmsStatus MAX_USER_MESSAGES_REACHED
The message was not sent, as the maximum SMS messages for a particular user have been reached
-
MAX_UNREGISTERED_MESSAGES_REACHED
public static final OutboundSmsStatus MAX_UNREGISTERED_MESSAGES_REACHED
The message was not sent, as the maximum SMS messages for a particular unregistered mobile phone have been reached
-
MAX_GLOBAL_MESSAGES_REACHED
public static final OutboundSmsStatus MAX_GLOBAL_MESSAGES_REACHED
The message was not sent, as the maximum SMS messages for a configuration have been reached
-
GATEWAY_UNREACHABLE
public static final OutboundSmsStatus GATEWAY_UNREACHABLE
Network problem, or gateway server down
-
TIMEOUT
public static final OutboundSmsStatus TIMEOUT
Timeout while waiting for a server reply
-
REJECTED
public static final OutboundSmsStatus REJECTED
The gateway has rejected the SMS sending
-
UNKNOWN_ERROR
public static final OutboundSmsStatus UNKNOWN_ERROR
There was an unhandled error
-
-
Method Detail
-
values
public static OutboundSmsStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OutboundSmsStatus c : OutboundSmsStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutboundSmsStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-