Skip to content

Instantly share code, notes, and snippets.

@MauricioTRP
Created May 25, 2025 05:23
Show Gist options
  • Save MauricioTRP/275008add389d5644a4b4c600c4b72c0 to your computer and use it in GitHub Desktop.
Save MauricioTRP/275008add389d5644a4b4c600c4b72c0 to your computer and use it in GitHub Desktop.
Organize Actions, Events, Composables and ViewModel on presentation layer
sealed interface ActivitiesAction {
data object OnSearchClick: ActivitiesAction
data class OnActivityClick(val activity: Activity) : ActivitiesAction
}
sealed interface RegisterEvent {
data object RegistrationSuccess : RegisterEvent
data class Error(val error: String) : RegisterEvent
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment