Enum MO.MESSAGE_TYPE
- java.lang.Object
-
- java.lang.Enum<MO.MESSAGE_TYPE>
-
- com.nexmo.client.sms.callback.messages.MO.MESSAGE_TYPE
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MO.MESSAGE_TYPE>
- Enclosing class:
- MO
public static enum MO.MESSAGE_TYPE extends java.lang.Enum<MO.MESSAGE_TYPE>
Describes the type of payload this message carries
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetType()static MO.MESSAGE_TYPEvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MO.MESSAGE_TYPE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final MO.MESSAGE_TYPE TEXT
This is a plain text (8 bit alphabet) message
-
BINARY
public static final MO.MESSAGE_TYPE BINARY
This is a raw binary message
-
UNICODE
public static final MO.MESSAGE_TYPE UNICODE
This is a unicode message
-
-
Method Detail
-
values
public static MO.MESSAGE_TYPE[] 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 (MO.MESSAGE_TYPE c : MO.MESSAGE_TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MO.MESSAGE_TYPE 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
-
getType
public java.lang.String getType()
- Returns:
- String A descriptive value representing this type
-
-