TwinParser.updateReportedProperty 方法
定义
重载
updateReportedProperty(Map<String, Object> propertyMap) |
Update the `reported` properties information in the collection, and return a string with a json that contains a sub-collection of added properties, or properties with new value. |
updateReportedProperty(String json) |
Update the `reported` properties information in the collection, using the information parsed from the provided json. It will fire a callback if any property was added, excluded, or had its value updated. |
updateReportedProperty(Map<String, Object> propertyMap)
Update the `reported` properties information in the collection, and return a string with a json that contains a sub-collection of added properties, or properties with new value.
public String updateReportedProperty(Map<String, Object> propertyMap)
参数
- propertyMap
- Map<String, Object>
- Map of `reported` property to change the collection.
返回
Json with added or changed properties
例外
This exception is thrown if the properties in the map do not fits the requirements.
updateReportedProperty(String json)
Update the `reported` properties information in the collection, using the information parsed from the provided json. It will fire a callback if any property was added, excluded, or had its value updated.
public void updateReportedProperty(String json)
参数
- json
- String
- Json with `reported` property to change the collection.
例外
This exception is thrown if the Json is not well formed.