Skip to content

Instantly share code, notes, and snippets.

@paulocns
Created June 28, 2019 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulocns/b707aaf146bf9f3b65a2fa2baac11d86 to your computer and use it in GitHub Desktop.
Save paulocns/b707aaf146bf9f3b65a2fa2baac11d86 to your computer and use it in GitHub Desktop.
fun onRestResult(response:Response){
if (response.data != null){
showItensOnScreen(response.data)
}else{
showError()
}
}
fun showItensOnScreen(model:RestModel){
livedataName.value = model.name
livedataLastName.value = model.lastName
livedataAddress.value = model.address
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment