Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val jsonResp = buscaPrevisao.json
- val cod: Int = (jsonResp \ "cod").as[String].toInt
- cod match{
- case Some(codigo) => validador.checaCodigoJson(codigo) match {
- case Left(mensagem) => {Ok.views.html.forecastIndex(usuario, Left(mensagem))}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement