Package com.jtelegram.api.message.entity
Enum MessageEntityType
- java.lang.Object
-
- java.lang.Enum<MessageEntityType>
-
- com.jtelegram.api.message.entity.MessageEntityType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageEntityType>
public enum MessageEntityType extends java.lang.Enum<MessageEntityType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOLD
BOT_COMMAND
CASHTAG
CODE
EMAIL
HASHTAG
ITALIC
MENTION
PHONE_NUMBER
PRE
TEXT_LINK
TEXT_MENTION
UNSUPPORTED
URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends MessageEntity>
getImplementationClass()
static MessageEntityType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageEntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MENTION
@SerializedName("mention") public static final MessageEntityType MENTION
-
HASHTAG
@SerializedName("hashtag") public static final MessageEntityType HASHTAG
-
BOT_COMMAND
@SerializedName("bot_command") public static final MessageEntityType BOT_COMMAND
-
URL
@SerializedName("url") public static final MessageEntityType URL
-
EMAIL
@SerializedName("email") public static final MessageEntityType EMAIL
-
BOLD
@SerializedName("bold") public static final MessageEntityType BOLD
-
ITALIC
@SerializedName("italic") public static final MessageEntityType ITALIC
-
CODE
@SerializedName("code") public static final MessageEntityType CODE
-
PRE
@SerializedName("pre") public static final MessageEntityType PRE
-
CASHTAG
@SerializedName("cashtag") public static final MessageEntityType CASHTAG
-
PHONE_NUMBER
@SerializedName("phone_number") public static final MessageEntityType PHONE_NUMBER
-
TEXT_LINK
@SerializedName("text_link") public static final MessageEntityType TEXT_LINK
-
TEXT_MENTION
@SerializedName("text_mention") public static final MessageEntityType TEXT_MENTION
-
UNSUPPORTED
@SerializedName("@@unsupported_by_api@@") public static final MessageEntityType UNSUPPORTED
-
-
Method Detail
-
values
public static MessageEntityType[] 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 (MessageEntityType c : MessageEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageEntityType 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
-
getImplementationClass
public java.lang.Class<? extends MessageEntity> getImplementationClass()
-
-