Created
April 2, 2020 15:05
-
-
Save fluxtah/e26e7253eca20216505a9fa247a614e3 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
internal class HelloViewModel : ViewModel(), HelloModel { | |
val greeting: MutableLiveData<String> = MutableLiveData() | |
override fun loadGreeting() { | |
greeting.value = greetings.random() | |
} | |
} | |
private val greetings = listOf( | |
"Hello", "Yo!", "Big up!", "Greetings!", "Hiya!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment