ChannelSetDataSource

class ChannelSetDataSource(channelSetStore: DataStore<ChannelSet>)(source)

Class that handles saving and retrieving ChannelSet data.

Constructors

Link copied to clipboard
constructor(channelSetStore: DataStore<ChannelSet>)

Properties

Link copied to clipboard
val channelSetFlow: Flow<ChannelSet>

Functions

Link copied to clipboard
suspend fun clearChannelSet()
Link copied to clipboard
suspend fun replaceAllSettings(settingsList: List<ChannelSettings>)

Replaces all ChannelSettings in a single atomic operation.

Link copied to clipboard
suspend fun setLoraConfig(config: Config.LoRaConfig)
Link copied to clipboard
suspend fun updateChannelSettings(channel: Channel)

Updates the ChannelSettings list with the provided channel.