public static enum MessageEntity.Type extends java.lang.Enum<MessageEntity.Type>
| Enum Constant and Description |
|---|
BOLD |
BOT_COMMAND |
CASHTAG |
CODE |
CODE_BLOCK |
EMAIL |
HASHTAG |
ITALIC |
LINK |
MENTION |
PHONE_NUMBER |
TEXT_MENTION |
URL |
| Modifier and Type | Method and Description |
|---|---|
static MessageEntity.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageEntity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="bold") public static final MessageEntity.Type BOLD
@SerializedName(value="italic") public static final MessageEntity.Type ITALIC
@SerializedName(value="code") public static final MessageEntity.Type CODE
@SerializedName(value="pre") public static final MessageEntity.Type CODE_BLOCK
@SerializedName(value="text_link") public static final MessageEntity.Type LINK
@SerializedName(value="mention") public static final MessageEntity.Type MENTION
@SerializedName(value="text_mention") public static final MessageEntity.Type TEXT_MENTION
@SerializedName(value="hashtag") public static final MessageEntity.Type HASHTAG
@SerializedName(value="bot_command") public static final MessageEntity.Type BOT_COMMAND
@SerializedName(value="url") public static final MessageEntity.Type URL
@SerializedName(value="email") public static final MessageEntity.Type EMAIL
@SerializedName(value="cashtag") public static final MessageEntity.Type CASHTAG
@SerializedName(value="phone_number") public static final MessageEntity.Type PHONE_NUMBER
public static MessageEntity.Type[] values()
for (MessageEntity.Type c : MessageEntity.Type.values()) System.out.println(c);
public static MessageEntity.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null