Last active
October 20, 2018 03:37
-
-
Save timusus/1d908d3f660b1948831c666868f36554 to your computer and use it in GitHub Desktop.
This file contains 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
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