use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class MeetingClientMessageSender method processMeetingEndingMessage.
private void processMeetingEndingMessage(MeetingEndingMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("status", "Meeting is ending.");
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "meetingEnding", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class MeetingClientMessageSender method processMeetingHasEndedMessage.
private void processMeetingHasEndedMessage(MeetingHasEndedMessage msg) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("status", "Meeting has already ended.");
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "meetingHasEnded", message);
service.sendMessage(m);
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PollingClientMessageSender method processPollStoppedMessage.
private void processPollStoppedMessage(String json) {
PollStoppedMessage msg = PollStoppedMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("pollId", msg.pollId);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage b = new BroadcastClientMessage(msg.meetingId, "pollStoppedMessage", message);
service.sendMessage(b);
}
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PollingClientMessageSender method processPollShowResultMessage.
private void processPollShowResultMessage(String json) {
PollShowResultMessage msg = PollShowResultMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("poll", msg.poll);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage b = new BroadcastClientMessage(msg.meetingId, "pollShowResultMessage", message);
service.sendMessage(b);
}
}
use of org.bigbluebutton.red5.client.messaging.BroadcastClientMessage in project bigbluebutton by bigbluebutton.
the class PollingClientMessageSender method processPollStartedMessage.
private void processPollStartedMessage(String json) {
PollStartedMessage msg = PollStartedMessage.fromJson(json);
if (msg != null) {
Map<String, Object> args = new HashMap<String, Object>();
args.put("poll", msg.poll);
Map<String, Object> message = new HashMap<String, Object>();
Gson gson = new Gson();
message.put("msg", gson.toJson(args));
BroadcastClientMessage b = new BroadcastClientMessage(msg.meetingId, "pollStartedMessage", message);
service.sendMessage(b);
}
}
Aggregations