Back to project page libraryofalexandria.
The source code is released under:
Apache License
If you think the Android project libraryofalexandria listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package alexandria.israelferrer.com.libraryofalexandria; //from w w w . j a v a2 s .c o m import java.util.List; public class ArtWorkListPresenter implements Presenter { private final Display display; private final Model model; public ArtWorkListPresenter(Display display, Model model) { this.display = display; this.model = model; } @Override public void onCreate() { model.getArtWorks(new Callback<List<ArtWork>>() { @Override public void success(List<ArtWork> result) { display.setAdapter(result); } @Override public void failure(Exception exception) { display.showError(); } }); } }