-
public interface IThingDeviceOperator
-
-
Method Summary
Modifier and Type Method Description abstract voidgetThingModelWithProductId(String pid, IThingDataCallback<ThingSmartThingModel> callback)Get thing model from cloud and update cache. abstract voidgetThingModelWithProductId(String pid, String productVersion, IThingDataCallback<ThingSmartThingModel> callback)Get thing model from cloud and update cache. abstract StringdpsFromProperties(String deviceId, String properties)ThingLink Devicechange property to dp abstract voidgetAuthPropertyByUUID(String uuid, String code, IThingResultCallback<Map<String, Object>> callback)get auth property by one uuid abstract voidgetAuthPropertyByUUID(List<String> uuids, String code, IThingResultCallback<Map<String, Object>> callback)get auth property by uuids abstract voidgetAuthPropertyByUUID(String uuid, List<String> codes, IThingResultCallback<Map<String, Object>> callback)abstract voidremoveDeviceCloud(String devId, IResultCallback cb)abstract voidresetFactory(String devId, IResultCallback cb)abstract voidremoveOrResetDeviceCloud(boolean isReset, String devId, IResultCallback cb)-
-
Method Detail
-
getThingModelWithProductId
abstract void getThingModelWithProductId(String pid, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache.
- Parameters:
callback- Called when the task is finished or interrupted by an error
-
getThingModelWithProductId
abstract void getThingModelWithProductId(String pid, String productVersion, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache.
- Parameters:
callback- Called when the task is finished or interrupted by an error
-
dpsFromProperties
abstract String dpsFromProperties(String deviceId, String properties)
ThingLink Devicechange property to dp
- Parameters:
deviceId- idproperties- property data is a json map string
-
getAuthPropertyByUUID
abstract void getAuthPropertyByUUID(String uuid, String code, IThingResultCallback<Map<String, Object>> callback)
get auth property by one uuid
-
getAuthPropertyByUUID
abstract void getAuthPropertyByUUID(List<String> uuids, String code, IThingResultCallback<Map<String, Object>> callback)
get auth property by uuids
- Parameters:
uuids- eg "[\"84264352e8db8411d288\"]",code- eg "HOME_KIT_CODE"
-
getAuthPropertyByUUID
abstract void getAuthPropertyByUUID(String uuid, List<String> codes, IThingResultCallback<Map<String, Object>> callback)
-
removeDeviceCloud
abstract void removeDeviceCloud(String devId, IResultCallback cb)
-
resetFactory
abstract void resetFactory(String devId, IResultCallback cb)
-
removeOrResetDeviceCloud
abstract void removeOrResetDeviceCloud(boolean isReset, String devId, IResultCallback cb)
-
-
-
-