src/main/java/com/lightstreamer/adapters/LeapMotionDemo/LeapMotionDataAdapter.java
@Override
    public void onUserEnter(User user, String room, Object roomStatusHandle, boolean realTimeEvent) {
        String id = user.getId();
        logger.debug(id + " enters " + room);
        
        HashMap<String, String> update = new HashMap<String, String>();
        update.put(SmartDataProvider.KEY_FIELD, id);
        update.put(SmartDataProvider.COMMAND_FIELD, SmartDataProvider.ADD_COMMAND);
              
        this.listener.smartUpdate(roomStatusHandle, update, !realTimeEvent);
        
        universe.addPlayerToWorld(id,room);
        
    }
//user related events sequentiality is ensured by the chat class; are only generated if there is the associated handle  
user related events sequentiality is ensured by the chat class; are only generated if there is the associated handle
user related events sequentiality is ensured by the chat class ; are only generated if there is the associated handle
@Override
    public void onUserEnter(User user, String room, Object roomStatusHandle, boolean realTimeEvent) {
        String id = user.getId();
        logger.debug(id + " enters " + room);
        HashMap<String, String> update = new HashMap<String, String>();
        update.put(SmartDataProvider.KEY_FIELD, id);
        update.put(SmartDataProvider.COMMAND_FIELD, SmartDataProvider.ADD_COMMAND);
        this.listener.smartUpdate(roomStatusHandle, update, !realTimeEvent);
        universe.addPlayerToWorld(id,room);
    }
@ Override public void onUserEnter ( User user , String room , Object roomStatusHandle , boolean realTimeEvent ) { String id = user . getId ( ) ; logger . debug ( id + " enters " + room ) ; HashMap < String , String > update = new HashMap < String , String > ( ) ; update . put ( SmartDataProvider . KEY_FIELD , id ) ; update . put ( SmartDataProvider . COMMAND_FIELD , SmartDataProvider . ADD_COMMAND ) ; this . listener . smartUpdate ( roomStatusHandle , update , ! realTimeEvent ) ; universe . addPlayerToWorld ( id , room ) ; }
user related events sequentiality is ensured by the chat class; are only generated if there is the associated handle
user related events sequentiality is ensured by the chat class ; are only generated if there is the associated handle