library / io.getstream.chat.android.livedata.repository / ChannelConfigRepository

ChannelConfigRepository

class ChannelConfigRepository

The channel config repository stores all channel configs in room as well as in memory Call channelConfigRepository.load to load all configs into memory

Constructors

<init>

The channel config repository stores all channel configs in room as well as in memory Call channelConfigRepository.load to load all configs into memory

ChannelConfigRepository(channelConfigDao: ChannelConfigDao)

Properties

channelConfigDao

var channelConfigDao: ChannelConfigDao

channelConfigs

var channelConfigs: MutableMap<String, Config>

Functions

clearCache

fun clearCache(): Unit

insert

suspend fun insert(configEntities: List<ChannelConfigEntity>): Unit

insertConfigs

suspend fun insertConfigs(configs: MutableMap<String, Config>): Unit

load

suspend fun load(): Unit

select

fun select(channelType: String): Config?