Device Class
- java.lang. Object 
- com.microsoft. azure. sdk. iot. device. DeviceTwin. Device 
 
- com.
Implements
public abstract class Device
 implements PropertyCallBack<java.lang.String,java.lang.Object>
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Device() | ||
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| void | clean() | 
| java.util.HashMap<Property,Pair<Property | getDesiredProp() | 
| java.util.HashSet<Property> | getReportedProp() | 
| void | setDesiredPropertyCallback(DeviceTwin.Property desiredProp, DeviceTwin.PropertyCallBack<String,Object> desiredPropCallBack, Object desiredPropCallBackContext) | 
| void | setReportedProp(DeviceTwin.Property reportedProp) Save the provided property. | 
Methods inherited from java.lang.Object
Constructor Details
Device
public Device()
Method Details
clean
public void clean()
getDesiredProp
public HashMap<DeviceTwin.Property,DeviceTwin.Pair<DeviceTwin.PropertyCallBack<String,Object>,Object>> getDesiredProp()
getReportedProp
public HashSet<DeviceTwin.Property> getReportedProp()
setDesiredPropertyCallback
public void setDesiredPropertyCallback(DeviceTwin.Property desiredProp, DeviceTwin.PropertyCallBack<String,Object> desiredPropCallBack, Object desiredPropCallBackContext)
Parameters:
setReportedProp
public void setReportedProp(DeviceTwin.Property reportedProp)
Save the provided property. If there is a saved property with the same key as the key in the provided reportedProp, the old value will be overwritten by the new value
Parameters: