Module it.auties.whatsappweb4j
Enum Class MediaMessageType
- All Implemented Interfaces:
it.auties.protobuf.api.model.ProtobufMessage
,Serializable
,Comparable<MediaMessageType>
,Constable
public enum MediaMessageType
extends Enum<MediaMessageType>
implements it.auties.protobuf.api.model.ProtobufMessage
The constants of this enumerated type describe the various types of media type that a
MediaMessage
can hold-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default mime type for this enumerated type.keyName()
Returns the path for an encrypted urlpath()
Returns the path for an encrypted urlstatic MediaMessageType
Returns the enum constant of this class with the specified name.static MediaMessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface it.auties.protobuf.api.model.ProtobufMessage
value
-
Enum Constant Details
-
IMAGE
The message is an image -
DOCUMENT
The message is a document -
AUDIO
The message is an audio -
VIDEO
The message is a video -
STICKER
The message is a sticker
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
path
Returns the path for an encrypted url- Returns:
- a non-null string
-
keyName
Returns the path for an encrypted url- Returns:
- a non-null string
-
defaultMimeType
The default mime type for this enumerated type. Might be right, might be wrong, who knows.
-