Enum Class ProfileType

java.lang.Object
java.lang.Enum<ProfileType>
live.crowdcontrol.cc4j.websocket.payload.ProfileType
All Implemented Interfaces:
Serializable, Comparable<ProfileType>, Constable

public enum ProfileType extends Enum<ProfileType>
The service a user logged in from.
  • Enum Constant Details

  • Method Details

    • values

      public static ProfileType[] 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 ProfileType 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
    • fromValue

      @NotNull public static @NotNull ProfileType fromValue(@NotNull @NotNull String value)
      Gets a profile from its JSON string value. If a profile by the provided name could not be found, returns UNKNOWN.
      Parameters:
      value - JSON string value
      Returns:
      result status value
    • getValue

      @NotNull public @NotNull String getValue()
      Gets the encoded string value of this profile.
      Returns:
      json value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ProfileType>