Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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