Skip to content

Instantly share code, notes, and snippets.

@rodolfoizidoro
Created May 7, 2019 10:14
Show Gist options
  • Save rodolfoizidoro/1f1e46b029956c3828317e1f7f496d57 to your computer and use it in GitHub Desktop.
Save rodolfoizidoro/1f1e46b029956c3828317e1f7f496d57 to your computer and use it in GitHub Desktop.
private val mMovies = MutableLiveData<List<Movies>>()
private val mLoading = MutableLiveData<Boolean>()
private val mError = MutableLiveData<Thowable>()
val movies: LiveData<List<Movies>> get() = mMovies
val loading: LiveData<Boolean> get() = mLoading
val error: LiveData<Thowable> get() = mError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment