Guest User

Untitled

a guest
Nov 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class SearchRepositoriesViewModel(private val repository: GithubRepository) : ViewModel() {
  2.  
  3. private val queryLiveData = MutableLiveData<String>()
  4.  
  5. /**
  6. * Search a repository based on a query string.
  7. */
  8. fun searchRepo(queryString: String) {
  9. queryLiveData.postValue(queryString)
  10. }
  11.  
  12. }
Add Comment
Please, Sign In to add comment