Enum Class PrivacySettingType

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

public enum PrivacySettingType extends Enum<PrivacySettingType>
The constants of this enumerated type describe the various types of settings that a user can toggle in his account's preferences
  • Enum Constant Details

    • LAST_SEEN

      public static final PrivacySettingType LAST_SEEN
      Refers to whether your last access on Whatsapp should be visible
    • ONLINE

      public static final PrivacySettingType ONLINE
      Refers to whether other people should be able to see when you are online
    • PROFILE_PIC

      public static final PrivacySettingType PROFILE_PIC
      Refers to who should be able to see your profile pic
    • STATUS

      public static final PrivacySettingType STATUS
      Refers to who should be able to see your status
    • ADD_ME_TO_GROUPS

      public static final PrivacySettingType ADD_ME_TO_GROUPS
      Refers to who should be able to add you to groups
    • READ_RECEIPTS

      public static final PrivacySettingType READ_RECEIPTS
      Refers to whether read receipts should be sent and received for messages
    • CALL_ADD

      public static final PrivacySettingType CALL_ADD
      Refers to who can add you to a call
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static PrivacySettingType[] 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 PrivacySettingType 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<PrivacySettingType> of(String id)
    • supportedValues

      public Set<PrivacySettingValue> supportedValues()
    • isSupported

      public boolean isSupported(PrivacySettingValue value)
    • data

      public String data()