Last active
March 25, 2020 13:58
-
-
Save RohitSurwase/50f329bcef7ec291e7eee36156422212 to your computer and use it in GitHub Desktop.
MainViewState : ViewState example
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
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