Search in sources :

Example 1 with PresentationPageGeneratedReplyMessage

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

the class PresentationClientMessageSender method processPresentationPageGeneratedReply.

private void processPresentationPageGeneratedReply(String json) {
    PresentationPageGeneratedReplyMessage msg = PresentationPageGeneratedReplyMessage.fromJson(json);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("presentationID", msg.presentationId);
        args.put("meetingID", msg.meetingId);
        args.put("code", msg.code);
        args.put("messageKey", msg.messageKey);
        args.put("presentationName", msg.presentationName);
        args.put("pagesCompleted", msg.pagesCompleted);
        args.put("numberOfPages", msg.numPages);
        Map<String, Object> message = new HashMap<String, Object>();
        Gson gson = new Gson();
        message.put("msg", gson.toJson(args));
        BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "generatedSlideUpdateMessageCallback", message);
        service.sendMessage(m);
    }
}
Also used : PresentationPageGeneratedReplyMessage(org.bigbluebutton.common.messages.PresentationPageGeneratedReplyMessage) BroadcastClientMessage(org.bigbluebutton.red5.client.messaging.BroadcastClientMessage) HashMap(java.util.HashMap) Gson(com.google.gson.Gson) JsonObject(com.google.gson.JsonObject)

Aggregations

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