Search in sources :

Example 1 with GetSlideInfoReplyMessage

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

the class PresentationClientMessageSender method processGetSlideInfoReply.

private void processGetSlideInfoReply(String json) {
    GetSlideInfoReplyMessage msg = GetSlideInfoReplyMessage.fromJson(json);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("meetingID", msg.meetingId);
        args.put("xOffset", msg.xOffset);
        args.put("yOffest", msg.yOffset);
        args.put("widthRatio", msg.widthRatio);
        args.put("heightRatio", msg.heightRatio);
        Map<String, Object> message = new HashMap<String, Object>();
        Gson gson = new Gson();
        message.put("msg", gson.toJson(args));
        DirectClientMessage m = new DirectClientMessage(msg.meetingId, msg.requesterId, "getSlideInfoReply", message);
        service.sendMessage(m);
    }
}
Also used : HashMap(java.util.HashMap) Gson(com.google.gson.Gson) JsonObject(com.google.gson.JsonObject) DirectClientMessage(org.bigbluebutton.red5.client.messaging.DirectClientMessage) GetSlideInfoReplyMessage(org.bigbluebutton.common.messages.GetSlideInfoReplyMessage)

Aggregations

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