Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Created May 23, 2018 20:52
Show Gist options
  • Save javipacheco/a81e56b29cbe0f69ca6856792e4175c3 to your computer and use it in GitHub Desktop.
Save javipacheco/a81e56b29cbe0f69ca6856792e4175c3 to your computer and use it in GitHub Desktop.
ViewState
sealed class ViewState {
object IdleViewState : ViewState()
object WaitingViewState : ViewState()
object SuccessViewState : ViewState()
data class FailedViewState(val throwable: Throwable) : ViewState()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment