Package com.vonage.client.sms
Enum MessageStatus
java.lang.Object
java.lang.Enum<MessageStatus>
com.vonage.client.sms.MessageStatus
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageStatus>,java.lang.constant.Constable
public enum MessageStatus extends java.lang.Enum<MessageStatus>
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static MessageStatusfromInt(int messageStatus)Look up theMessageStatusbased on the int value.intgetMessageStatus()static MessageStatusvalueOf(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 Details
-
OK
-
THROTTLED
-
MISSING_PARAMS
-
INVALID_PARAMS
-
INVALID_CREDENTIALS
-
INTERNAL_ERROR
-
INVALID_MESSAGE
-
NUMBER_BARRED
-
PARTNER_ACCOUNT_BARRED
-
PARTNER_QUOTA_EXCEEDED
-
TOO_MANY_BINDS
-
ACCOUNT_NOT_HTTP
-
MESSAGE_TOO_LONG
-
COMMS_FAILURE
-
INVALID_SIGNATURE
-
INVALID_FROM_ADDRESS
-
INVALID_TTL
-
NUMBER_UNREACHABLE
-
TOO_MANY_DESTINATIONS
-
FACILITY_NOT_ALLOWED
-
INVALID_MESSAGE_CLASS
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Look up theMessageStatusbased on the int value.- Parameters:
messageStatus- the int value of the message status.- Returns:
- MessageStatus based on the int value given.
-
getMessageStatus
-