DeviceHardwareRepositoryImpl

Constructors

Link copied to clipboard
constructor(remoteDataSource: DeviceHardwareRemoteDataSource, localDataSource: DeviceHardwareLocalDataSource, jsonDataSource: DeviceHardwareJsonDataSource, bootloaderOtaQuirksJsonDataSource: BootloaderOtaQuirksJsonDataSource, dispatchers: CoroutineDispatchers)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun getDeviceHardwareByModel(hwModel: Int, target: String?, forceRefresh: Boolean): Result<DeviceHardware?>

Retrieves device hardware information by its model ID and optional target string.

Link copied to clipboard
open override fun observeDeviceHardware(hwModel: Int, target: String?): Flow<DeviceHardware?>

Non-blocking Flow that emits cached/bundled hardware data immediately, then refreshes from the network if stale. Safe to use inside Flow combine transforms.