Skip to content

Instantly share code, notes, and snippets.

@Frederikos
Created March 27, 2019 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frederikos/a96b5b39d29e076783091897da2b9906 to your computer and use it in GitHub Desktop.
Save Frederikos/a96b5b39d29e076783091897da2b9906 to your computer and use it in GitHub Desktop.
public class PlaceItemViewModel {
private Context context;
private PlaceModel placeModel;
public PlaceItemViewModel(Context context, PlaceModel placeModel) {
this.context = context;
this.placeModel = placeModel;
}
public String getPlaceTitle() {
return placeModel.getTitle();
}
public String getCountVotes() {
//just stubbed value
return 10;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment