Created
May 25, 2025 05:23
-
-
Save MauricioTRP/275008add389d5644a4b4c600c4b72c0 to your computer and use it in GitHub Desktop.
Organize Actions, Events, Composables and ViewModel on presentation layer
This file contains hidden or 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 interface ActivitiesAction { | |
data object OnSearchClick: ActivitiesAction | |
data class OnActivityClick(val activity: Activity) : ActivitiesAction | |
} |
This file contains hidden or 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 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