public enum JoinResponse extends Enum<JoinResponse>
JoinResponse
is an enumeration type that defines the status of a game joining attempt.
The JoinResponse
is implemented as it is defined in the interface document v1.1.Enum Constant and Description |
---|
DENIED
Access was denied by the host.
|
FAILED
The attempt was unsuccessful.
|
GAME_FULL
The attempt was unsuccessful.
|
JOINED_QUEUE
The attempt in joining the pool was successful.
|
NAME_TAKEN
The attempt was unsuccessful.
|
NON_EXISTING
The attempt was unsuccessful.
|
PENDING_APPROVAL
Always send, when attempt is recognized.
|
RUNNING
The attempt was unsuccessful.
|
SUCCESS
The attempt was successful.
|
Modifier and Type | Method and Description |
---|---|
static JoinResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JoinResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoinResponse SUCCESS
public static final JoinResponse GAME_FULL
public static final JoinResponse NON_EXISTING
public static final JoinResponse RUNNING
public static final JoinResponse NAME_TAKEN
public static final JoinResponse FAILED
public static final JoinResponse JOINED_QUEUE
public static final JoinResponse PENDING_APPROVAL
public static final JoinResponse DENIED
public static JoinResponse[] values()
for (JoinResponse c : JoinResponse.values()) System.out.println(c);
public static JoinResponse 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 nullCopyright © 2017 smarTen. All rights reserved.