public enum MessageComponentType extends Enum<MessageComponentType>
| Enum Constant and Description |
|---|
BODY |
BUTTON |
CARD |
CAROUSEL |
FOOTER |
HEADER |
LIMITED_TIME_OFFER |
| Modifier and Type | Method and Description |
|---|---|
static MessageComponentType |
forValue(String value) |
String |
getType() |
String |
toJson() |
String |
toString() |
static MessageComponentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageComponentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageComponentType HEADER
public static final MessageComponentType BODY
public static final MessageComponentType FOOTER
public static final MessageComponentType BUTTON
public static final MessageComponentType CARD
public static final MessageComponentType CAROUSEL
public static final MessageComponentType LIMITED_TIME_OFFER
public static MessageComponentType[] values()
for (MessageComponentType c : MessageComponentType.values()) System.out.println(c);
public static MessageComponentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static MessageComponentType forValue(String value)
public String toJson()
public String getType()
public String toString()
toString in class Enum<MessageComponentType>Copyright © 2024. All rights reserved.