Last active
March 19, 2020 21:07
-
-
Save jraska/608cfae8a0456c5d49be6ff699ca0a02 to your computer and use it in GitHub Desktop.
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
class UsersViewModel(val navigator: Navigator) : ViewModel { | |
fun onUserClicked(user: User) { | |
// Business logic, analytics, any other compex interactions | |
navigator.startUserDetail(user.login) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment