Class ProviderStatus
java.lang.Object
com.openfin.desktop.JsonBean
com.openfin.desktop.notifications.ProviderStatus
public class ProviderStatus extends JsonBean
Status object returned by the Provider.
- Author:
- Anthony
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ProviderStatus(org.json.JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description java.lang.String
getVersion()
Get the version number of the Provider.boolean
isConnected()
The current connection status from the Client to the Provider.Methods inherited from class com.openfin.desktop.JsonBean
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJson, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
-
Constructor Details
-
ProviderStatus
public ProviderStatus(org.json.JSONObject jsonObject)
-
-
Method Details
-
isConnected
public boolean isConnected()The current connection status from the Client to the Provider.- Returns:
- true if connected to the provider.
-
getVersion
public java.lang.String getVersion()Get the version number of the Provider.- Returns:
- The version number of the Provider. If the Provider is not connected, this will be null.
-