-
public interface IThingDeviceListManagerCreated by letian on 16/6/22.
-
-
Method Summary
Modifier and Type Method Description abstract List<DeviceBean>getDevList()Get all device data. abstract DeviceBeangetDev(String devId)abstract ProductBeangetProductBean(String productId)use getProductBeanByVer(String productId,String productVer) instead abstract List<ProductBean>getAllProductBeans()abstract ProductBeangetProductBeanByVer(String productId, String productVer)abstract voidputStandardProductConfig(ArrayList<ProductStandardConfig> productStandardConfigs)abstract ProductStandardConfiggetStandardProductConfig(String productId)abstract voidgetStandardProductConfig(String productId, IThingDataCallback<ProductStandardConfig> callback)abstract List<ProductStandardConfig>getAllStandardProductConfigsFromLocal()abstract List<ProductRefBean>getAllProductRefListFromLocal()Gets ProductRefBean list from local. abstract booleanisStandardProduct(String productId)abstract IStandardConvertergetStandardConverter()abstract ObjectgetDp(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 voidqueryDev(String devId, IThingDataCallback<DeviceBean> callback)abstract voidqueryDev(long homeId, String devId, IThingDataCallback<DeviceBean> callback)abstract voidregisterDeviceHardwareResponseListener(int frameType, IDeviceHardwareResponseListener listener)abstract voidunRegisterDeviceHardwareResponseListener(IDeviceHardwareResponseListener listener)abstract voidregisterThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)abstract voidunRegisterThingHardwareOnlineStatusListener(IThingHardwareOnlineStatusListener listener)abstract <T> voidregisterDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)abstract <T> voidunRegisterDeviceMqttListener(Class<T> a, IDeviceMqttProtocolListener<T> listener)abstract voidlanControl(String devId, JSONObject data, int frameType, IResultCallback resultCallback)abstract voidqueryDev(String devId)Get single devId infomation abstract voiddiscoveredLanDevice(IThingSearchDeviceListener listener)abstract voidunRegisterDiscoveredLanDeviceListener(IThingSearchDeviceListener listener)abstract voidqueryDps(String devId)abstract voidonDestroy()abstract voidstartServerService()abstract voidstopServerService()abstract voidstartHardwareService()abstract voidstopHardwareService()abstract voidjustStopHardwareService()abstract voidjustCloseMqttServer()abstract voidquerySubDev(String meshId, String devId, IThingDataCallback<DeviceBean> callback)abstract DeviceBeangetSubDeviceBeanByNodeId(String devId, String nodeId)abstract voidaddProductList(List<ProductBean> productBeans)abstract voidaddDevList(List<DeviceRespBean> deviceRespBeans)abstract voidaddDev(DeviceRespBean deviceRespBean)abstract voidremoveDevCache(String gwId)abstract voidgetSchema(List<DeviceRespBean> deviceRespBeans, IThingDataCallback<List<DeviceBean>> devCallback)abstract voidgetGroupSchema(List<GroupRespBean> groupResponseBeans, IThingDataCallback<List<GroupBean>> groupCallback)abstract GroupBeangetGroupBean(long id)abstract voidregisterDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)abstract voidunRegisterDeviceDpUpdateListener(IThingDeviceDpChangeListener listener)abstract voidregisterDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)abstract voidunRegisterDeviceOnlineStatusListener(IThingDeviceOnlineStatusListener listener)abstract voidregisterDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)abstract voidunRegisterDeviceInfoChangeListener(IThingDeviceInfoChangeListener listener)abstract voidgetDeviceBizPropBeanBatch(List<String> devIds, IThingDataCallback<List<DeviceBizPropBean>> devBizPropBeansCallback)Gets the specified device business properties batch. abstract voidputProductRefList(ArrayList<ProductRefBean> result)abstract HashMap<String, ProductRefBean>getProductRefList()abstract ProductRefBeangetProductRefBean(String productId)Gets product extra config from the cache. abstract IThingDeviceBizPropBeanListManagergetThingDeviceBizPropBeanListManager()abstract voidputDeviceProductPanelInfoBean(String pId, ProductPanelInfoBean productPanelInfoBean)add Product Panel info to cache. abstract ProductPanelInfoBeangetDeviceProductPanelInfoBean(String pId)get Product Panel info from cache. abstract ProductPanelInfoBeangetDeviceProductPanelInfoBeanByVer(String pid, String pver)get Product Panel info from cache with pid and product version abstract voidclearAllDeviceProductPanelInfo()clear Product Panel info from cache. abstract ProductPanelInfoBeangetDeviceProductPanelInfoBeanLocal(String pId)get Product Panel info from local cache. abstract ProductPanelInfoBeangetDeviceProductPanelInfoBeanLocalByVer(String pId, String pver)get Product Panel info from local cache with pid and product ver abstract voidgetProductPanelInfoBean(String productId, String productVer, IThingDataCallback<ProductPanelInfoBean> callback)Gets the Panel info of one product of device. abstract voidgetProductPanelInfoBean(String productId, IThingDataCallback<ProductPanelInfoBean> callback)abstract voidgetLocalAllProductIds(IThingResultCallback<List<String>> listener)abstract voidgetThingModelWithProductId(String pid, IThingDataCallback<ThingSmartThingModel> callback)Get thing model from cloud and update cache. abstract voidgetThingModelWithProductId(String pid, String productVersion, IThingDataCallback<ThingSmartThingModel> callback)Get thing model from cloud and update cache. abstract voidgetAuthPropertyByUUID(List<String> uuids, String code, IThingResultCallback<Map<String, Object>> callback)get auth property by uuids abstract voidgetAuthPropertyByUUID(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)
-
-
-
-