connectWithApiKey

private suspend fun connectWithApiKey(getConfigurationUseCase: GetConfigurationUseCase, setServerConfigurationUseCase: SetServerConfigurationUseCase, testApiKey: suspend () -> Boolean, updateConfiguration: (Configuration) -> Configuration): Result<Unit>(source)

Executes the connectWithApiKey step in the SDAI domain layer.

Return

Result produced by connectWithApiKey.

Author

Dmitriy Moroz

Parameters

getConfigurationUseCase

get configuration use case value consumed by the API.

setServerConfigurationUseCase

set server configuration use case value consumed by the API.

testApiKey

test api key value consumed by the API.

updateConfiguration

update configuration value consumed by the API.