mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: fix some style for CDREventSendMessage
parent
a7a54ddc64
commit
658f74ff7d
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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<Participant> participants,
|
||||
|
|
Loading…
Reference in New Issue