use of org.bigbluebutton.common.messages.PresentationConversionDoneMessage in project bigbluebutton by bigbluebutton.
the class PresentationClientMessageSender method processPresentationConversionDone.
private void processPresentationConversionDone(String json) {
PresentationConversionDoneMessage msg = PresentationConversionDoneMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("meetingID", msg.meetingId);
args.put("code", msg.code);
Map<String, Object> presentation = new HashMap<String, Object>();
presentation.put("id", msg.presentation.get("id"));
presentation.put("name", msg.presentation.get("name"));
presentation.put("current", msg.presentation.get("current"));
presentation.put("pages", msg.presentation.get("pages"));
args.put("presentation", presentation);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "conversionCompletedUpdateMessageCallback", message);
service.sendMessage(m);
}
}
Aggregations