Guest User

Untitled

a guest
Jun 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class PostListViewModel:BaseViewModel(){
  2. // ...
  3.  
  4. val loadingVisibility: MutableLiveData<Int> = MutableLiveData()
  5.  
  6. // ...
  7.  
  8. private fun onRetrievePostListStart(){
  9. loadingVisibility.value = View.VISIBLE
  10. }
  11.  
  12. private fun onRetrievePostListFinish(){
  13. loadingVisibility.value = View.GONE
  14. }
  15.  
  16. private fun onRetrievePostListSuccess(){
  17.  
  18. }
  19.  
  20. private fun onRetrievePostListError(){
  21.  
  22. }
  23. }
Add Comment
Please, Sign In to add comment