-
public interface IHomeCacheManager
The cache manager of the home relationship.
-
-
Method Summary
Modifier and Type Method Description abstract void
putHomeBean(long homeId)
Add Family Relationships. abstract void
putHomeBean(HomeBean bean)
Add Family Relationships. abstract HomeBean
getHomeBean(long homeId)
Get home bean by id. abstract void
removeDevice(String devId)
Remove device by id. abstract void
removeGroup(long groupId)
Remove group by id. abstract void
removeMesh(String meshId)
Remove mesh by id. abstract void
addMeshToHome(long homeId, String meshId)
Add mesh network to the home. abstract void
removeHome(long homeId)
Remove home. abstract void
removeRoom(long roomId)
Remove room. abstract void
removeDevFromGroup(long groupId, String devId)
Remove a device from a group. abstract void
removeDevFromRoom(long roomId, String devId)
Remove a device from a room. abstract void
removeGroupFromRoom(long roomId, long groupId)
Remove a group from a room. abstract void
addDevToHome(long homeId, String devId)
Add a device to the home. abstract void
addDevToRoom(long roomId, String devId)
Add a device to the room. abstract void
addDevToMesh(String meshId, String devId)
Add a device to the mesh network. abstract void
addGroupToMesh(String meshId, long groupId)
Add a group to the mesh network. abstract void
addDevToGroup(long groupId, String devId)
Add a device to a group. abstract void
addRoomToHome(long homeId, long roomId)
Add a room to the home. abstract void
addRoomToHome(long homeId, RoomBean bean)
Add a room to the home. abstract void
addGroupToRoom(long roomId, long groupId)
Add a group to the room. abstract void
addDevListToRoom(long roomId, List<String> devIds)
Add a list of devices to a room. abstract void
addGroupListToRoom(long mRoomId, List<Long> groupIds)
Add a list of groups to a room. abstract void
addGroupToHome(long homeId, long groupId)
Add a group to the home. abstract RoomBean
getRoomBeanBydevice(long homeId, String devId)
Get room bean based on device id. abstract void
updateDeviceList(long mGroupId, List<String> devIds)
Update the list of devices included in a group. abstract long
getHomeIdByMeshId(String meshId)
Get family id based on meshId。 abstract List<DeviceBean>
getDevList(long homeId)
Get a list of devices in the home. abstract GroupBean
getGroupBean(long groupId)
Get a group by id. abstract List<GroupBean>
getMeshGroupList(String meshId)
Get the list of group according to meshId. abstract List<DeviceBean>
getMeshDeviceList(String meshId)
Get the list of device according to meshId. abstract List<GroupBean>
getGroupList(long homeId)
Get a list of groups in a family. abstract List<DeviceBean>
getRoomDeviceList(long roomId)
Get a list of devices in a room. abstract List<GroupBean>
getRoomGroupList(long roomId)
Get a list of groups in a room. abstract List<RoomBean>
getHomeRoomList(long homeId)
Get a list of room in a home. abstract void
onDestroy()
On destroy. abstract RoomBean
getRoomBeanBydevice(String devId)
Get room bean based on device id. abstract RoomBean
getRoomBeanByHomeInDevice(long homeId, String devId)
Get room bean based on device id and home id. abstract long
getHomeIdByRoomId(long roomId)
Get homeid based on room id. abstract RoomBean
getRoomBeanByGroup(long groupId)
Get room bean based on group id. abstract void
replaceDevGroupToRoom(List<DeviceAndGroupInRoomBean> bizs, long mRoomId)
Move devices or groups to room. abstract void
addDevGroupToRoom(List<DeviceAndGroupInRoomBean> bizs, long mRoomId)
Move devices or groups to room. abstract void
removeGroupFromRoom(long groupId)
Remove group from room. abstract void
removeDevFromRoom(String id)
Remove device from room. abstract void
clearRelation()
clear all relation. abstract long
getHomeIdByDevId(String devId)
Get the id of the family the device is mounted on based on the device id. abstract RoomBean
getRoomBeanByRoomId(long roomId)
Search room bean by the id of room. abstract void
resetShareNode()
reset share node. abstract void
addShareDevToPersonal(String devId)
Add shared devices to personal. abstract void
addShareGroupToPersonal(long groupId)
Add shared groups to personal. abstract long
getHomeIdByGroupId(long groupId)
Get the id of the family the group is mounted on based on the group id. abstract List<DeviceBean>
getShareDeviceList()
Get the list of shared devices. abstract List<GroupBean>
getShareGroupList()
Get the list of shared groups. abstract void
removeShareGroup(long groupId)
Remove shared group by id. abstract void
removeShareDevice(String devId)
Remove shared device by id. abstract RoomBean
getRoomBeanByGroup(long homeId, long groupId)
Get room bean based on home id and group id. abstract List<BlueMeshBean>
getHomeMeshList(long homeId)
Get the list of mesh devices in the home. abstract List<SigMeshBean>
getHomeSigMeshList(long homeId)
Get the list of sigmesh devices in the home. abstract boolean
hasHomeCacheData(long homeId)
whether home data based on homeid abstract boolean
isHomeAdmin(long homeId)
get home isAdmin based on homeid abstract int
getHomeRole(long homeId)
get home role based on homeid abstract void
clearHomeRelation(long homeId)
abstract void
addMeshListToHome(long homeId, List<String> ids)
abstract void
addDevListToHome(long homeId, List<String> ids)
abstract void
addGroupListToHome(long homeId, List<String> ids)
abstract void
addDevListToRoom(String roomId, List<String> ids)
abstract void
addGroupListToRoom(String roomId, List<String> ids)
abstract void
addRoomListToHome(long homeId, List<String> ids)
abstract void
addDevListToGroup(long gId, List<String> ids)
abstract void
addDevListToMesh(String id, List<String> strings)
abstract void
addGroupListToMesh(String id, List<String> strings)
abstract void
addShareDevListToPersonal(List<String> devIds)
abstract void
addShareGroupListToPersonal(List<String> groupIds)
-
-
Method Detail
-
putHomeBean
abstract void putHomeBean(long homeId)
Add Family Relationships.
- Parameters:
homeId
- family id
-
putHomeBean
abstract void putHomeBean(HomeBean bean)
Add Family Relationships.
- Parameters:
bean
- family bean
-
getHomeBean
abstract HomeBean getHomeBean(long homeId)
Get home bean by id.
- Parameters:
homeId
- family id
-
removeDevice
abstract void removeDevice(String devId)
Remove device by id.
- Parameters:
devId
- device id
-
removeGroup
abstract void removeGroup(long groupId)
Remove group by id.
- Parameters:
groupId
- group id
-
removeMesh
abstract void removeMesh(String meshId)
Remove mesh by id.
-
addMeshToHome
abstract void addMeshToHome(long homeId, String meshId)
Add mesh network to the home.
- Parameters:
homeId
- The id of the home which you organizing mesh networks.meshId
- The id of mesh network.
-
removeHome
abstract void removeHome(long homeId)
Remove home.
- Parameters:
homeId
- The id of the home which you remove.
-
removeRoom
abstract void removeRoom(long roomId)
Remove room.
- Parameters:
roomId
- The id of the room which you remove.
-
removeDevFromGroup
abstract void removeDevFromGroup(long groupId, String devId)
Remove a device from a group.
- Parameters:
groupId
- The id of the group in which you remove a device.devId
- The id of the device which you remove from a group.
-
removeDevFromRoom
abstract void removeDevFromRoom(long roomId, String devId)
Remove a device from a room.
- Parameters:
roomId
- The id of the room in which you remove a device.devId
- The id of the device which you remove from a room.
-
removeGroupFromRoom
abstract void removeGroupFromRoom(long roomId, long groupId)
Remove a group from a room.
- Parameters:
roomId
- The id of the room in which you remove a group.groupId
- The id of the group which you remove from a room.
-
addDevToHome
abstract void addDevToHome(long homeId, String devId)
Add a device to the home.
- Parameters:
homeId
- The id of the home in which you add a device.devId
- The id of the device which you add to the room.
-
addDevToRoom
abstract void addDevToRoom(long roomId, String devId)
Add a device to the room.
- Parameters:
roomId
- The id of the room in which you add a device.devId
- The id of the device which you add to the room.
-
addDevToMesh
abstract void addDevToMesh(String meshId, String devId)
Add a device to the mesh network.
- Parameters:
meshId
- The id of the mesh network in which you add a device.devId
- The id of the device which you add to the mesh network.
-
addGroupToMesh
abstract void addGroupToMesh(String meshId, long groupId)
Add a group to the mesh network.
- Parameters:
meshId
- The id of the mesh network in which you add a group.groupId
- The id of the group which you add to the mesh network.
-
addDevToGroup
abstract void addDevToGroup(long groupId, String devId)
Add a device to a group.
- Parameters:
groupId
- The id of the group in which you add a group.devId
- The id of the device which you add to a group.
-
addRoomToHome
abstract void addRoomToHome(long homeId, long roomId)
Add a room to the home.
- Parameters:
homeId
- The id of the home in which you add a room.roomId
- The id of the room which you add to the home.
-
addRoomToHome
abstract void addRoomToHome(long homeId, RoomBean bean)
Add a room to the home.
- Parameters:
homeId
- The id of the home in which you add a room.bean
- The room which you add to the home.
-
addGroupToRoom
abstract void addGroupToRoom(long roomId, long groupId)
Add a group to the room.
- Parameters:
roomId
- The id of the room in which you add a group.groupId
- The id of the group which you add to the room.
-
addDevListToRoom
abstract void addDevListToRoom(long roomId, List<String> devIds)
Add a list of devices to a room.
- Parameters:
roomId
- The id of the room in which you add a list of devices.devIds
- The list of devices which you add to the room.
-
addGroupListToRoom
abstract void addGroupListToRoom(long mRoomId, List<Long> groupIds)
Add a list of groups to a room.
- Parameters:
mRoomId
- The id of the room in which you add a list of groups.groupIds
- The list of groups which you add to the room.
-
addGroupToHome
abstract void addGroupToHome(long homeId, long groupId)
Add a group to the home.
- Parameters:
homeId
- The id of the home in which you add a group.groupId
- The id of the group which you add to the home.
-
getRoomBeanBydevice
abstract RoomBean getRoomBeanBydevice(long homeId, String devId)
Get room bean based on device id.
- Parameters:
homeId
- The family id which you search for a room.devId
- The id of device which you search room according to.
-
updateDeviceList
abstract void updateDeviceList(long mGroupId, List<String> devIds)
Update the list of devices included in a group.
- Parameters:
mGroupId
- The id of group which you update devices.devIds
- The list of devices you update into.
-
getHomeIdByMeshId
abstract long getHomeIdByMeshId(String meshId)
Get family id based on meshId。
- Parameters:
meshId
- The id of the mesh network.
-
getDevList
abstract List<DeviceBean> getDevList(long homeId)
Get a list of devices in the home.
- Parameters:
homeId
- The id of the home you search according to.
-
getGroupBean
abstract GroupBean getGroupBean(long groupId)
Get a group by id.
- Parameters:
groupId
- The id of group you search for.
-
getMeshGroupList
abstract List<GroupBean> getMeshGroupList(String meshId)
Get the list of group according to meshId.
- Parameters:
meshId
- The id of mesh network.
-
getMeshDeviceList
abstract List<DeviceBean> getMeshDeviceList(String meshId)
Get the list of device according to meshId.
- Parameters:
meshId
- The id of a mesh network.
-
getGroupList
abstract List<GroupBean> getGroupList(long homeId)
Get a list of groups in a family.
- Parameters:
homeId
- The id of the home you searching for groups.
-
getRoomDeviceList
abstract List<DeviceBean> getRoomDeviceList(long roomId)
Get a list of devices in a room.
- Parameters:
roomId
- The id of the room you searching for devices.
-
getRoomGroupList
abstract List<GroupBean> getRoomGroupList(long roomId)
Get a list of groups in a room.
- Parameters:
roomId
- The id of the room you searching for groups.
-
getHomeRoomList
abstract List<RoomBean> getHomeRoomList(long homeId)
Get a list of room in a home.
- Parameters:
homeId
- The id of the home you searching for rooms.
-
onDestroy
abstract void onDestroy()
On destroy.
-
getRoomBeanBydevice
abstract RoomBean getRoomBeanBydevice(String devId)
Get room bean based on device id.
- Parameters:
devId
- The id of device which you want to search room according to.
-
getRoomBeanByHomeInDevice
abstract RoomBean getRoomBeanByHomeInDevice(long homeId, String devId)
Get room bean based on device id and home id.
- Parameters:
homeId
- The id of home which you want to search room according to.devId
- The id of device which you want to search room according to.
-
getHomeIdByRoomId
abstract long getHomeIdByRoomId(long roomId)
Get homeid based on room id.
-
getRoomBeanByGroup
abstract RoomBean getRoomBeanByGroup(long groupId)
Get room bean based on group id.
- Parameters:
groupId
- The id of group which you want to search room according to.
-
replaceDevGroupToRoom
abstract void replaceDevGroupToRoom(List<DeviceAndGroupInRoomBean> bizs, long mRoomId)
Move devices or groups to room.
- Parameters:
bizs
- The list of devices or groups to be moved.mRoomId
- The id of the room that you move bizs into.
-
addDevGroupToRoom
abstract void addDevGroupToRoom(List<DeviceAndGroupInRoomBean> bizs, long mRoomId)
Move devices or groups to room.
- Parameters:
bizs
- The list of devices or groups to be moved.mRoomId
- The id of the room that you move bizs into.
-
removeGroupFromRoom
abstract void removeGroupFromRoom(long groupId)
Remove group from room.
- Parameters:
groupId
- The id of the group you want to remove from the room.
-
removeDevFromRoom
abstract void removeDevFromRoom(String id)
Remove device from room.
- Parameters:
id
- The id of device you want to remove from the room.
-
clearRelation
abstract void clearRelation()
clear all relation.
-
getHomeIdByDevId
abstract long getHomeIdByDevId(String devId)
Get the id of the family the device is mounted on based on the device id.
- Parameters:
devId
- The id of the device that you search for the id of a home according to.
-
getRoomBeanByRoomId
abstract RoomBean getRoomBeanByRoomId(long roomId)
Search room bean by the id of room.
- Parameters:
roomId
- The id of the room you search for.
-
resetShareNode
abstract void resetShareNode()
reset share node.
-
addShareDevToPersonal
abstract void addShareDevToPersonal(String devId)
Add shared devices to personal.
- Parameters:
devId
- The id of shared device.
-
addShareGroupToPersonal
abstract void addShareGroupToPersonal(long groupId)
Add shared groups to personal.
- Parameters:
groupId
- The id of shared group.
-
getHomeIdByGroupId
abstract long getHomeIdByGroupId(long groupId)
Get the id of the family the group is mounted on based on the group id.
- Parameters:
groupId
- The id of the device that you search for the id of a home according to.
-
getShareDeviceList
abstract List<DeviceBean> getShareDeviceList()
Get the list of shared devices.
-
getShareGroupList
abstract List<GroupBean> getShareGroupList()
Get the list of shared groups.
-
removeShareGroup
abstract void removeShareGroup(long groupId)
Remove shared group by id.
- Parameters:
groupId
- The id of a group to be removed.
-
removeShareDevice
abstract void removeShareDevice(String devId)
Remove shared device by id.
- Parameters:
devId
- The id of a device to be removed.
-
getRoomBeanByGroup
abstract RoomBean getRoomBeanByGroup(long homeId, long groupId)
Get room bean based on home id and group id.
- Parameters:
homeId
- The id of home which you search room according to.groupId
- The id of group which you search room according to.
-
getHomeMeshList
abstract List<BlueMeshBean> getHomeMeshList(long homeId)
Get the list of mesh devices in the home.
- Parameters:
homeId
- home id
-
getHomeSigMeshList
abstract List<SigMeshBean> getHomeSigMeshList(long homeId)
Get the list of sigmesh devices in the home.
- Parameters:
homeId
- home id
-
hasHomeCacheData
abstract boolean hasHomeCacheData(long homeId)
whether home data based on homeid
- Parameters:
homeId
- the home id
-
isHomeAdmin
abstract boolean isHomeAdmin(long homeId)
get home isAdmin based on homeid
- Parameters:
homeId
- the home id
-
getHomeRole
abstract int getHomeRole(long homeId)
get home role based on homeid
- Parameters:
homeId
- the home id
-
clearHomeRelation
abstract void clearHomeRelation(long homeId)
-
addMeshListToHome
abstract void addMeshListToHome(long homeId, List<String> ids)
-
addDevListToHome
abstract void addDevListToHome(long homeId, List<String> ids)
-
addGroupListToHome
abstract void addGroupListToHome(long homeId, List<String> ids)
-
addDevListToRoom
abstract void addDevListToRoom(String roomId, List<String> ids)
-
addGroupListToRoom
abstract void addGroupListToRoom(String roomId, List<String> ids)
-
addRoomListToHome
abstract void addRoomListToHome(long homeId, List<String> ids)
-
addDevListToGroup
abstract void addDevListToGroup(long gId, List<String> ids)
-
addDevListToMesh
abstract void addDevListToMesh(String id, List<String> strings)
-
addGroupListToMesh
abstract void addGroupListToMesh(String id, List<String> strings)
-
addShareDevListToPersonal
abstract void addShareDevListToPersonal(List<String> devIds)
-
addShareGroupListToPersonal
abstract void addShareGroupListToPersonal(List<String> groupIds)
-
-
-
-