public enum Scopes extends java.lang.Enum<Scopes>
Enum Constant and Description |
---|
CHANNEL_CHECK_SUBSCRIPTION
Read access to check if a user is subscribed to your channel.
|
CHANNEL_COMMERCIAL
Access to trigger commercials on channel.
|
CHANNEL_EDITOR
Write access to channel metadata (game, status, etc).
|
CHANNEL_READ
Read access to non-public channel information, including email address and stream key.
|
CHANNEL_STREAM
Ability to reset a channel's stream key.
|
CHANNEL_SUBSCRIPTIONS
Read access to all subscribers to your channel.
|
CHAT_LOGIN
Ability to log into chat and send messages.
|
USER_BLOCKS_EDIT
Ability to ignore or unignore on behalf of a user.
|
USER_BLOCKS_READ
Read access to a user's list of ignored users.
|
USER_FOLLOWS_EDIT
Access to manage a user's followed channels.
|
USER_READ
Read access to non-public user information, such as email address.
|
USER_SUBSCRIPTIONS
Read access to subscriptions of a user.
|
Modifier and Type | Method and Description |
---|---|
static Scopes |
fromString(java.lang.String text)
Convert the string representation of the Scope to the Enum.
|
java.lang.String |
getKey()
Get the identifier that twitch will recognize.
|
static java.lang.String |
join(Scopes... scopes)
Combine
Scopes into a '+' separated String . |
static Scopes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scopes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scopes USER_READ
public static final Scopes USER_BLOCKS_EDIT
public static final Scopes USER_BLOCKS_READ
public static final Scopes USER_FOLLOWS_EDIT
public static final Scopes CHANNEL_READ
public static final Scopes CHANNEL_EDITOR
public static final Scopes CHANNEL_COMMERCIAL
public static final Scopes CHANNEL_STREAM
public static final Scopes CHANNEL_SUBSCRIPTIONS
public static final Scopes USER_SUBSCRIPTIONS
public static final Scopes CHANNEL_CHECK_SUBSCRIPTION
public static final Scopes CHAT_LOGIN
public static Scopes[] values()
for (Scopes c : Scopes.values()) System.out.println(c);
public static Scopes valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String join(Scopes... scopes)
Scopes
into a '+' separated String
.
This is the required input format for twitch.tvscopes
- Scopes
to combine.String
representing '+' separated list of Scopes
public static Scopes fromString(java.lang.String text)
text
- Text representation of Enum valuepublic java.lang.String getKey()
String
identifier