Skip to content

Instantly share code, notes, and snippets.

@Garyfimo
Created June 20, 2020 22:14
Show Gist options
  • Save Garyfimo/06bc010a5fce7c1b9c2082e63b9bd207 to your computer and use it in GitHub Desktop.
Save Garyfimo/06bc010a5fce7c1b9c2082e63b9bd207 to your computer and use it in GitHub Desktop.
interface EvaluadorExpresionUseCase {
suspend fun evaluarExpresion(expresion: String): ResultadoEvaluacion<Exception, String>
}
class EvaluadorUseCaseImpl(
private val validarUseCase: ValidadorUseCase,
private val evaluadorExpresionUseCase: EvaluadorExpresionUseCase
) : EvaluadorUseCase {
override suspend fun evaluar(expresion: String): ResultadoEvaluacion<Exception, String> {
TODO("Not yet implemented")
}
}
interface ValidadorUseCase {
suspend fun validar(expresion: String): ResultadoEvaluacion<Exception, Boolean>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment