com.vwp.vuapi.event
Interface VUCommunicationListener
- All Superinterfaces:
- EventListener, VUUserListener
public interface VUCommunicationListener
- extends VUUserListener
This class can be used to create a object that watches which
changes appear related to users and to see what they communicate
with each other
|
Field Summary |
static int |
VU_USER_COMM_CHAT
communication type flag: the sent text was a normal chat that is available to everyone within a world |
static int |
VU_USER_COMM_WHISPER
communication type flag: the sent text was whispered directly to the robot |
|
Method Summary |
void |
userCommunication(VUUserInfo ui,
int communicationType,
String data)
This method is called every time somebody chatted or whispered
in the world currently logged into |
VU_USER_COMM_CHAT
static final int VU_USER_COMM_CHAT
- communication type flag: the sent text was a normal chat that is available to everyone within a world
- See Also:
- Constant Field Values
VU_USER_COMM_WHISPER
static final int VU_USER_COMM_WHISPER
- communication type flag: the sent text was whispered directly to the robot
- See Also:
- Constant Field Values
userCommunication
void userCommunication(VUUserInfo ui,
int communicationType,
String data)
- This method is called every time somebody chatted or whispered
in the world currently logged into
- Parameters:
ui - a VUUserInfo object that contains information of
the user that communicatescommunicationType - a flag that specifies the kind of
communication using the VU_USER_COMM_-constantsdata - the communicated text
ToDo: decouple this method call so that a blocking user handling doesn't
blocks the complete data flow of the API