-
-
Save nphausg/d8ab513f232332237b0141659c489222 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GetAppConfigUseCase(private val repository: AppConfigRepository) { | |
suspend operator fun invoke() { | |
repository.getConfig( | |
onSuccess = ::save, | |
onFailure = ::logError | |
) | |
} | |
fun save(config: AppConfig) { | |
} | |
fun logError(throwable: Throwable?) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment