Enum SendMessage.Type
- java.lang.Object
-
- java.lang.Enum<SendMessage.Type>
-
- com.restfb.types.whatsapp.platform.SendMessage.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<SendMessage.Type>
- Enclosing class:
- SendMessage
public static enum SendMessage.Type extends Enum<SendMessage.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SendMessage.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static SendMessage.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 SendMessage.Type text
-
reaction
public static final SendMessage.Type reaction
-
audio
public static final SendMessage.Type audio
-
video
public static final SendMessage.Type video
-
document
public static final SendMessage.Type document
-
sticker
public static final SendMessage.Type sticker
-
image
public static final SendMessage.Type image
-
interactive
public static final SendMessage.Type interactive
-
location
public static final SendMessage.Type location
-
contacts
public static final SendMessage.Type contacts
-
-
Method Detail
-
values
public static SendMessage.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 (SendMessage.Type c : SendMessage.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 SendMessage.Type 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
-
-