mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: withActiveRecordings to withRecordings
parent
5000bdfcde
commit
2afc2a7d6c
|
@ -177,7 +177,7 @@ public class Kms {
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JsonObject toJsonExtended(boolean withSessions, boolean withActiveRecordings, boolean withExtraInfo) {
|
public JsonObject toJsonExtended(boolean withSessions, boolean withRecordings, boolean withExtraInfo) {
|
||||||
|
|
||||||
JsonObject json = this.toJson();
|
JsonObject json = this.toJson();
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ public class Kms {
|
||||||
json.add("sessions", sessions);
|
json.add("sessions", sessions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (withActiveRecordings) {
|
if (withRecordings) {
|
||||||
JsonArray activeRecordingsJson = new JsonArray();
|
JsonArray activeRecordingsJson = new JsonArray();
|
||||||
for (String recordingId : this.activeRecordings.keySet()) {
|
for (String recordingId : this.activeRecordings.keySet()) {
|
||||||
activeRecordingsJson.add(recordingId);
|
activeRecordingsJson.add(recordingId);
|
||||||
|
|
|
@ -91,8 +91,8 @@ public abstract class KmsManager {
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JsonObject toJsonExtended(boolean withSessions, boolean withActiveRecordings, boolean withExtraInfo) {
|
public JsonObject toJsonExtended(boolean withSessions, boolean withRecordings, boolean withExtraInfo) {
|
||||||
JsonObject json = this.kms.toJsonExtended(withSessions, withActiveRecordings, withExtraInfo);
|
JsonObject json = this.kms.toJsonExtended(withSessions, withRecordings, withExtraInfo);
|
||||||
json.addProperty("load", this.load);
|
json.addProperty("load", this.load);
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue