Created
June 20, 2020 22:14
-
-
Save Garyfimo/06bc010a5fce7c1b9c2082e63b9bd207 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
interface EvaluadorExpresionUseCase { | |
suspend fun evaluarExpresion(expresion: String): ResultadoEvaluacion<Exception, String> | |
} |
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 EvaluadorUseCaseImpl( | |
private val validarUseCase: ValidadorUseCase, | |
private val evaluadorExpresionUseCase: EvaluadorExpresionUseCase | |
) : EvaluadorUseCase { | |
override suspend fun evaluar(expresion: String): ResultadoEvaluacion<Exception, String> { | |
TODO("Not yet implemented") | |
} | |
} |
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
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