Created
April 17, 2019 07:57
-
-
Save krzdabrowski/fc98e8f7f719b39dbc08c17109bfe91e 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
class RocketViewModel(private val repository: RocketRepository) : BaseViewModel<Rocket>() { | |
private lateinit var rocketList: LiveData<List<Rocket>> | |
override fun getDataFromRetrofit(): LiveData<List<Rocket>> { | |
rocketList = repository.loadData() | |
return rocketList | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment