Enum Class VerificationCodeMethod

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

public enum VerificationCodeMethod extends Enum<VerificationCodeMethod>
The constants of this enumerated type describe the various types of verification that can be used to receive the OTP required for an ClientType.MOBILE
  • Enum Constant Details

    • NONE

      public static final VerificationCodeMethod NONE
      No verification is needed
    • SMS

      public static final VerificationCodeMethod SMS
      An SMS containing the code will be sent to the associated phone number
    • CALL

      public static final VerificationCodeMethod CALL
      A call will be received from the associated phone number
    • WHATSAPP

      public static final VerificationCodeMethod WHATSAPP
      A message containing the OTP will be sent via Whatsapp to an active device
  • Field Details

    • data

      private final String data
  • Constructor Details

    • VerificationCodeMethod

      private VerificationCodeMethod(String data)
  • Method Details

    • values

      public static VerificationCodeMethod[] 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 VerificationCodeMethod 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 VerificationCodeMethod of(String type)
    • data

      public String data()