openvidu-server: withActiveRecordings to withRecordings

pull/576/head
pabloFuente 2020-12-09 17:42:47 +01:00
parent 5000bdfcde
commit 2afc2a7d6c
2 changed files with 4 additions and 4 deletions

View File

@ -177,7 +177,7 @@ public class Kms {
return json;
}
public JsonObject toJsonExtended(boolean withSessions, boolean withActiveRecordings, boolean withExtraInfo) {
public JsonObject toJsonExtended(boolean withSessions, boolean withRecordings, boolean withExtraInfo) {
JsonObject json = this.toJson();
@ -189,7 +189,7 @@ public class Kms {
json.add("sessions", sessions);
}
if (withActiveRecordings) {
if (withRecordings) {
JsonArray activeRecordingsJson = new JsonArray();
for (String recordingId : this.activeRecordings.keySet()) {
activeRecordingsJson.add(recordingId);

View File

@ -91,8 +91,8 @@ public abstract class KmsManager {
return json;
}
public JsonObject toJsonExtended(boolean withSessions, boolean withActiveRecordings, boolean withExtraInfo) {
JsonObject json = this.kms.toJsonExtended(withSessions, withActiveRecordings, withExtraInfo);
public JsonObject toJsonExtended(boolean withSessions, boolean withRecordings, boolean withExtraInfo) {
JsonObject json = this.kms.toJsonExtended(withSessions, withRecordings, withExtraInfo);
json.addProperty("load", this.load);
return json;
}