Created
May 12, 2017 03:12
-
-
Save CesarValiente/f77b19c8596a371890e020bbcecba41c 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
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