Skip to content

Instantly share code, notes, and snippets.

@cbedoy
Last active March 24, 2021 18:17
Show Gist options
  • Select an option

  • Save cbedoy/58b0df311f12fc168659002b0d843ca8 to your computer and use it in GitHub Desktop.

Select an option

Save cbedoy/58b0df311f12fc168659002b0d843ca8 to your computer and use it in GitHub Desktop.
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