Created
December 5, 2021 13:35
-
-
Save enyciaa/ac704ed2395ec0972364d97e696c13ba to your computer and use it in GitHub Desktop.
screen-template-1
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
sealed interface ScreenState { | |
object Loading : ScreenState | |
data class Error( | |
val message: String | |
) : ScreenState | |
object Loaded : ScreenState | |
} | |
data class ScreenCallToActionViewState( | |
val buttonText: String, | |
) | |
data class ScreenToolbarViewState( | |
val title: String, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment