Enum Class FileType

java.lang.Object
java.lang.Enum<FileType>
com.whatsapp.api.domain.media.FileType
All Implemented Interfaces:
Serializable, Comparable<FileType>, Constable

public enum FileType extends Enum<FileType>
Supported Media Types
See Also:
  • Enum Constant Details

    • JPEG

      public static final FileType JPEG
      Jpeg file type.
    • PNG

      public static final FileType PNG
      Png file type.
    • TEXT

      public static final FileType TEXT
      Text file type.
    • PDF

      public static final FileType PDF
      Pdf file type.
    • PPT

      public static final FileType PPT
      Ppt file type.
    • DOC

      public static final FileType DOC
      Doc file type.
    • XLS

      public static final FileType XLS
      Xls file type.
    • DOCX

      public static final FileType DOCX
      Docx file type.
    • PPTX

      public static final FileType PPTX
      Pptx file type.
    • XLSX

      public static final FileType XLSX
      Xlsx file type.
    • AAC

      public static final FileType AAC
      Aac file type.
    • MP4

      public static final FileType MP4
      Mp 4 file type.
    • MPEG

      public static final FileType MPEG
      Mpeg file type.
    • AMR

      public static final FileType AMR
      Amr file type.
    • OGG

      public static final FileType OGG
      Ogg file type.
    • OPUS

      public static final FileType OPUS
      Opus file type.
    • MP4_VIDEO

      public static final FileType MP4_VIDEO
      Mp 4 video file type.
    • THREEGP

      public static final FileType THREEGP
      3gp file type.
    • WEBP

      public static final FileType WEBP
      Webp file type.
  • Method Details

    • values

      public static FileType[] 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 FileType 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
    • getType

      public String getType()
      Gets type.
      Returns:
      the type