public static enum Activity.Type extends Enum<Activity.Type>
Enum Constant and Description |
---|
LISTENING
"Listening to {name}"
|
PLAYING
"Playing {name}"
|
STREAMING
"Streaming {name}"
|
WATCHING
"Watching {name}"
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Activity.Type |
of(int value)
Gets the type of activity.
|
static Activity.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Activity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Activity.Type PLAYING
public static final Activity.Type STREAMING
public static final Activity.Type LISTENING
public static final Activity.Type WATCHING
public static Activity.Type[] values()
for (Activity.Type c : Activity.Type.values()) System.out.println(c);
public static Activity.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static Activity.Type of(int value)
getValue()
from the returned enum will
equal (==
) the supplied value
.value
- The underlying value as represented by Discord.