Skip to content

Instantly share code, notes, and snippets.

@CesarValiente
Last active April 27, 2018 09:27
Show Gist options
  • Save CesarValiente/db5b71f33975c4dd6ff12e7caa931f26 to your computer and use it in GitHub Desktop.
Save CesarValiente/db5b71f33975c4dd6ff12e7caa931f26 to your computer and use it in GitHub Desktop.
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