openvidu-server: restore createdAt property for json Participant

pull/255/head
pabloFuente 2019-03-18 14:03:49 +01:00
parent d0e684487a
commit a43ccf7441
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ public class Participant {
public JsonObject toJson() { public JsonObject toJson() {
JsonObject json = new JsonObject(); JsonObject json = new JsonObject();
json.addProperty("connectionId", this.participantPublicId); json.addProperty("connectionId", this.participantPublicId);
json.addProperty("createdAt", this.createdAt);
json.addProperty("location", this.location != null ? this.location.toString() : "unknown"); json.addProperty("location", this.location != null ? this.location.toString() : "unknown");
json.addProperty("platform", this.platform); json.addProperty("platform", this.platform);
json.addProperty("token", this.token.getToken()); json.addProperty("token", this.token.getToken());