Last active
August 5, 2021 07:56
-
-
Save catalinghita8/3dc6bc7535f592faec77d3e9a82281e7 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
class FoodCategoriesContract { | |
sealed class Event : ViewEvent { | |
data class CategorySelection(val categoryName: String) : Event() | |
} | |
data class State(val categories: List<FoodItem> = listOf(), val isLoading: Boolean = false) : ViewState | |
sealed class Effect : ViewSideEffect { | |
object ToastDataWasLoaded : Effect() | |
sealed class Navigation : Effect() { | |
data class ToCategoryDetails(val categoryName: String) : Navigation() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment