Skip to content

Instantly share code, notes, and snippets.

@lucanicoletti
Created May 29, 2019 08:55
Show Gist options
  • Save lucanicoletti/355ea66af341eee7dc9cf3111feeead9 to your computer and use it in GitHub Desktop.
Save lucanicoletti/355ea66af341eee7dc9cf3111feeead9 to your computer and use it in GitHub Desktop.
sealed class MVIViewState {
object Loading: MVIViewState()
class Error(val reason: String): MVIViewState()
class Success(val result: String): MVIViewState()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment