java.io.Serializable
, java.lang.Comparable<Game.GameType>
public static enum Game.GameType extends java.lang.Enum<Game.GameType>
Enum Constant | Description |
---|---|
DEFAULT |
The GameType used to represent a normal
Game status. |
LISTENING |
Used to indicate that the
Game should display
as Listening... in the official client. |
STREAMING |
Used to indicate that the
Game is a stream
This type is displayed as "Streaming" in the discord client. |
WATCHING |
Used to indicate that the
Game should display
as Watching... in the official client. |
Modifier and Type | Method | Description |
---|---|---|
static Game.GameType |
fromKey(int key) |
Gets the GameType related to the provided key.
|
int |
getKey() |
The Discord defined id key for this GameType.
|
static Game.GameType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Game.GameType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Game.GameType DEFAULT
Game
status.public static final Game.GameType STREAMING
Game
is a stream
public static final Game.GameType LISTENING
Game
should display
as Listening...
in the official client.@Incubating public static final Game.GameType WATCHING
Game
should display
as Watching...
in the official client.public static Game.GameType[] values()
for (Game.GameType c : Game.GameType.values()) System.out.println(c);
public static Game.GameType 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 int getKey()
public static Game.GameType fromKey(int key)
DEFAULT
key
- The Discord key referencing a GameType.DEFAULT
for unknown key.