Enum Class ConnectionType

java.lang.Object
java.lang.Enum<ConnectionType>
it.auties.whatsapp.api.ConnectionType
All Implemented Interfaces:
Serializable, Comparable<ConnectionType>, Constable

public enum ConnectionType extends Enum<ConnectionType>
The constants of this enumerated type describe the various types of connections that can be initialized
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Creates a new connection from the first session that was serialized If no connection is available, a new one will be created
    Creates a new connection from the last session that was serialized If no connection is available, a new one will be created
    Creates a new connection using a unique identifier If no uuid is provided, a new connection will be created If the connection doesn't exist, a new one will be created
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NEW

      public static final ConnectionType NEW
      Creates a new connection using a unique identifier If no uuid is provided, a new connection will be created If the connection doesn't exist, a new one will be created
    • FIRST

      public static final ConnectionType FIRST
      Creates a new connection from the first session that was serialized If no connection is available, a new one will be created
    • LAST

      public static final ConnectionType LAST
      Creates a new connection from the last session that was serialized If no connection is available, a new one will be created
  • Constructor Details

    • ConnectionType

      private ConnectionType()
  • Method Details

    • values

      public static ConnectionType[] 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 ConnectionType 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