Last active
April 27, 2018 09:27
-
-
Save CesarValiente/db5b71f33975c4dd6ff12e7caa931f26 to your computer and use it in GitHub Desktop.
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
enum class Navigation { | |
ITEMS_LIST, | |
EDIT_ITEM | |
} | |
data class ItemsListScreen( | |
val items: List<Item> = emptyList()) | |
data class EditItemScreen(val currentItem: Item = Item()) | |
data class State( | |
val itemsListScreen: ItemsListScreen = ItemsListScreen(), | |
val editItemScreen: EditItemScreen = EditItemScreen(), | |
val navigation: Navigation = Navigation.ITEMS_LIST) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment