Skip to content

Instantly share code, notes, and snippets.

@CesarValiente
Created May 12, 2017 03:12
Show Gist options
  • Save CesarValiente/f77b19c8596a371890e020bbcecba41c to your computer and use it in GitHub Desktop.
Save CesarValiente/f77b19c8596a371890e020bbcecba41c to your computer and use it in GitHub Desktop.
sealed class Action
sealed class UpdateAction : Action() {
data class ReorderItemsAction(val items: List<Item>) : UpdateAction()
data class UpdateItemAction(val localId: String,
val text: String,
val color: Color) : UpdateAction()
}
sealed class DeleteAction : Action() {
data class DeleteItemAction(val localId: String) : DeleteAction()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment