public enum TemplateMediaType extends Enum<TemplateMediaType>
| Enum Constant and Description |
|---|
CURRENCY |
DATETIME |
DOCUMENT |
EXPIRATION_TIME |
IMAGE |
PAYLOAD |
TEXT |
VIDEO |
| Modifier and Type | Method and Description |
|---|---|
static TemplateMediaType |
forValue(String value) |
String |
getType() |
String |
toJson() |
String |
toString() |
static TemplateMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemplateMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemplateMediaType IMAGE
public static final TemplateMediaType DOCUMENT
public static final TemplateMediaType VIDEO
public static final TemplateMediaType TEXT
public static final TemplateMediaType CURRENCY
public static final TemplateMediaType DATETIME
public static final TemplateMediaType PAYLOAD
public static final TemplateMediaType EXPIRATION_TIME
public static TemplateMediaType[] values()
for (TemplateMediaType c : TemplateMediaType.values()) System.out.println(c);
public static TemplateMediaType 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 TemplateMediaType forValue(String value)
public String toJson()
public String getType()
public String toString()
toString in class Enum<TemplateMediaType>Copyright © 2024. All rights reserved.