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
 
Fields inherited from interface com.vwp.vuapi.event.VUUserListener
VU_USER_CHANGE_ENTER, VU_USER_CHANGE_LEAVE, VU_USER_CHANGE_MODIFY
 
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
 
Methods inherited from interface com.vwp.vuapi.event.VUUserListener
userChanged
 

Field Detail

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
Method Detail

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 communicates
communicationType - a flag that specifies the kind of communication using the VU_USER_COMM_-constants
data - the communicated text ToDo: decouple this method call so that a blocking user handling doesn't blocks the complete data flow of the API