-
public interface IThingHomeDataLocalCache
Home data local cache.
-
-
Method Summary
Modifier and Type Method Description abstract List<HomeBean>
getHomeListLocalCache()
get home list from local cache. abstract ArrayList<DeviceAndGroupInHomeBean>
getHidedDeviceGroupListCache(Long homeId)
get the cache list of device and group with hide tag abstract Boolean
isHidedDeviceGroupByCache(Long homeId, String bizId)
get the cache list of device and group with hide tag abstract void
saveHomeDevToLocalCache(long homeId, DeviceRespBean devId, ProductBean bean)
Save device to local cache. abstract void
getStandardProductConfigList(long homeId, IThingDataCallback<ArrayList<ProductStandardConfig>> callback)
Gets standard product config list by homeID. abstract void
getProductRefList(ArrayList<String> pids, long homeId, IThingDataCallback<ArrayList<ProductRefBean>> callback)
Gets ProductRefBean list. abstract void
clearHomeCache()
clear home data list -
-
Method Detail
-
getHomeListLocalCache
abstract List<HomeBean> getHomeListLocalCache()
get home list from local cache.
-
getHidedDeviceGroupListCache
abstract ArrayList<DeviceAndGroupInHomeBean> getHidedDeviceGroupListCache(Long homeId)
get the cache list of device and group with hide tag
-
isHidedDeviceGroupByCache
abstract Boolean isHidedDeviceGroupByCache(Long homeId, String bizId)
get the cache list of device and group with hide tag
-
saveHomeDevToLocalCache
abstract void saveHomeDevToLocalCache(long homeId, DeviceRespBean devId, ProductBean bean)
Save device to local cache.
Usually called when a new device is added.
- Parameters:
homeId
- The id of the home which one you want to add this device.devId
- The bean of a device which you want to add.bean
- The product bean of the device you want to add.
-
getStandardProductConfigList
@Deprecated() abstract void getStandardProductConfigList(long homeId, IThingDataCallback<ArrayList<ProductStandardConfig>> callback)
Gets standard product config list by homeID.
- Parameters:
homeId
- the home idcallback
- the callback
-
getProductRefList
@Deprecated() abstract void getProductRefList(ArrayList<String> pids, long homeId, IThingDataCallback<ArrayList<ProductRefBean>> callback)
Gets ProductRefBean list.
- Parameters:
pids
- the product idshomeId
- the home idcallback
- the callback
-
clearHomeCache
abstract void clearHomeCache()
clear home data list
-
-
-
-