Back to project page guerrillaprose.
The source code is released under:
GNU General Public License
If you think the Android project guerrillaprose 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 de.handler.mobile.android.bachelorapp.app.api.flickr; /*from w ww . ja va 2 s. co m*/ import org.androidannotations.annotations.rest.Accept; import org.androidannotations.annotations.rest.Get; import org.androidannotations.annotations.rest.Rest; import org.androidannotations.api.rest.MediaType; import org.androidannotations.api.rest.RestClientErrorHandling; import org.springframework.core.io.Resource; import org.springframework.http.ResponseEntity; import org.springframework.http.converter.ResourceHttpMessageConverter; /** * Gets actual picture from Flickr server * considering its server location and identification * The following are the available sizes: * s kleines Quadrat 75 x 75 * q large square 150x150 * t Thumbnail, 100 an der Lngsseite * m klein, 240 an der Lngsseite * n small, 320 on longest side * - klein, 500 an der Lngsseite * z Mittel 640, 640 an der lngsten Seite * c Mittel 800, 800 an der lngsten Seite * b Gro, 1024 an der lngsten Seite* * o Originalbild, entweder JPG, GIF oder PNG, je nach Quellformat */ @Rest(converters = {ResourceHttpMessageConverter.class}) public interface FlickrPhotoRestService extends RestClientErrorHandling { @Get("https://farm{farm}.static.flickr.com/{server}/{id}_{secret}_b.jpg") @Accept(MediaType.IMAGE_JPEG) ResponseEntity<Resource> getFlickrPhoto(int farm, String server, long id, String secret); @Get("https://farm{farm}.static.flickr.com/{server}/{id}_{secret}_z.jpg") @Accept(MediaType.IMAGE_JPEG) ResponseEntity<Resource> getSmallFlickrPhoto(int farm, String server, long id, String secret); }