Created
March 27, 2019 11:10
-
-
Save Frederikos/a96b5b39d29e076783091897da2b9906 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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