Enum Class ProfileType
- All Implemented Interfaces:
Serializable,Comparable<ProfileType>,Constable
The service a user logged in from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ProfileTypeGets a profile from its JSON string value.@NotNull StringgetValue()Gets the encoded string value of this profile.toString()static ProfileTypeReturns the enum constant of this class with the specified name.static ProfileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TWITCH
-
YOUTUBE
-
DISCORD
-
TIKTOK
-
TIKTOK_GIFTER
A pseudo-user generated by sending a Gift on a TikTok livestream. -
PULSOID
-
UNKNOWN
The JSON-specified value could not be decoded.
-
-
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
-
fromValue
Gets a profile from its JSON string value. If a profile by the provided name could not be found, returnsUNKNOWN.- Parameters:
value- JSON string value- Returns:
- result status value
-
getValue
Gets the encoded string value of this profile.- Returns:
- json value
-
toString
- Overrides:
toStringin classEnum<ProfileType>
-