Android Open Source - Instabackground Near Request From Project Back to project page Instabackground .
License The source code is released under:
Apache License
If you think the Android project Instabackground listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package es.expilu.instabackground.net;
/ / f r o m w w w . j a v a 2 s . c o m
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.VolleyError;
import es.expilu.instabackground.model.Envelope;
import es.expilu.instabackground.net.event.NearRequestError;
import es.expilu.instabackground.net.event.NearRequestOk;
import es.expilu.instabackground.util.Globals;
public class NearRequest extends GsonRequest<Envelope> {
public NearRequest(double lat, double lng) {
super (Method.GET, String.format(InstagramApi.METHOD_NEAR, InstagramClient.CLIENT_ID, lat, lng),
Envelope.class, null,
new Listener<Envelope>() {
@Override
public void onResponse(Envelope response) {
Globals.getInstance().eventBus.post(new NearRequestOk(response));
}
},
new ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Globals.getInstance().eventBus.post(new NearRequestError(error));
}
});
}
}
Java Source Code List es.expilu.instabackground.activity.MainActivity.java es.expilu.instabackground.model.Caption.java es.expilu.instabackground.model.CommentsData.java es.expilu.instabackground.model.Comments.java es.expilu.instabackground.model.EnvelopeData.java es.expilu.instabackground.model.Envelope.java es.expilu.instabackground.model.From.java es.expilu.instabackground.model.Image.java es.expilu.instabackground.model.Images.java es.expilu.instabackground.model.Likes.java es.expilu.instabackground.model.Location.java es.expilu.instabackground.model.Meta.java es.expilu.instabackground.model.Position.java es.expilu.instabackground.model.User.java es.expilu.instabackground.model.UsersInPhoto.java es.expilu.instabackground.net.GsonRequest.java es.expilu.instabackground.net.InstagramApi.java es.expilu.instabackground.net.InstagramClient.java es.expilu.instabackground.net.InstagramImageRequest.java es.expilu.instabackground.net.NearRequest.java es.expilu.instabackground.net.PopularRequest.java es.expilu.instabackground.net.event.InstagramImageRequestError.java es.expilu.instabackground.net.event.InstagramImageRequestOk.java es.expilu.instabackground.net.event.NearRequestError.java es.expilu.instabackground.net.event.NearRequestOk.java es.expilu.instabackground.net.event.PopularRequestError.java es.expilu.instabackground.net.event.PopularRequestOk.java es.expilu.instabackground.net.event.RequestError.java es.expilu.instabackground.util.Fun.java es.expilu.instabackground.util.Globals.java es.expilu.instabackground.util.MyApplication.java