public enum PubSubTopics extends java.lang.Enum<PubSubTopics>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTopic(Channel channel)
Getting name topics for the channel
|
boolean |
isInRequiredScope(TwitchScopes... scope) |
static PubSubTopics |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PubSubTopics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PubSubTopics BITS
public static final PubSubTopics SUBS
public static final PubSubTopics COMMERCE
public static final PubSubTopics WHISPERS
public static PubSubTopics[] values()
for (PubSubTopics c : PubSubTopics.values()) System.out.println(c);
public static PubSubTopics 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 java.lang.String getTopic(Channel channel)
channel
- Channel
modelpublic boolean isInRequiredScope(TwitchScopes... scope)