- All Implemented Interfaces:
Serializable,Comparable<PrivacySettingType>,Constable
The constants of this enumerated type describe the various types of settings that a user can
toggle in his account's preferences
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRefers to who should be able to add you to groupsRefers to who can add you to a callRefers to whether your last access on Whatsapp should be visibleRefers to whether other people should be able to see when you are onlineRefers to who should be able to see your profile picRefers to whether read receipts should be sent and received for messagesRefers to who should be able to see your status -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivacySettingType(String data, Set<PrivacySettingValue> values) -
Method Summary
Modifier and TypeMethodDescriptiondata()booleanisSupported(PrivacySettingValue value) static Optional<PrivacySettingType> static PrivacySettingTypeReturns the enum constant of this class with the specified name.static PrivacySettingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAST_SEEN
Refers to whether your last access on Whatsapp should be visible -
ONLINE
Refers to whether other people should be able to see when you are online -
PROFILE_PIC
Refers to who should be able to see your profile pic -
STATUS
Refers to who should be able to see your status -
ADD_ME_TO_GROUPS
Refers to who should be able to add you to groups -
READ_RECEIPTS
Refers to whether read receipts should be sent and received for messages -
CALL_ADD
Refers to who can add you to a call
-
-
Field Details
-
data
-
values
-
-
Constructor Details
-
PrivacySettingType
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
of
-
supportedValues
-
isSupported
-
data
-