Back to project page Volley-Ball.
The source code is released under:
MIT License
If you think the Android project Volley-Ball 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.volley; // w ww.ja v a2 s . c om import com.siu.android.volleyball.BallResponse; import com.siu.android.volleyball.request.NetworkRequest; /** * Not finished */ public class CompatRequest<T> extends NetworkRequest<T> { private Request<T> mRequest; public CompatRequest(Request request) { super(request.getMethod(), request.getUrl(), null); } @Override protected BallResponse<T> parseBallNetworkResponse(NetworkResponse networkResponse) { Response<T> response = mRequest.parseNetworkResponse(networkResponse); return response.isSuccess() ? BallResponse.success(response.result, response.cacheEntry) : BallResponse.<T>error(response.error); } }