Advertisement
Guest User

Untitled

a guest
Jun 8th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.26 KB | None | 0 0
  1.             val jsonResp = buscaPrevisao.json
  2.             val cod: Int = (jsonResp \ "cod").as[String].toInt
  3.             cod match{
  4.                 case Some(codigo) => validador.checaCodigoJson(codigo) match {
  5.                     case Left(mensagem) => {Ok.views.html.forecastIndex(usuario, Left(mensagem))}
  6.                 }
  7.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement