Skip to content

Instantly share code, notes, and snippets.

@timusus
Last active October 20, 2018 03:37
Show Gist options
  • Save timusus/1d908d3f660b1948831c666868f36554 to your computer and use it in GitHub Desktop.
Save timusus/1d908d3f660b1948831c666868f36554 to your computer and use it in GitHub Desktop.
call.enqueue {
override fun onResult(result: Result) {
when(result){
is Success -> {
// Handle Success
}
is Failure -> {
presentAlert(
title = "Login Failed",
message = result.error.userDescription()
)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment