public static interface RespokeEndpoint.Listener
Modifier and Type | Method and Description |
---|---|
void |
onMessage(java.lang.String message,
java.util.Date timestamp,
RespokeEndpoint endpoint,
boolean didSend)
Handle messages sent to the logged-in user from this one Endpoint.
|
void |
onPresence(java.lang.Object presence,
RespokeEndpoint sender)
A notification that the presence for an endpoint has changed
|
void onMessage(java.lang.String message, java.util.Date timestamp, RespokeEndpoint endpoint, boolean didSend)
message
- The messagetimestamp
- The timestamp of the messageendpoint
- The remote endpoint that sent the messagedidSend
- True if the specified endpoint sent the message, False if it received the messagevoid onPresence(java.lang.Object presence, RespokeEndpoint sender)
presence
- The new presencesender
- The endpoint