Enum Class NetworkScope.Purpose

java.lang.Object
java.lang.Enum<NetworkScope.Purpose>
lol.trq.alts.net.NetworkScope.Purpose
All Implemented Interfaces:
Serializable, Comparable<NetworkScope.Purpose>, Constable
Enclosing class:
NetworkScope

public static enum NetworkScope.Purpose extends Enum<NetworkScope.Purpose>
The kind of request being made, so a host can route authentication and avatars differently.
Since:
0.8.0
  • Enum Constant Details

    • AUTH

      public static final NetworkScope.Purpose AUTH
      A token, cookie, or OAuth exchange with the identity services.
      Since:
      0.8.0
    • PROFILE

      public static final NetworkScope.Purpose PROFILE
      A Minecraft services profile lookup, used to validate a token and resolve an identity.
      Since:
      0.8.0
    • AVATAR

      public static final NetworkScope.Purpose AVATAR
      A player avatar or skin fetch.
      Since:
      0.8.0
    • STATS

      public static final NetworkScope.Purpose STATS
      A host-registered game-stats lookup.
      Since:
      0.8.0
    • VAULT

      public static final NetworkScope.Purpose VAULT
      A shared-vault transport call.
      Since:
      0.8.0
  • Method Details

    • values

      public static NetworkScope.Purpose[] 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 NetworkScope.Purpose 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