Package 

Interface IThingRoom


  • 
    public interface IThingRoom
    
                        

    Provides the ability to operate in the family room dimension.

    • Method Detail

      • updateRoom

         abstract void updateRoom(String name, IResultCallback callback)

        Modify room name.

        Parameters:
        name - New name of the room
        callback - Result callback
      • addDevice

         abstract void addDevice(String devId, IResultCallback callback)

        Add device in this room.

        Parameters:
        devId - Device identification
        callback - 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 list
        callback - Result callback
      • addGroup

         abstract void addGroup(long groupId, IResultCallback callback)

        Add group in this room.

        Parameters:
        groupId - Group identification
        callback - Result callback
      • removeDevice

         abstract void removeDevice(String devId, IResultCallback callback)

        Remove device from this room.

        Parameters:
        devId - Device identification
        callback - Result callback
      • removeGroup

         abstract void removeGroup(Long groupId, IResultCallback resultCallback)

        Remove group from this room.

        Parameters:
        groupId - Group identification
        resultCallback - 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 list
        callback - Result callback
      • updateIcon

         abstract void updateIcon(File file, IResultCallback callback)

        Upload room icon.

        Parameters:
        file - Icon file.
        callback - Result callback