Back to project page sms-smap-gateway.
The source code is released under:
GNU General Public License
If you think the Android project sms-smap-gateway 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 com.android.smap.api.requests; /*from w ww. j a va2 s .c o m*/ import com.android.smap.GatewayApp; import com.android.smap.api.models.Status; import com.android.smap.utils.UriBuilder; import com.android.volley.Response.ErrorListener; import com.android.volley.Response.Listener; import com.google.gson.reflect.TypeToken; /** * Vanilla sample request, get status of server * * @author Matt Witherow * */ public class StatusRequest extends ApiRequest<Status> { public StatusRequest(Listener<Status> listener, ErrorListener errorListener) { super(Method.GET, generateUrl(), listener, errorListener); } private static String generateUrl() { return new UriBuilder() .scheme(SCHEME_HTTP) .encodedAuthority( GatewayApp.getAppConfig().getRequestEndpoint()) .appendEncodedPath(API_TOKEN).build().toString(); } @Override protected TypeToken<Status> getGsonTypeToken() { return new TypeToken<Status>() {}; } }