-
public interface IThingRoom
Provides the ability to operate in the family room dimension.
-
-
Method Summary
Modifier and Type Method Description abstract void
updateRoom(String name, IResultCallback callback)
Modify room name. abstract void
addDevice(String devId, IResultCallback callback)
Add device in this room. abstract void
addDeviceGroup(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Add device and group in this Room (Add to the end for incremental update, not a full update) abstract void
addGroup(long groupId, IResultCallback callback)
Add group in this room. abstract void
removeDevice(String devId, IResultCallback callback)
Remove device from this room. abstract void
removeGroup(Long groupId, IResultCallback resultCallback)
Remove group from this room. abstract void
moveDevGroupListFromRoom(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Batch modification of rooms with groups and devices.This method can be used to move devices and groups into and out of a room in bulk(full update). abstract void
sortDevInRoom(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Sorting groups or devices in a room. abstract void
updateIcon(File file, IResultCallback callback)
Upload room icon. -
-
Method Detail
-
updateRoom
abstract void updateRoom(String name, IResultCallback callback)
Modify room name.
- Parameters:
name
- New name of the roomcallback
- Result callback
-
addDevice
abstract void addDevice(String devId, IResultCallback callback)
Add device in this room.
- Parameters:
devId
- Device identificationcallback
- Result callback
-
addDeviceGroup
abstract void addDeviceGroup(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Add device and group in this Room (Add to the end for incremental update, not a full update)
- Parameters:
list
- Devices or groups listcallback
- Result callback
-
addGroup
abstract void addGroup(long groupId, IResultCallback callback)
Add group in this room.
- Parameters:
groupId
- Group identificationcallback
- Result callback
-
removeDevice
abstract void removeDevice(String devId, IResultCallback callback)
Remove device from this room.
- Parameters:
devId
- Device identificationcallback
- Result callback
-
removeGroup
abstract void removeGroup(Long groupId, IResultCallback resultCallback)
Remove group from this room.
- Parameters:
groupId
- Group identificationresultCallback
- Result callback
-
moveDevGroupListFromRoom
abstract void moveDevGroupListFromRoom(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Batch modification of rooms with groups and devices.This method can be used to move devices and groups into and out of a room in bulk(full update).
- Parameters:
list
- Devices or groups listcallback
- Result callback
-
sortDevInRoom
abstract void sortDevInRoom(List<DeviceAndGroupInRoomBean> list, IResultCallback callback)
Sorting groups or devices in a room.
- Parameters:
list
- Devices or groups listcallback
- Result callback
-
updateIcon
abstract void updateIcon(File file, IResultCallback callback)
Upload room icon.
- Parameters:
file
- Icon file.callback
- Result callback
-
-
-
-