Package com.jtelegram.api.chat
Enum ChatAction
- java.lang.Object
-
- java.lang.Enum<ChatAction>
-
- com.jtelegram.api.chat.ChatAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ChatAction>
public enum ChatAction extends java.lang.Enum<ChatAction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIND_LOCATION
RECORD_VIDEO
RECORD_VIDEO_NOTE
TYPING
UPLOAD_AUDIO
UPLOAD_DOCUMENT
UPLOAD_PHOTO
UPLOAD_VIDEO
UPLOAD_VIDEO_NOTE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChatAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChatAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPING
public static final ChatAction TYPING
-
UPLOAD_PHOTO
public static final ChatAction UPLOAD_PHOTO
-
RECORD_VIDEO
public static final ChatAction RECORD_VIDEO
-
UPLOAD_VIDEO
public static final ChatAction UPLOAD_VIDEO
-
UPLOAD_AUDIO
public static final ChatAction UPLOAD_AUDIO
-
UPLOAD_DOCUMENT
public static final ChatAction UPLOAD_DOCUMENT
-
FIND_LOCATION
public static final ChatAction FIND_LOCATION
-
RECORD_VIDEO_NOTE
public static final ChatAction RECORD_VIDEO_NOTE
-
UPLOAD_VIDEO_NOTE
public static final ChatAction UPLOAD_VIDEO_NOTE
-
-
Method Detail
-
values
public static ChatAction[] 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 (ChatAction c : ChatAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatAction 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
-
-