Created
June 28, 2019 21:08
-
-
Save paulocns/b707aaf146bf9f3b65a2fa2baac11d86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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