Enum Class ContactStatus

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

public enum ContactStatus extends Enum<ContactStatus>
The constants of this enumerated type describe the various status that a Contact can be in
  • Enum Constant Details

    • AVAILABLE

      public static final ContactStatus AVAILABLE
      When the contact is online
    • UNAVAILABLE

      public static final ContactStatus UNAVAILABLE
      When the contact is offline
    • COMPOSING

      public static final ContactStatus COMPOSING
      When the contact is writing a text message
    • RECORDING

      public static final ContactStatus RECORDING
      When the contact is recording an audio message
  • Constructor Details

    • ContactStatus

      private ContactStatus()
  • Method Details

    • values

      public static ContactStatus[] 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 ContactStatus 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
    • of

      public static Optional<ContactStatus> of(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ContactStatus>