Enum Class NetworkScope.Purpose
- All Implemented Interfaces:
Serializable, Comparable<NetworkScope.Purpose>, Constable
- Enclosing class:
NetworkScope
The kind of request being made, so a host can route authentication and avatars differently.
- Since:
- 0.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA token, cookie, or OAuth exchange with the identity services.A player avatar or skin fetch.A Minecraft services profile lookup, used to validate a token and resolve an identity.A host-registered game-stats lookup.A shared-vault transport call. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkScope.PurposeReturns the enum constant of this class with the specified name.static NetworkScope.Purpose[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTH
A token, cookie, or OAuth exchange with the identity services.- Since:
- 0.8.0
-
PROFILE
A Minecraft services profile lookup, used to validate a token and resolve an identity.- Since:
- 0.8.0
-
AVATAR
-
STATS
-
VAULT
-
-
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
-