public static enum Room.MessageType extends Enum<Room.MessageType>
| Enum Constant and Description |
|---|
DRAW_MESSAGE
'1': DrawMesssage: contains serialized DrawMessage(s) prefixed
with the current Player's
Room.Player.lastReceivedMessageId
and ",".Multiple draw messages are concatenated with "|" as separator. |
ERROR
'0': Error: contains error message.
|
IMAGE_MESSAGE
'2': ImageMessage: Contains number of current players in this room.
|
PLAYER_CHANGED
'3': PlayerChanged: contains "+" or "-" which indicate a player
was added or removed to this Room.
|
| Modifier and Type | Method and Description |
|---|---|
static Room.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Room.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Room.MessageType ERROR
public static final Room.MessageType DRAW_MESSAGE
Room.Player.lastReceivedMessageId
and ",".public static final Room.MessageType IMAGE_MESSAGE
public static final Room.MessageType PLAYER_CHANGED
public static Room.MessageType[] values()
for (Room.MessageType c : Room.MessageType.values()) System.out.println(c);
public static Room.MessageType 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 © 2015 WSO2 Inc. All rights reserved.