Created
July 21, 2017 08:47
-
-
Save andrzejchm/ccaa3071a3912fac7af845f468fdfe81 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 RepositoriesListPresenter { | |
private final List<Repository> repositories; | |
... | |
public void onBindRepositoryRowViewAtPosition(int position, RepositoryRowView rowView) { | |
Repository repo = repositories.get(position); | |
rowView.setStarCount(repo.getStarsCount()); | |
rowView.setTitle(repo.getTitle()); | |
} | |
public int getRepositoriesRowsCount() { | |
return repositories.size(); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment