Package net.dv8tion.jda.core.audio
Enum VoiceCode.Close
- java.lang.Object
-
- java.lang.Enum<VoiceCode.Close>
-
- net.dv8tion.jda.core.audio.VoiceCode.Close
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VoiceCode.Close>
- Enclosing class:
- VoiceCode
public static enum VoiceCode.Close extends java.lang.Enum<VoiceCode.Close>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_AUTHENTICATED
AUTHENTICATION_FAILED
DISCONNECTED
HEARTBEAT_TIMEOUT
INVALID_SESSION
NOT_AUTHENTICATED
SERVER_CRASH
SERVER_NOT_FOUND
SESSION_TIMEOUT
UNKNOWN
UNKNOWN_ENCRYPTION_MODE
UNKNOWN_OP_CODE
UNKNOWN_PROTOCOL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VoiceCode.Close
from(int code)
int
getCode()
java.lang.String
getMeaning()
static VoiceCode.Close
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VoiceCode.Close[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEARTBEAT_TIMEOUT
public static final VoiceCode.Close HEARTBEAT_TIMEOUT
-
UNKNOWN_OP_CODE
public static final VoiceCode.Close UNKNOWN_OP_CODE
-
NOT_AUTHENTICATED
public static final VoiceCode.Close NOT_AUTHENTICATED
-
AUTHENTICATION_FAILED
public static final VoiceCode.Close AUTHENTICATION_FAILED
-
ALREADY_AUTHENTICATED
public static final VoiceCode.Close ALREADY_AUTHENTICATED
-
INVALID_SESSION
public static final VoiceCode.Close INVALID_SESSION
-
SESSION_TIMEOUT
public static final VoiceCode.Close SESSION_TIMEOUT
-
SERVER_NOT_FOUND
public static final VoiceCode.Close SERVER_NOT_FOUND
-
UNKNOWN_PROTOCOL
public static final VoiceCode.Close UNKNOWN_PROTOCOL
-
DISCONNECTED
public static final VoiceCode.Close DISCONNECTED
-
SERVER_CRASH
public static final VoiceCode.Close SERVER_CRASH
-
UNKNOWN_ENCRYPTION_MODE
public static final VoiceCode.Close UNKNOWN_ENCRYPTION_MODE
-
UNKNOWN
public static final VoiceCode.Close UNKNOWN
-
-
Method Detail
-
values
public static VoiceCode.Close[] 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 (VoiceCode.Close c : VoiceCode.Close.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VoiceCode.Close 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
-
from
public static VoiceCode.Close from(int code)
-
getCode
public int getCode()
-
getMeaning
public java.lang.String getMeaning()
-
-