-
public interface ISmartCacheManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceISmartCacheManager.Relationpublic interfaceISmartCacheManager.Entity
-
Method Summary
Modifier and Type Method Description abstract ISmartCacheManager.Entityentity()abstract ISmartCacheManager.Relationrelation()abstract voidsetTag(String tag)Set tag, this tag will be prefix of all the IDeviceCache's keyThe default tag is "DEFAULT" abstract StringgetTag()abstract voidonDestroy()abstract booleanaddDevice(Array<DeviceRespBean> deviceArray)abstract booleanremoveDevice(String devId)abstract DeviceRespBeangetDeviceRespBean(String devId)abstract IDevicePropertygetDevice(String devId)abstract List<IDeviceProperty>getAllDevice()abstract booleanaddGroup(Array<GroupRespBean> groupArray)abstract booleanremoveGroup(String groupId)abstract GroupRespBeangetGroupRespBean(String groupId)abstract IGroupPropertygetGroupBean(String groupId)abstract booleanaddBlueMesh(Array<BlueMeshBean> meshArray)abstract booleanremoveBlueMesh(String meshId)abstract IBlueMeshPropertygetBlueMesh(String meshId)abstract booleanaddSigMesh(Array<SigMeshBean> meshArray)abstract booleanremoveSigMesh(String meshId)abstract ISigMeshPropertygetSigMesh(String meshId)abstract booleanaddProduct(Array<ProductBean> productArray)abstract booleanremoveProduct(String productId)abstract ProductBeangetProduct(String productId)abstract booleanaddDeviceIntoGroup(String groupId, Array<String> deviceId)abstract booleanremoveDeviceFromGroup(String groupId, Array<String> deviceId)abstract Set<String>getDeviceIdListByGroupId(String groupId)abstract List<IDeviceProperty>getDeviceListByGroupId(String groupId)abstract booleanaddDeviceIntoMesh(String meshId, Array<String> deviceId)abstract booleanremoveDeviceFromMesh(String meshId, Array<String> deviceId)abstract Set<String>getDeviceIdListByMeshId(String meshId)abstract List<IDeviceProperty>getDeviceListByMeshId(String meshId)abstract booleanaddGroupIntoMesh(String meshId, Array<String> groupId)abstract booleanremoveGroupFromMesh(String meshId, Array<String> groupId)abstract Set<String>getGroupIdListByMeshId(String meshId)abstract List<IGroupProperty>getGroupListByMeshId(String meshId)-
-
Method Detail
-
entity
abstract ISmartCacheManager.Entity entity()
-
relation
abstract ISmartCacheManager.Relation relation()
-
setTag
abstract void setTag(String tag)
Set tag, this tag will be prefix of all the IDeviceCache's keyThe default tag is "DEFAULT"
-
getTag
abstract String getTag()
-
onDestroy
abstract void onDestroy()
-
addDevice
abstract boolean addDevice(Array<DeviceRespBean> deviceArray)
-
removeDevice
abstract boolean removeDevice(String devId)
-
getDeviceRespBean
abstract DeviceRespBean getDeviceRespBean(String devId)
-
getDevice
abstract IDeviceProperty getDevice(String devId)
-
getAllDevice
abstract List<IDeviceProperty> getAllDevice()
-
addGroup
abstract boolean addGroup(Array<GroupRespBean> groupArray)
-
removeGroup
abstract boolean removeGroup(String groupId)
-
getGroupRespBean
abstract GroupRespBean getGroupRespBean(String groupId)
-
getGroupBean
abstract IGroupProperty getGroupBean(String groupId)
-
addBlueMesh
abstract boolean addBlueMesh(Array<BlueMeshBean> meshArray)
-
removeBlueMesh
abstract boolean removeBlueMesh(String meshId)
-
getBlueMesh
abstract IBlueMeshProperty getBlueMesh(String meshId)
-
addSigMesh
abstract boolean addSigMesh(Array<SigMeshBean> meshArray)
-
removeSigMesh
abstract boolean removeSigMesh(String meshId)
-
getSigMesh
abstract ISigMeshProperty getSigMesh(String meshId)
-
addProduct
abstract boolean addProduct(Array<ProductBean> productArray)
-
removeProduct
abstract boolean removeProduct(String productId)
-
getProduct
abstract ProductBean getProduct(String productId)
-
addDeviceIntoGroup
abstract boolean addDeviceIntoGroup(String groupId, Array<String> deviceId)
-
removeDeviceFromGroup
abstract boolean removeDeviceFromGroup(String groupId, Array<String> deviceId)
-
getDeviceIdListByGroupId
abstract Set<String> getDeviceIdListByGroupId(String groupId)
-
getDeviceListByGroupId
abstract List<IDeviceProperty> getDeviceListByGroupId(String groupId)
-
addDeviceIntoMesh
abstract boolean addDeviceIntoMesh(String meshId, Array<String> deviceId)
-
removeDeviceFromMesh
abstract boolean removeDeviceFromMesh(String meshId, Array<String> deviceId)
-
getDeviceIdListByMeshId
abstract Set<String> getDeviceIdListByMeshId(String meshId)
-
getDeviceListByMeshId
abstract List<IDeviceProperty> getDeviceListByMeshId(String meshId)
-
addGroupIntoMesh
abstract boolean addGroupIntoMesh(String meshId, Array<String> groupId)
-
removeGroupFromMesh
abstract boolean removeGroupFromMesh(String meshId, Array<String> groupId)
-
getGroupIdListByMeshId
abstract Set<String> getGroupIdListByMeshId(String meshId)
-
getGroupListByMeshId
abstract List<IGroupProperty> getGroupListByMeshId(String meshId)
-
-
-
-