SHARE
TWEET

Untitled

a guest Jan 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package id.ihwan.aac.viewmodel
  2.  
  3. import androidx.databinding.ObservableField
  4. import androidx.lifecycle.ViewModel
  5. import id.ihwan.aac.model.Movie
  6.  
  7. class ItemMovieViewModel(model: Movie): ViewModel() {
  8.     var title: ObservableField<String> = ObservableField()
  9.     var overview: ObservableField<String> = ObservableField()
  10.     var poster: ObservableField<String> = ObservableField()
  11.     var date: ObservableField<String> = ObservableField()
  12.  
  13.  
  14.     init {
  15.         title.set(model.title)
  16.         overview.set(model.overview)
  17.         poster.set(model.poster_path)
  18.         date.set(model.release_date)
  19.  
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top