DeviceModelRepositoryImpl

Memoizes per image name for the process lifetime: a model is a few hundred KB to a few MB and the hero re-asks on every node detail open. The flasher's answer is cached either way; a failed request is not, so a later open retries.

Constructors

Link copied to clipboard
constructor(remote: DeviceModelRemoteDataSource)

Functions

Link copied to clipboard
open suspend override fun getModel(imageFile: String): ByteArray?
Link copied to clipboard
open suspend override fun hasModel(imageFile: String): Boolean