public enum MessageType extends Enum<MessageType>
| Enum Constant and Description |
|---|
AUDIO |
CHAT_ACTION |
DOCUMENT |
FORWARDED |
GAME |
LOCATION |
PHOTO |
STICKER |
TEXT |
VENUE |
VIDEO |
VOICE |
| Modifier and Type | Method and Description |
|---|---|
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType TEXT
public static final MessageType FORWARDED
public static final MessageType PHOTO
public static final MessageType AUDIO
public static final MessageType DOCUMENT
public static final MessageType STICKER
public static final MessageType VIDEO
public static final MessageType LOCATION
public static final MessageType VENUE
public static final MessageType VOICE
public static final MessageType GAME
public static final MessageType CHAT_ACTION
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 nullCopyright © 2017. All rights reserved.