Skip to content

Instantly share code, notes, and snippets.

@patrickcousins
Created April 12, 2018 04:07
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 patrickcousins/c6c2a61ec1c9da2ac141684c5b347f3c to your computer and use it in GitHub Desktop.
Save patrickcousins/c6c2a61ec1c9da2ac141684c5b347f3c to your computer and use it in GitHub Desktop.
sealed class SignInResult {
   data class Success(val token: String) : SignInResult()
   data class TwoFactorAuth(val token: String) : SignInResult()
   data class Fail(val token: String) : SignInResult()
   data class RetrySocial(val errorMessage: String) : SignInResult()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment