-
public interface ISmartCacheManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ISmartCacheManager.Relation
public interface
ISmartCacheManager.Entity
-
Method Summary
Modifier and Type Method Description abstract ISmartCacheManager.Entity
entity()
abstract ISmartCacheManager.Relation
relation()
abstract void
setTag(String tag)
Set tag, this tag will be prefix of all the IDeviceCache's keyThe default tag is "DEFAULT" abstract String
getTag()
abstract void
onDestroy()
abstract boolean
addDevice(Array<DeviceRespBean> deviceArray)
abstract boolean
removeDevice(String devId)
abstract DeviceRespBean
getDeviceRespBean(String devId)
abstract IDeviceProperty
getDevice(String devId)
abstract List<IDeviceProperty>
getAllDevice()
abstract boolean
addGroup(Array<GroupRespBean> groupArray)
abstract boolean
removeGroup(String groupId)
abstract GroupRespBean
getGroupRespBean(String groupId)
abstract IGroupProperty
getGroupBean(String groupId)
abstract boolean
addBlueMesh(Array<BlueMeshBean> meshArray)
abstract boolean
removeBlueMesh(String meshId)
abstract IBlueMeshProperty
getBlueMesh(String meshId)
abstract boolean
addSigMesh(Array<SigMeshBean> meshArray)
abstract boolean
removeSigMesh(String meshId)
abstract ISigMeshProperty
getSigMesh(String meshId)
abstract boolean
addProduct(Array<ProductBean> productArray)
abstract boolean
removeProduct(String productId)
abstract ProductBean
getProduct(String productId)
abstract boolean
addDeviceIntoGroup(String groupId, Array<String> deviceId)
abstract boolean
removeDeviceFromGroup(String groupId, Array<String> deviceId)
abstract Set<String>
getDeviceIdListByGroupId(String groupId)
abstract List<IDeviceProperty>
getDeviceListByGroupId(String groupId)
abstract boolean
addDeviceIntoMesh(String meshId, Array<String> deviceId)
abstract boolean
removeDeviceFromMesh(String meshId, Array<String> deviceId)
abstract Set<String>
getDeviceIdListByMeshId(String meshId)
abstract List<IDeviceProperty>
getDeviceListByMeshId(String meshId)
abstract boolean
addGroupIntoMesh(String meshId, Array<String> groupId)
abstract boolean
removeGroupFromMesh(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)
-
-
-
-