Skip to content

Instantly share code, notes, and snippets.

@RohitSurwase
Last active March 25, 2020 13:58
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 RohitSurwase/50f329bcef7ec291e7eee36156422212 to your computer and use it in GitHub Desktop.
Save RohitSurwase/50f329bcef7ec291e7eee36156422212 to your computer and use it in GitHub Desktop.
MainViewState : ViewState example
data class MainViewState(val fetchStatus: FetchStatus, val newsList: List<NewsItem>)
sealed class FetchStatus {
object Fetching : FetchStatus()
object Fetched : FetchStatus()
object NotFetched : FetchStatus()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment