Last active
March 24, 2021 18:17
-
-
Save cbedoy/58b0df311f12fc168659002b0d843ca8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 class NewServiceIntent { | |
| object LoadProducts: NewServiceIntent() | |
| data class AddProduct(val product: Product): NewServiceIntent() | |
| } | |
| sealed class NewServiceState { | |
| object ShowLoader: NewServiceState() | |
| data class ReloadProducts(val products: List<Product>): NewServiceState() | |
| data class ReloadCart(val cartList: List<Product>): NewServiceState() | |
| object HideLoader: NewServiceState() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment