com.openfin.desktop.platform.PlatformSnapshotDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openfin-desktop-java-adapter Show documentation
Show all versions of openfin-desktop-java-adapter Show documentation
The Java API for OpenFin Runtime
package com.openfin.desktop.platform;
import org.json.JSONObject;
import com.openfin.desktop.JsonBean;
import com.openfin.desktop.MonitorInfo;
public class PlatformSnapshotDetails extends JsonBean {
private MonitorInfo monitorInfo;
public PlatformSnapshotDetails(JSONObject json) {
super(json);
this.getMonitorInfo();
}
public MonitorInfo getMonitorInfo() {
if (this.monitorInfo == null && json.has("monitorInfo")) {
this.monitorInfo = new MonitorInfo(json.getJSONObject("monitorInfo"));
}
return this.monitorInfo;
}
public String getRuntimeInfo() {
return this.getString("runtimeInfo");
}
public String getTimeStamp() {
return this.getString("timeStamp");
}
}