Enum Class ChatSettingPolicy

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

public enum ChatSettingPolicy extends Enum<ChatSettingPolicy>
The constants of this enumerated type describe the various policies that can be enforced for a GroupSetting or CommunitySetting in a Chat
  • Enum Constant Details

  • Constructor Details

    • ChatSettingPolicy

      private ChatSettingPolicy()
  • Method Details

    • values

      public static ChatSettingPolicy[] 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 ChatSettingPolicy 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 ChatSettingPolicy of(boolean input)
      Returns a GroupPolicy based on a boolean value obtained from Whatsapp
      Parameters:
      input - the boolean value obtained from Whatsapp
      Returns:
      a non-null GroupPolicy