MqttRootsRepositoryImpl

class MqttRootsRepositoryImpl(remoteDataSource: MqttRootsRemoteDataSource, localDataSource: MqttRootsLocalDataSource, assetReader: BundledAssetReader, json: Json) : MqttRootsRepository(source)

Caches the MQTT root directory from the Meshtastic API (/resource/mqttRoots), seeded from the bundled mqtt_roots.json snapshot, in MaintenanceUf2RepositoryImpl's seed-then-refresh shape: reconcile carries no TTL of its own, and each topic finder ViewModel calls it once when created.

Constructors

Link copied to clipboard
constructor(remoteDataSource: MqttRootsRemoteDataSource, localDataSource: MqttRootsLocalDataSource, assetReader: BundledAssetReader, json: Json)

Functions

Link copied to clipboard
open suspend override fun getSnapshot(): MqttRootsResponse
Link copied to clipboard
open suspend override fun reconcile()