Enum Class Client.Scope
- All Implemented Interfaces:
Serializable
,Comparable<Client.Scope>
,Constable
- Enclosing class:
Client
OAuth scopes representing different permissions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlay with the Board APIPlay with the Bot API.Create, delete, query bulk pairingsRead incoming challengesCreate, accept, decline challengesRead your email addressView and use your external enginesCreate and update external enginesRead followed playersFollow and Unfollow playersSend private messages to other playersRead your preferencesWrite your preferencesRead puzzle activityCreate and join puzzle racesRead private studies and broadcastsCreate, update, delete studies and broadcastsManage teams (kick members, send team messages, accept/decline join requests)Read private team informationJoin, leaveCreate tournamentsCreate authenticated website sessions (grants full access!) -
Method Summary
Modifier and TypeMethodDescriptionasString()
static Optional
<Client.Scope> fromString
(String scope) static Client.Scope
Returns the enum constant of this class with the specified name.static Client.Scope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
preference_read
Read your preferences -
preference_write
Write your preferences -
email_read
Read your email address -
challenge_read
Read incoming challenges -
challenge_write
Create, accept, decline challenges -
challenge_bulk
Create, delete, query bulk pairings -
study_read
Read private studies and broadcasts -
study_write
Create, update, delete studies and broadcasts -
tournament_write
Create tournaments -
racer_write
Create and join puzzle races -
puzzle_read
Read puzzle activity -
team_read
Read private team information -
team_write
Join, leave -
team_lead
Manage teams (kick members, send team messages, accept/decline join requests) -
msg_write
Send private messages to other players -
board_play
Play with the Board API -
bot_play
Play with the Bot API. Only for Bot accounts -
follow_read
Read followed players -
follow_write
Follow and Unfollow players -
engine_read
View and use your external engines -
engine_write
Create and update external engines -
web_login
Create authenticated website sessions (grants full access!) -
web_mod
-
any
-
-
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
-
asString
-
fromString
-