Search in sources :

Example 1 with UserEjectedFromMeetingMessage

use of org.bigbluebutton.common.messages.UserEjectedFromMeetingMessage in project bigbluebutton by bigbluebutton.

the class UserClientMessageSender method processUserEjectedFromMeetingMessage.

private void processUserEjectedFromMeetingMessage(String message) {
    UserEjectedFromMeetingMessage msg = UserEjectedFromMeetingMessage.fromJson(message);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("ejectedBy", msg.ejectedBy);
        System.out.println("**** User [" + msg.userId + "] was ejected by [" + msg.ejectedBy + "]");
        DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.userId, "userEjectedFromMeeting", args);
        service.sendMessage(m);
    }
}
Also used : UserEjectedFromMeetingMessage(org.bigbluebutton.common.messages.UserEjectedFromMeetingMessage) HashMap(java.util.HashMap) JsonObject(com.google.gson.JsonObject) DirectClientMessage(org.bigbluebutton.red5.client.messaging.DirectClientMessage)

Aggregations

JsonObject (com.google.gson.JsonObject)1 HashMap (java.util.HashMap)1 UserEjectedFromMeetingMessage (org.bigbluebutton.common.messages.UserEjectedFromMeetingMessage)1 DirectClientMessage (org.bigbluebutton.red5.client.messaging.DirectClientMessage)1