Package com.nexmo.client.sms
Enum MessageStatus
- java.lang.Object
-
- java.lang.Enum<MessageStatus>
-
- com.nexmo.client.sms.MessageStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageStatus>
public enum MessageStatus extends java.lang.Enum<MessageStatus>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageStatus
fromInt(int messageStatus)
Look up theMessageStatus
based on the int value.int
getMessageStatus()
static MessageStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final MessageStatus OK
-
THROTTLED
public static final MessageStatus THROTTLED
-
MISSING_PARAMS
public static final MessageStatus MISSING_PARAMS
-
INVALID_PARAMS
public static final MessageStatus INVALID_PARAMS
-
INVALID_CREDENTIALS
public static final MessageStatus INVALID_CREDENTIALS
-
INTERNAL_ERROR
public static final MessageStatus INTERNAL_ERROR
-
INVALID_MESSAGE
public static final MessageStatus INVALID_MESSAGE
-
NUMBER_BARRED
public static final MessageStatus NUMBER_BARRED
-
PARTNER_ACCOUNT_BARRED
public static final MessageStatus PARTNER_ACCOUNT_BARRED
-
PARTNER_QUOTA_EXCEEDED
public static final MessageStatus PARTNER_QUOTA_EXCEEDED
-
TOO_MANY_BINDS
public static final MessageStatus TOO_MANY_BINDS
-
ACCOUNT_NOT_HTTP
public static final MessageStatus ACCOUNT_NOT_HTTP
-
MESSAGE_TOO_LONG
public static final MessageStatus MESSAGE_TOO_LONG
-
COMMS_FAILURE
public static final MessageStatus COMMS_FAILURE
-
INVALID_SIGNATURE
public static final MessageStatus INVALID_SIGNATURE
-
INVALID_FROM_ADDRESS
public static final MessageStatus INVALID_FROM_ADDRESS
-
INVALID_TTL
public static final MessageStatus INVALID_TTL
-
NUMBER_UNREACHABLE
public static final MessageStatus NUMBER_UNREACHABLE
-
TOO_MANY_DESTINATIONS
public static final MessageStatus TOO_MANY_DESTINATIONS
-
FACILITY_NOT_ALLOWED
public static final MessageStatus FACILITY_NOT_ALLOWED
-
INVALID_MESSAGE_CLASS
public static final MessageStatus INVALID_MESSAGE_CLASS
-
UNKNOWN
public static final MessageStatus UNKNOWN
-
-
Method Detail
-
values
public static MessageStatus[] 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 (MessageStatus c : MessageStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromInt
public static MessageStatus fromInt(int messageStatus)
Look up theMessageStatus
based on the int value.- Parameters:
messageStatus
- the int value of the message status.- Returns:
- MessageStatus based on the int value given.
-
getMessageStatus
public int getMessageStatus()
-
-