Search in sources :

Example 1 with LockLayoutMessage

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

the class UserClientMessageSender method processLockLayoutMessage.

private void processLockLayoutMessage(String message) {
    LockLayoutMessage msg = LockLayoutMessage.fromJson(message);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("locked", msg.locked);
        args.put("setById", msg.setByUserid);
        Iterator<String> usersIter = msg.users.iterator();
        while (usersIter.hasNext()) {
            String user = usersIter.next();
            DirectClientMessage m = new DirectClientMessage(msg.meetingId, user, "layoutLocked", args);
            service.sendMessage(m);
        }
    }
}
Also used : LockLayoutMessage(org.bigbluebutton.common.messages.LockLayoutMessage) 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 LockLayoutMessage (org.bigbluebutton.common.messages.LockLayoutMessage)1 DirectClientMessage (org.bigbluebutton.red5.client.messaging.DirectClientMessage)1