Enum Class JidServer

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

public enum JidServer extends Enum<JidServer>
The constants of this enumerated type describe the various servers that a jid might be linked to
  • Enum Constant Details

    • USER

      public static final JidServer USER
      User
    • GROUP

      public static final JidServer GROUP
      Groups and communities
    • BROADCAST

      public static final JidServer BROADCAST
      Broadcast group
    • GROUP_CALL

      public static final JidServer GROUP_CALL
      Group call
    • WHATSAPP

      public static final JidServer WHATSAPP
      Whatsapp
    • LID

      public static final JidServer LID
      Lid
    • NEWSLETTER

      public static final JidServer NEWSLETTER
      Newsletter
  • Field Details

    • address

      private final String address
  • Constructor Details

    • JidServer

      private JidServer(String address)
  • Method Details

    • values

      public static JidServer[] 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 JidServer 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 JidServer of(String address)
    • address

      public String address()
    • toJid

      public Jid toJid()
    • toString

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