-
public interface IThingDeviceListManager
Created by letian on 16/6/22.
-
-
Method Summary
Modifier and Type Method Description abstract List<DeviceBean>
getDevList()
Get all device data. abstract DeviceBean
getDev(String devId)
abstract ProductBean
getProductBean(String productId)
use getProductBeanByVer(String productId,String productVer) instead abstract List<ProductBean>
getAllProductBeans()
abstract ProductBean
getProductBeanByVer(String productId, String productVer)
abstract void
putStandardProductConfig(ArrayList<ProductStandardConfig> productStandardConfigs)
abstract ProductStandardConfig
getStandardProductConfig(String productId)
abstract void
getStandardProductConfig(String productId, IThingDataCallback<ProductStandardConfig> callback)
abstract List<ProductStandardConfig>
getAllStandardProductConfigsFromLocal()
abstract List<ProductRefBean>
getAllProductRefListFromLocal()
Gets ProductRefBean list from local. abstract boolean
isStandardProduct(String productId)
abstract IStandardConverter
getStandardConverter()
abstract Object
getDp(String devId, String dpId)
Get dp data. abstract Map<String, Object>
getDps(String devId)
Get dps data abstract Map<String, SchemaBean>
getSchema(String devId)
Get device schema abstract Map<String, SchemaBean>
getDpCodeSchemaMap(String devId)
abstract void
queryDev(String devId, IThingDataCallback<DeviceBean> callback)
abstract void
queryDev(long homeId, String devId, IThingDataCallback<DeviceBean> callback)
abstract void
registerDeviceHardwareResponseListener(int frameType, IDeviceHardwareResponseListener listener)
abstract void
unRegisterDeviceHardwareResponseListener(IDeviceHardwareResponseListener listener)
abstract void
registerThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)
abstract void
unRegisterThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)
abstract <T> void
registerDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)
abstract <T> void
unRegisterDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)
abstract void
lanControl(String devId, JSONObject data, int frameType, IResultCallback resultCallback)
abstract void
queryDev(String devId)
Get single devId infomation abstract void
discoveredLanDevice(IThingSearchDeviceListener listener)
abstract void
unRegisterDiscoveredLanDeviceListener(IThingSearchDeviceListener listener)
abstract void
queryDps(String devId)
abstract void
onDestroy()
abstract void
startServerService()
abstract void
stopServerService()
abstract void
startHardwareService()
abstract void
stopHardwareService()
abstract void
justStopHardwareService()
abstract void
justCloseMqttServer()
abstract void
querySubDev(String meshId, String devId, IThingDataCallback<DeviceBean> callback)
abstract DeviceBean
getSubDeviceBeanByNodeId(String devId, String nodeId)
abstract void
addProductList(List<ProductBean> productBeans)
abstract void
addDevList(List<DeviceRespBean> deviceRespBeans)
abstract void
addDev(DeviceRespBean deviceRespBean)
abstract void
removeDevCache(String gwId)
abstract void
getSchema(List<DeviceRespBean> deviceRespBeans, IThingDataCallback<List<DeviceBean>> devCallback)
abstract void
getGroupSchema(List<GroupRespBean> groupResponseBeans, IThingDataCallback<List<GroupBean>> groupCallback)
abstract GroupBean
getGroupBean(long id)
abstract void
registerDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)
abstract void
unRegisterDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)
abstract void
registerDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)
abstract void
unRegisterDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)
abstract void
registerDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)
abstract void
unRegisterDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)
abstract void
getDeviceBizPropBeanBatch(List<String> devIds, IThingDataCallback<List<DeviceBizPropBean>> devBizPropBeansCallback)
Gets the specified device business properties batch. abstract void
putProductRefList(ArrayList<ProductRefBean> result)
abstract HashMap<String, ProductRefBean>
getProductRefList()
abstract ProductRefBean
getProductRefBean(String productId)
Gets product extra config from the cache. abstract IThingDeviceBizPropBeanListManager
getThingDeviceBizPropBeanListManager()
abstract void
putDeviceProductPanelInfoBean(String pId, ProductPanelInfoBean productPanelInfoBean)
add Product Panel info to cache. abstract ProductPanelInfoBean
getDeviceProductPanelInfoBean(String pId)
get Product Panel info from cache. abstract ProductPanelInfoBean
getDeviceProductPanelInfoBeanByVer(String pid, String pver)
get Product Panel info from cache with pid and product version abstract void
clearAllDeviceProductPanelInfo()
clear Product Panel info from cache. abstract ProductPanelInfoBean
getDeviceProductPanelInfoBeanLocal(String pId)
get Product Panel info from local cache. abstract ProductPanelInfoBean
getDeviceProductPanelInfoBeanLocalByVer(String pId, String pver)
get Product Panel info from local cache with pid and product ver abstract void
getProductPanelInfoBean(String productId, String productVer, IThingDataCallback<ProductPanelInfoBean> callback)
Gets the Panel info of one product of device. abstract void
getProductPanelInfoBean(String productId, IThingDataCallback<ProductPanelInfoBean> callback)
abstract void
getLocalAllProductIds(IThingResultCallback<List<String>> listener)
abstract void
getThingModelWithProductId(String pid, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache. abstract void
getThingModelWithProductId(String pid, String productVersion, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache. abstract void
getAuthPropertyByUUID(List<String> uuids, String code, IThingResultCallback<Map<String, Object>> callback)
get auth property by uuids abstract void
getAuthPropertyByUUID(String uuids, List<String> code, IThingResultCallback<Map<String, Object>> callback)
-
-
Method Detail
-
getDevList
abstract List<DeviceBean> getDevList()
Get all device data.
-
getDev
abstract DeviceBean getDev(String devId)
-
getProductBean
@Deprecated() abstract ProductBean getProductBean(String productId)
use getProductBeanByVer(String productId,String productVer) instead
-
getAllProductBeans
abstract List<ProductBean> getAllProductBeans()
-
getProductBeanByVer
abstract ProductBean getProductBeanByVer(String productId, String productVer)
-
putStandardProductConfig
abstract void putStandardProductConfig(ArrayList<ProductStandardConfig> productStandardConfigs)
-
getStandardProductConfig
abstract ProductStandardConfig getStandardProductConfig(String productId)
-
getStandardProductConfig
abstract void getStandardProductConfig(String productId, IThingDataCallback<ProductStandardConfig> callback)
-
getAllStandardProductConfigsFromLocal
abstract List<ProductStandardConfig> getAllStandardProductConfigsFromLocal()
-
getAllProductRefListFromLocal
abstract List<ProductRefBean> getAllProductRefListFromLocal()
Gets ProductRefBean list from local.
-
isStandardProduct
abstract boolean isStandardProduct(String productId)
-
getStandardConverter
abstract IStandardConverter getStandardConverter()
-
getDp
abstract Object getDp(String devId, String dpId)
Get dp data.
-
getDps
abstract Map<String, Object> getDps(String devId)
Get dps data
-
getSchema
abstract Map<String, SchemaBean> getSchema(String devId)
Get device schema
-
getDpCodeSchemaMap
abstract Map<String, SchemaBean> getDpCodeSchemaMap(String devId)
-
queryDev
abstract void queryDev(String devId, IThingDataCallback<DeviceBean> callback)
-
queryDev
abstract void queryDev(long homeId, String devId, IThingDataCallback<DeviceBean> callback)
-
registerDeviceHardwareResponseListener
abstract void registerDeviceHardwareResponseListener(int frameType, IDeviceHardwareResponseListener listener)
-
unRegisterDeviceHardwareResponseListener
abstract void unRegisterDeviceHardwareResponseListener(IDeviceHardwareResponseListener listener)
-
registerThingHardwareOnlineStatusListener
abstract void registerThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)
-
unRegisterThingHardwareOnlineStatusListener
abstract void unRegisterThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)
-
registerDeviceMqttListener
abstract <T> void registerDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)
-
unRegisterDeviceMqttListener
abstract <T> void unRegisterDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)
-
lanControl
abstract void lanControl(String devId, JSONObject data, int frameType, IResultCallback resultCallback)
-
queryDev
abstract void queryDev(String devId)
Get single devId infomation
- Parameters:
devId
- devise serial number
-
discoveredLanDevice
abstract void discoveredLanDevice(IThingSearchDeviceListener listener)
-
unRegisterDiscoveredLanDeviceListener
abstract void unRegisterDiscoveredLanDeviceListener(IThingSearchDeviceListener listener)
-
queryDps
abstract void queryDps(String devId)
-
onDestroy
abstract void onDestroy()
-
startServerService
abstract void startServerService()
-
stopServerService
abstract void stopServerService()
-
startHardwareService
abstract void startHardwareService()
-
stopHardwareService
abstract void stopHardwareService()
-
justStopHardwareService
abstract void justStopHardwareService()
-
justCloseMqttServer
abstract void justCloseMqttServer()
-
querySubDev
abstract void querySubDev(String meshId, String devId, IThingDataCallback<DeviceBean> callback)
-
getSubDeviceBeanByNodeId
abstract DeviceBean getSubDeviceBeanByNodeId(String devId, String nodeId)
-
addProductList
abstract void addProductList(List<ProductBean> productBeans)
-
addDevList
abstract void addDevList(List<DeviceRespBean> deviceRespBeans)
-
addDev
abstract void addDev(DeviceRespBean deviceRespBean)
-
removeDevCache
abstract void removeDevCache(String gwId)
-
getSchema
abstract void getSchema(List<DeviceRespBean> deviceRespBeans, IThingDataCallback<List<DeviceBean>> devCallback)
-
getGroupSchema
abstract void getGroupSchema(List<GroupRespBean> groupResponseBeans, IThingDataCallback<List<GroupBean>> groupCallback)
-
getGroupBean
abstract GroupBean getGroupBean(long id)
-
registerDeviceDpUpdateListener
abstract void registerDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)
-
unRegisterDeviceDpUpdateListener
abstract void unRegisterDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)
-
registerDeviceOnlineStatusListener
abstract void registerDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)
-
unRegisterDeviceOnlineStatusListener
abstract void unRegisterDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)
-
registerDeviceInfoChangeListener
abstract void registerDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)
-
unRegisterDeviceInfoChangeListener
abstract void unRegisterDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)
-
getDeviceBizPropBeanBatch
abstract void getDeviceBizPropBeanBatch(List<String> devIds, IThingDataCallback<List<DeviceBizPropBean>> devBizPropBeansCallback)
Gets the specified device business properties batch.
- Parameters:
devIds
- the device ids,maximum limit 20devBizPropBeansCallback
- the dev biz prop beans callback
-
putProductRefList
abstract void putProductRefList(ArrayList<ProductRefBean> result)
-
getProductRefList
abstract HashMap<String, ProductRefBean> getProductRefList()
-
getProductRefBean
abstract ProductRefBean getProductRefBean(String productId)
Gets product extra config from the cache.
- Parameters:
productId
- the product id
-
getThingDeviceBizPropBeanListManager
abstract IThingDeviceBizPropBeanListManager getThingDeviceBizPropBeanListManager()
-
putDeviceProductPanelInfoBean
abstract void putDeviceProductPanelInfoBean(String pId, ProductPanelInfoBean productPanelInfoBean)
add Product Panel info to cache.
-
getDeviceProductPanelInfoBean
abstract ProductPanelInfoBean getDeviceProductPanelInfoBean(String pId)
get Product Panel info from cache.
-
getDeviceProductPanelInfoBeanByVer
abstract ProductPanelInfoBean getDeviceProductPanelInfoBeanByVer(String pid, String pver)
get Product Panel info from cache with pid and product version
- Parameters:
pver
- product version
-
clearAllDeviceProductPanelInfo
abstract void clearAllDeviceProductPanelInfo()
clear Product Panel info from cache.
-
getDeviceProductPanelInfoBeanLocal
abstract ProductPanelInfoBean getDeviceProductPanelInfoBeanLocal(String pId)
get Product Panel info from local cache.
-
getDeviceProductPanelInfoBeanLocalByVer
abstract ProductPanelInfoBean getDeviceProductPanelInfoBeanLocalByVer(String pId, String pver)
get Product Panel info from local cache with pid and product ver
-
getProductPanelInfoBean
abstract void getProductPanelInfoBean(String productId, String productVer, IThingDataCallback<ProductPanelInfoBean> callback)
Gets the Panel info of one product of device.
-
getProductPanelInfoBean
abstract void getProductPanelInfoBean(String productId, IThingDataCallback<ProductPanelInfoBean> callback)
-
getLocalAllProductIds
abstract void getLocalAllProductIds(IThingResultCallback<List<String>> listener)
-
getThingModelWithProductId
abstract void getThingModelWithProductId(String pid, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache.
- Parameters:
callback
- Called when the task is finished or interrupted by an error
-
getThingModelWithProductId
abstract void getThingModelWithProductId(String pid, String productVersion, IThingDataCallback<ThingSmartThingModel> callback)
Get thing model from cloud and update cache.
- Parameters:
callback
- Called when the task is finished or interrupted by an error
-
getAuthPropertyByUUID
abstract void getAuthPropertyByUUID(List<String> uuids, String code, IThingResultCallback<Map<String, Object>> callback)
get auth property by uuids
-
getAuthPropertyByUUID
abstract void getAuthPropertyByUUID(String uuids, List<String> code, IThingResultCallback<Map<String, Object>> callback)
-
-
-
-