| Enum Constant and Description |
|---|
AVAILABLE_REGIONS
Get a list of all the available regions
Handled by
DataHandler
Required Payload: none |
CHAT
Send a chat, card or both
Handled by
ChatHandler
Required Payload: to, card, text |
DELETE_CARD
Delete a card
Handled by
VoteHandler
Required Payload: card |
DRAFT_CARD
Draft a card
Handled by
VoteHandler
Required Payload: card |
DRAW_CARD
Draw a card
Handled by
VoteHandler
Required Payload: none |
GAME_STATE
Get the game state
Handled by
DataHandler
Required Payload: none |
HAND_CREATE
Create current user hand
Handled by
CardHandler
Required Payload: none |
HAND_READ
Get current user hand
Handled by
CardHandler
Required Payload: none |
KILL
Turn off the server
Handled by
AdminTaskHandler
Required Payload: none |
LOGIN
Login to the server
Handled by
LoginHandler
Required Payload: username, password |
READY
Tell the server that current user is ready to play game
Required Payload: none
|
SERVER_UPTIME
Get the uptime of the server
Handled by
DataHandler
Required Payload: none |
USER_CREATE
Create a User
Handled by
UserHandler
Required Payload: username, password, region |
USER_READ
Get more information about a user
Handled by
UserHandler
Required Payload: username or region |
USER_UPDATE
Update current user "profile"
Handled by
UserHandler
Required Payload: username, password, region |
USERS
Get a list of ALL the users
Handled by
UserHandler
Required Payload: none |
USERS_LOGGED_IN
Get a list of all the logged in users
Handled by
UserHandler
Required Payload: none |
USERS_READY
Get a list of all the users ready to play the game
Handled by
UserHandler
Required Payload: none |
VOTE_DOWN
Vote down on a card
Handled by
VoteHandler
Required Payload: card |
VOTE_UP
Vote up on a card
Handled by
VoteHandler
Required Payload: card |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl() |
static Endpoint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Endpoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Endpoint USER_CREATE
UserHandler
Required Payload: username, password, regionpublic static final Endpoint USER_READ
UserHandler
Required Payload: username or regionpublic static final Endpoint USER_UPDATE
UserHandler
Required Payload: username, password, regionpublic static final Endpoint USERS
UserHandler
Required Payload: nonepublic static final Endpoint USERS_LOGGED_IN
UserHandler
Required Payload: nonepublic static final Endpoint USERS_READY
UserHandler
Required Payload: nonepublic static final Endpoint LOGIN
LoginHandler
Required Payload: username, passwordpublic static final Endpoint HAND_READ
CardHandler
Required Payload: nonepublic static final Endpoint HAND_CREATE
CardHandler
Required Payload: nonepublic static final Endpoint VOTE_UP
VoteHandler
Required Payload: cardpublic static final Endpoint VOTE_DOWN
VoteHandler
Required Payload: cardpublic static final Endpoint DRAFT_CARD
VoteHandler
Required Payload: cardpublic static final Endpoint DRAW_CARD
VoteHandler
Required Payload: nonepublic static final Endpoint DELETE_CARD
VoteHandler
Required Payload: cardpublic static final Endpoint CHAT
ChatHandler
Required Payload: to, card, textpublic static final Endpoint GAME_STATE
DataHandler
Required Payload: nonepublic static final Endpoint SERVER_UPTIME
DataHandler
Required Payload: nonepublic static final Endpoint AVAILABLE_REGIONS
DataHandler
Required Payload: nonepublic static final Endpoint READY
public static final Endpoint KILL
AdminTaskHandler
Required Payload: nonepublic static Endpoint[] values()
for (Endpoint c : Endpoint.values()) System.out.println(c);
public static Endpoint 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 java.lang.String getUrl()