Back to project page dw2020.
The source code is released under:
Apache License
If you think the Android project dw2020 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 net.darkwire.example.service; /* w w w . j a va2 s. com*/ import net.darkwire.example.model.FiveHundredPxPhotoContainer; /** * Created by fsiu on 3/21/14. */ public class FiveHundredPxRecentPhotosSpiceRequest extends FiveHundredPxSpiceRequest<FiveHundredPxPhotoContainer, FiveHundredPx> { private long page; private int resultPerPage; public FiveHundredPxRecentPhotosSpiceRequest(final long page, final int resultPerPage) { super(FiveHundredPxPhotoContainer.class, FiveHundredPx.class); this.page = page; this.resultPerPage = resultPerPage; } @Override public FiveHundredPxPhotoContainer loadDataFromNetwork() { return getService().getPhotos(this.page, this.resultPerPage); } @Override public Object getCacheKey() { return this.hashCode()+page+""+resultPerPage; } }