Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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