public interface ChatListener
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayerIdMapping(BigInteger playerId,
String playerName)
Notifies the listener about a signle mapping from player
identifier to player name.
|
void |
addPlayerIdMappings(Map<BigInteger,String> playerIdsToNames)
Notifies the listener about some set of mappings from identifier
to user name.
|
void |
messageArrived(String message)
Notify the listener when a message has arrived.
|
void |
playerJoined(BigInteger uid)
Called when a player joins the chat group.
|
void |
playerLeft(BigInteger uid)
Called when a player leaves the chat group.
|
void playerJoined(BigInteger uid)
uid - the identifier for the playervoid playerLeft(BigInteger uid)
uid - the identifier for the playervoid messageArrived(String message)
sender - the identifier for the sendermessage - the message itselfvoid addPlayerIdMappings(Map<BigInteger,String> playerIdsToNames)
uidMap - a map from user identifier to user namevoid addPlayerIdMapping(BigInteger playerId, String playerName)
playerID - a player identifierplayerName - a player nameCopyright © 2013. All Rights Reserved.