From 658f74ff7d479c900a8df3c242712910103126b3 Mon Sep 17 00:00:00 2001 From: Bruno Bottazzini Date: Fri, 6 Mar 2020 09:38:14 +0100 Subject: [PATCH] openvidu-server: fix some style for CDREventSendMessage --- .../io/openvidu/server/cdr/CDREventSendMessage.java | 11 ----------- .../io/openvidu/server/core/SessionEventsHandler.java | 1 - 2 files changed, 12 deletions(-) diff --git a/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREventSendMessage.java b/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREventSendMessage.java index 946ad451..825c5422 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREventSendMessage.java +++ b/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREventSendMessage.java @@ -10,29 +10,18 @@ public class CDREventSendMessage extends CDREvent { private Participant participant; private JsonObject message; - - public CDREventSendMessage(Participant participant, JsonObject message, Long timeStamp) { super(CDREventName.messageSent, participant.getSessionId() , timeStamp); this.participant = participant; this.message = message; - // TODO Auto-generated constructor stub } - - @Override public JsonObject toJson() { - // TODO Auto-generated method stub JsonObject json = super.toJson(); json.addProperty("participantId", this.participant.getParticipantPublicId()); json.addProperty("data", message.get("data").getAsString()); json.addProperty("type", message.get("type").getAsString()); return json; } - - - - - } diff --git a/openvidu-server/src/main/java/io/openvidu/server/core/SessionEventsHandler.java b/openvidu-server/src/main/java/io/openvidu/server/core/SessionEventsHandler.java index b171e488..26131688 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/core/SessionEventsHandler.java +++ b/openvidu-server/src/main/java/io/openvidu/server/core/SessionEventsHandler.java @@ -374,7 +374,6 @@ public class SessionEventsHandler { CDR.recordSendMessage(participant, message, transactionId); rpcNotificationService.sendResponse(participant.getParticipantPrivateId(), transactionId, new JsonObject()); } - } public void onStreamPropertyChanged(Participant participant, Integer transactionId, Set participants,