IDevMangerComponent

Properties

Link copied to clipboard
abstract val deviceList: LiveData<List<Device>>

缓存的设备列表,查询后更新

Link copied to clipboard

缓存的产品列表 调用queryProductList会更新到最新 调用queryDeviceListqueryDevice会确保有效

Functions

Link copied to clipboard
abstract suspend fun queryDevice(deviceId: String): GWResult<Device>

查询单个设备信息

Link copied to clipboard
abstract suspend fun queryDeviceCacheFirst(deviceId: String): GWResult<Device>

查询单个设备信息 缓存优先

Link copied to clipboard
abstract suspend fun queryDeviceList(): GWResult<List<Device>>

查询更新设备列表

Link copied to clipboard
abstract suspend fun queryDeviceListCacheFirst(): GWResult<List<Device>>

查询更新设备列表,如果已经有缓存,则直接返回缓存

Link copied to clipboard
abstract suspend fun queryProductList(): GWResult<List<ProductInfo>>

查询更新支持的产品列表

Link copied to clipboard

查询更新支持的产品列表,如果已经有缓存,则直接返回缓存