RadioConfigRepositoryImpl

open class RadioConfigRepositoryImpl(nodeDB: NodeRepository, channelSetDataSource: SwitchingChannelSetDataSource, localConfigDataSource: LocalConfigDataSource, moduleConfigDataSource: ModuleConfigDataSource, radioInterfaceService: RadioInterfaceService) : RadioConfigRepository(source)

Class responsible for radio configuration data. Combines access to nodeDB, ChannelSet, LocalConfig&LocalModuleConfig.

Constructors

Link copied to clipboard
constructor(nodeDB: NodeRepository, channelSetDataSource: SwitchingChannelSetDataSource, localConfigDataSource: LocalConfigDataSource, moduleConfigDataSource: ModuleConfigDataSource, radioInterfaceService: RadioInterfaceService)

Properties

Link copied to clipboard
open override val channelSetFlow: Flow<ChannelSet>

Flow representing the ChannelSet data store.

Link copied to clipboard
open override val deviceProfileFlow: Flow<DeviceProfile>

Flow representing the combined DeviceProfile protobuf.

Link copied to clipboard
open override val deviceUIConfigFlow: Flow<DeviceUIConfig?>
Link copied to clipboard
open override val fileManifestFlow: Flow<List<FileInfo>>
Link copied to clipboard
open override val localConfigFlow: Flow<LocalConfig>

Flow representing the LocalConfig data store.

Link copied to clipboard
open override val loraRegionPresetMapFlow: Flow<LoRaRegionPresetMap?>
Link copied to clipboard
open override val moduleConfigFlow: Flow<LocalModuleConfig>

Flow representing the LocalModuleConfig data store.

Functions

Link copied to clipboard
open suspend override fun clearChannelSet()

Clears the ChannelSet data in the data store.

Link copied to clipboard
open suspend override fun clearLocalConfig()

Clears the LocalConfig data in the data store.

Link copied to clipboard
open suspend override fun clearLocalModuleConfig()

Clears the LocalModuleConfig data in the data store.

Link copied to clipboard
open suspend override fun reconcileConversations()
Link copied to clipboard
open suspend override fun replaceAllSettings(settingsList: List<ChannelSettings>)

Replaces the ChannelSettings list with a new settingsList.

Link copied to clipboard
open suspend override fun setLocalConfig(config: Config)

Updates LocalConfig from each Config oneOf.

Link copied to clipboard
open suspend override fun setLocalModuleConfig(config: ModuleConfig)

Updates LocalModuleConfig from each ModuleConfig oneOf.

Link copied to clipboard
open suspend override fun updateChannelSet(settingsList: List<ChannelSettings>?, loraConfig: Config.LoRaConfig?)
Link copied to clipboard
open suspend override fun updateChannelSettings(channel: Channel)

Updates the ChannelSettings list with the provided channel and returns the index of the admin channel after the update (if not found, returns 0).