Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Created May 23, 2018 20:56
Show Gist options
  • Save javipacheco/14acafccb3ecf58279ae5bc4bde5d35c to your computer and use it in GitHub Desktop.
Save javipacheco/14acafccb3ecf58279ae5bc4bde5d35c to your computer and use it in GitHub Desktop.
Commands
sealed class Commands {
// Main
data class MainNavigationCommand(val item: MainNavigationState) : Commands()
// News
data class NewsGetItemsCommand(val limit: Int = 10) : Commands()
data class ReloadNewsCommand(val limit: Int = 10) : Commands()
// Navigation
object NavigationLoadNewsCommand : Commands()
data class NavigationGoToUrlCommand(val url: String) : Commands()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment