mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: "connection" to "connectionId"
parent
6800e761a2
commit
51e2469701
|
@ -49,7 +49,9 @@ public class KmsEvent {
|
||||||
json.addProperty("timestamp", timestamp);
|
json.addProperty("timestamp", timestamp);
|
||||||
json.addProperty("sessionId", participant.getSessionId());
|
json.addProperty("sessionId", participant.getSessionId());
|
||||||
json.addProperty("user", participant.getFinalUserId());
|
json.addProperty("user", participant.getFinalUserId());
|
||||||
|
// TODO: remove deprecated "connection" when possible
|
||||||
json.addProperty("connection", participant.getParticipantPublicId());
|
json.addProperty("connection", participant.getParticipantPublicId());
|
||||||
|
json.addProperty("connectionId", participant.getParticipantPublicId());
|
||||||
json.addProperty("endpoint", this.endpoint);
|
json.addProperty("endpoint", this.endpoint);
|
||||||
json.addProperty("msSinceEndpointCreation", msSinceCreation);
|
json.addProperty("msSinceEndpointCreation", msSinceCreation);
|
||||||
return json;
|
return json;
|
||||||
|
|
|
@ -638,6 +638,7 @@ public abstract class MediaEndpoint {
|
||||||
j.remove("sessionId");
|
j.remove("sessionId");
|
||||||
j.remove("user");
|
j.remove("user");
|
||||||
j.remove("connection");
|
j.remove("connection");
|
||||||
|
j.remove("connectionId");
|
||||||
j.remove("endpoint");
|
j.remove("endpoint");
|
||||||
j.remove("timestampMillis");
|
j.remove("timestampMillis");
|
||||||
jsonArray.add(j);
|
jsonArray.add(j);
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class ParticipantSummary {
|
||||||
JsonObject j = cdrEvent.toJson();
|
JsonObject j = cdrEvent.toJson();
|
||||||
j.remove("participantId");
|
j.remove("participantId");
|
||||||
j.remove("connection");
|
j.remove("connection");
|
||||||
|
j.remove("connectionId");
|
||||||
jsonArrayPublishers.add(j);
|
jsonArrayPublishers.add(j);
|
||||||
});
|
});
|
||||||
publishersJson.add("content", jsonArrayPublishers);
|
publishersJson.add("content", jsonArrayPublishers);
|
||||||
|
@ -100,6 +101,7 @@ public class ParticipantSummary {
|
||||||
JsonObject j = cdrEvent.toJson();
|
JsonObject j = cdrEvent.toJson();
|
||||||
j.remove("participantId");
|
j.remove("participantId");
|
||||||
j.remove("connection");
|
j.remove("connection");
|
||||||
|
j.remove("connectionId");
|
||||||
jsonArraySubscribers.add(j);
|
jsonArraySubscribers.add(j);
|
||||||
});
|
});
|
||||||
subscribersJson.add("content", jsonArraySubscribers);
|
subscribersJson.add("content", jsonArraySubscribers);
|
||||||
|
|
Loading…
Reference in New Issue