Enum Class MediaMessageType

java.lang.Object
java.lang.Enum<MediaMessageType>
it.auties.whatsapp.model.message.model.MediaMessageType
All Implemented Interfaces:
Serializable, Comparable<MediaMessageType>, Constable

public enum MediaMessageType extends Enum<MediaMessageType>
The constants of this enumerated type describe the various types of media type that a MediaMessage can hold
  • Enum Constant Details

  • Field Details

    • defaultMimeType

      private final String defaultMimeType
      The default mime type for this enumerated type. Might be right, might be wrong, who knows.
    • messageType

      private final MessageType messageType
      The message type for this media
    • attachmentType

      private final AttachmentType attachmentType
      The attachment type for this media
  • Constructor Details

  • Method Details

    • values

      public static MediaMessageType[] 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

      public static MediaMessageType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toMessageType

      public MessageType toMessageType()
      The message type for this media
      Returns:
      a message type
    • toAttachmentType

      public AttachmentType toAttachmentType()
      The attachment type for this media
      Returns:
      an attachment type
    • defaultMimeType

      public String defaultMimeType()