All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openfin.desktop.platform.PlatformSnapshotDetails Maven / Gradle / Ivy

There is a newer version: 11.0.2
Show newest version
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");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy