-
public interface IThingDeviceMultiControl
Equipment control more.
-
-
Method Summary
Modifier and Type Method Description abstract void
queryLinkInfoByDp(String devId, String dpId, IThingDataCallback<MultiControlLinkBean> callback)
Query the multicontrol and automation associated with the DP keys under the device. abstract void
saveDeviceMultiControl(long mHomeId, MultiControlBean multiControlBean, IThingResultCallback<MultiControlBean> callback)
Add or update multiple control groups. abstract void
saveDeviceMultiControl(long mHomeId, String json, IThingResultCallback<MultiControlBean> callback)
abstract void
getDeviceDpLinkRelation(String devId, IThingDataCallback<DeviceMultiControlRelationBean> callback)
Get the key, associated scene and multi-control group of the corresponding DP point of the device. abstract void
enableMultiControl(long multiControlId, IThingResultCallback<Boolean> callback)
Enable multi-control groups. abstract void
disableMultiControl(long multiControlId, IThingResultCallback<Boolean> callback)
Deactivate the multi-control group. abstract void
getMultiControlDeviceList(long mHomeId, IThingDataCallback<ArrayList<MultiControlDevInfoBean>> callback)
Gets a list of multi-controlled devices. abstract void
getDeviceDpInfoList(String devId, IThingDataCallback<ArrayList<DeviceDpInfoBean>> callback)
Gets all DP information for the device. -
-
Method Detail
-
queryLinkInfoByDp
abstract void queryLinkInfoByDp(String devId, String dpId, IThingDataCallback<MultiControlLinkBean> callback)
Query the multicontrol and automation associated with the DP keys under the device.
- Parameters:
devId
- The device ID you want to query.dpId
- The device DP point ID that needs to be queried.callback
- Callback for the multicontrol and automation associated with the DP keys under the device.
-
saveDeviceMultiControl
abstract void saveDeviceMultiControl(long mHomeId, MultiControlBean multiControlBean, IThingResultCallback<MultiControlBean> callback)
Add or update multiple control groups.
- Parameters:
mHomeId
- Home ID.multiControlBean
- Data from a multi-control group.callback
- Callback for add or update multiple control groups.
-
saveDeviceMultiControl
abstract void saveDeviceMultiControl(long mHomeId, String json, IThingResultCallback<MultiControlBean> callback)
-
getDeviceDpLinkRelation
abstract void getDeviceDpLinkRelation(String devId, IThingDataCallback<DeviceMultiControlRelationBean> callback)
Get the key, associated scene and multi-control group of the corresponding DP point of the device.
- Parameters:
devId
- Device id.callback
- A callback to Get the key, associated scene and multi-control group of the corresponding DP point of the device.
-
enableMultiControl
abstract void enableMultiControl(long multiControlId, IThingResultCallback<Boolean> callback)
Enable multi-control groups.
- Parameters:
multiControlId
- Multi-Control id.callback
- A callback to enable multi-control groups.
-
disableMultiControl
abstract void disableMultiControl(long multiControlId, IThingResultCallback<Boolean> callback)
Deactivate the multi-control group.
- Parameters:
multiControlId
- Multi-Control id.callback
- A callback to deactivate the multi-control group.
-
getMultiControlDeviceList
abstract void getMultiControlDeviceList(long mHomeId, IThingDataCallback<ArrayList<MultiControlDevInfoBean>> callback)
Gets a list of multi-controlled devices.
- Parameters:
mHomeId
- Home id.callback
- A callback to get a list of multi-controlled devices.
-
getDeviceDpInfoList
abstract void getDeviceDpInfoList(String devId, IThingDataCallback<ArrayList<DeviceDpInfoBean>> callback)
Gets all DP information for the device.
- Parameters:
devId
- Device id.callback
- A callback to get all DP information for the device.
-
-
-
-