ServerConfigurationRepositoryImpl

internal class ServerConfigurationRepositoryImpl(val remoteDataSource: ServerConfigurationDataSource.Remote, val localDataSource: ServerConfigurationDataSource.Local, val preferenceManager: PreferenceManager, val authorizationStore: AuthorizationStore) : ServerConfigurationRepository(source)

Implements ServerConfigurationRepository behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(remoteDataSource: ServerConfigurationDataSource.Remote, localDataSource: ServerConfigurationDataSource.Local, preferenceManager: PreferenceManager, authorizationStore: AuthorizationStore)

Properties

Link copied to clipboard

Exposes the authorizationStore value used by the SDAI data layer.

Link copied to clipboard

Exposes the localDataSource value used by the SDAI data layer.

Link copied to clipboard

Exposes the preferenceManager value used by the SDAI data layer.

Link copied to clipboard

Exposes the remoteDataSource value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun fetchAndGetConfiguration(): ServerConfiguration

Loads SDAI data through fetchAndGetConfiguration.

Link copied to clipboard
open suspend override fun fetchConfiguration()

Loads SDAI data through fetchConfiguration.

Link copied to clipboard
open suspend override fun getConfiguration(): ServerConfiguration

Loads SDAI data through getConfiguration.

Link copied to clipboard
open suspend override fun updateConfiguration(configuration: ServerConfiguration)

Performs the SDAI side effect handled by updateConfiguration.