Created
October 15, 2017 02:07
-
-
Save ar-android/49d33342ccd2120c643556b4ea663a95 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 HomeViewModel: ViewModel(){ | |
private var mutableJadwal = MutableLiveData<Jadwal>().apply{ value = null } | |
private var mutableLoading = MutableLiveData<Boolean>().apply{ value = false } | |
private var mutableMessage = MutableLiveData<String>().apply{ value = "" } | |
var jadwal :LiveData<Jadwal> = mutableJadwal | |
var loading :LiveData<Boolean> = mutableLoading | |
var message :LiveData<String> = mutableMessage | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment