use of org.bigbluebutton.common.messages.payload.PubSubPingMessagePayload in project bigbluebutton by bigbluebutton.
the class ToJsonEncoder method encodePubSubPongMessage.
public String encodePubSubPongMessage(String system, Long timestamp) {
PubSubPongMessage m = new PubSubPongMessage();
MessageHeader header = new MessageHeader();
PubSubPingMessagePayload payload = new PubSubPingMessagePayload();
header.name = PubSubPongMessage.PUBSUB_PONG;
header.timestamp = System.nanoTime();
payload.system = system;
payload.timestamp = timestamp;
m.header = header;
m.payload = payload;
Gson gson = new Gson();
return gson.toJson(m);
}
use of org.bigbluebutton.common.messages.payload.PubSubPingMessagePayload in project bigbluebutton by bigbluebutton.
the class ToJsonEncoder method encodePubSubPingMessage.
public String encodePubSubPingMessage(String system, Long timestamp) {
PubSubPingMessage m = new PubSubPingMessage();
MessageHeader header = new MessageHeader();
PubSubPingMessagePayload payload = new PubSubPingMessagePayload();
header.name = PubSubPingMessage.PUBSUB_PING;
header.timestamp = System.nanoTime();
payload.system = system;
payload.timestamp = timestamp;
m.header = header;
m.payload = payload;
Gson gson = new Gson();
return gson.toJson(m);
}
Aggregations