Package org.javacord.api.entity.activity
Enum ActivityFlag
- java.lang.Object
-
- java.lang.Enum<ActivityFlag>
-
- org.javacord.api.entity.activity.ActivityFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ActivityFlag>
public enum ActivityFlag extends java.lang.Enum<ActivityFlag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMBEDDEDINSTANCEJOINJOIN_REQUESTPARTY_PRIVACY_FRIENDSPARTY_PRIVACY_VOICE_CHANNELPLAYSPECTATESYNCUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intasInt()Gets the integer value of the activity flag.static ActivityFlaggetActivityFlagById(int flags)Gets the activity flag of the given integer value.static ActivityFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ActivityFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ActivityFlag INSTANCE
-
JOIN
public static final ActivityFlag JOIN
-
SPECTATE
public static final ActivityFlag SPECTATE
-
JOIN_REQUEST
public static final ActivityFlag JOIN_REQUEST
-
SYNC
public static final ActivityFlag SYNC
-
PLAY
public static final ActivityFlag PLAY
-
PARTY_PRIVACY_FRIENDS
public static final ActivityFlag PARTY_PRIVACY_FRIENDS
-
PARTY_PRIVACY_VOICE_CHANNEL
public static final ActivityFlag PARTY_PRIVACY_VOICE_CHANNEL
-
EMBEDDED
public static final ActivityFlag EMBEDDED
-
UNKNOWN
public static final ActivityFlag UNKNOWN
-
-
Method Detail
-
values
public static ActivityFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ActivityFlag c : ActivityFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivityFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getActivityFlagById
public static ActivityFlag getActivityFlagById(int flags)
Gets the activity flag of the given integer value.- Parameters:
flags- The integer value of the flag.- Returns:
- The activity flag of the given integer value.
-
asInt
public int asInt()
Gets the integer value of the activity flag.- Returns:
- Gets the integer value of the activity flag.
-
-