Enum TelegramMediaType
- java.lang.Object
-
- java.lang.Enum<TelegramMediaType>
-
- org.apache.camel.component.telegram.TelegramMediaType
-
- All Implemented Interfaces:
Serializable
,Comparable<TelegramMediaType>
public enum TelegramMediaType extends Enum<TelegramMediaType>
A collection of supported media type for outgoing messages (produced). It is meant to be put in the message headers using keyTelegramConstants.TELEGRAM_MEDIA_TYPE
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileExtension()
static TelegramMediaType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TelegramMediaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final TelegramMediaType TEXT
-
PHOTO_PNG
public static final TelegramMediaType PHOTO_PNG
-
PHOTO_JPG
public static final TelegramMediaType PHOTO_JPG
-
AUDIO
public static final TelegramMediaType AUDIO
-
VIDEO
public static final TelegramMediaType VIDEO
-
DOCUMENT
public static final TelegramMediaType DOCUMENT
-
-
Method Detail
-
values
public static TelegramMediaType[] 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 (TelegramMediaType c : TelegramMediaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TelegramMediaType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFileExtension
public String getFileExtension()
-
-