Package com.gears42.iot.webthing
Class ComplianceEvent
- java.lang.Object
-
- com.gears42.iot.webthing.Event
-
- com.gears42.iot.webthing.ComplianceEvent
-
public class ComplianceEvent extends Event
A sub class of main Event which is specifically for ComplianceEvents.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gears42.iot.webthing.Event
Event.eventType
-
-
Constructor Summary
Constructors Constructor Description ComplianceEvent(Thing thing, java.lang.String name, java.lang.Object data, java.lang.String requestId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.json.JSONObject
getComplianceEvents()
Get all Compliance events.int
getNixNotified()
get nix notified.int
getNotifyCount()
Get notify count.java.lang.String
getRequestId()
Get requestId of the ComplianceEvent.java.lang.String
getSocketUrl()
Get Url of the Socket.void
setNixNotified(int nixNotified)
Set nix notified.void
setNotifyCount(int notifyCount)
Set nix notify count.void
updateValue(java.lang.String value)
Update value.
-
-
-
Constructor Detail
-
ComplianceEvent
public ComplianceEvent(Thing thing, java.lang.String name, java.lang.Object data, java.lang.String requestId)
-
-
Method Detail
-
getRequestId
public java.lang.String getRequestId()
Get requestId of the ComplianceEvent.- Returns:
- requestId.
-
setNixNotified
public void setNixNotified(int nixNotified)
Set nix notified.- Parameters:
nixNotified
- notified status.
-
getNixNotified
public int getNixNotified()
get nix notified.- Returns:
- nix notified status.
-
setNotifyCount
public void setNotifyCount(int notifyCount)
Set nix notify count.- Parameters:
notifyCount
- notify count.
-
getNotifyCount
public int getNotifyCount()
Get notify count.- Returns:
- notify count.
-
getSocketUrl
public java.lang.String getSocketUrl()
Get Url of the Socket.- Returns:
- SocketUrl.
-
updateValue
public void updateValue(java.lang.String value)
Update value.- Parameters:
value
- value.
-
getComplianceEvents
public static org.json.JSONObject getComplianceEvents()
Get all Compliance events.- Returns:
- All Complinace events.
-
-