public static enum VoiceCode.Close extends java.lang.Enum<VoiceCode.Close>
Enum Constant and 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 |
Modifier and Type | Method and 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.
|
public static final VoiceCode.Close HEARTBEAT_TIMEOUT
public static final VoiceCode.Close UNKNOWN_OP_CODE
public static final VoiceCode.Close NOT_AUTHENTICATED
public static final VoiceCode.Close AUTHENTICATION_FAILED
public static final VoiceCode.Close ALREADY_AUTHENTICATED
public static final VoiceCode.Close INVALID_SESSION
public static final VoiceCode.Close SESSION_TIMEOUT
public static final VoiceCode.Close SERVER_NOT_FOUND
public static final VoiceCode.Close UNKNOWN_PROTOCOL
public static final VoiceCode.Close DISCONNECTED
public static final VoiceCode.Close SERVER_CRASH
public static final VoiceCode.Close UNKNOWN_ENCRYPTION_MODE
public static final VoiceCode.Close UNKNOWN
public static VoiceCode.Close[] values()
for (VoiceCode.Close c : VoiceCode.Close.values()) System.out.println(c);
public static VoiceCode.Close 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 static VoiceCode.Close from(int code)
public int getCode()
public java.lang.String getMeaning()