Search in sources :

Example 1 with GetPresentationInfoReplyMessage

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

the class PresentationClientMessageSender method processGetPresentationInfoReplyMessage.

private void processGetPresentationInfoReplyMessage(String json) {
    GetPresentationInfoReplyMessage msg = GetPresentationInfoReplyMessage.fromJson(json);
    if (msg != null) {
        Map<String, Object> args = new HashMap<String, Object>();
        args.put("meetingID", msg.meetingId);
        args.put("presenter", msg.presenter);
        args.put("presentations", msg.presentations);
        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, "getPresentationInfoReply", message);
        service.sendMessage(m);
    }
}
Also used : HashMap(java.util.HashMap) Gson(com.google.gson.Gson) GetPresentationInfoReplyMessage(org.bigbluebutton.common.messages.GetPresentationInfoReplyMessage) JsonObject(com.google.gson.JsonObject) DirectClientMessage(org.bigbluebutton.red5.client.messaging.DirectClientMessage)

Aggregations

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