Back to project page cube-sdk.
The source code is released under:
Apache License
If you think the Android project cube-sdk 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 in.srain.cube.request; /*w w w . jav a 2s.c o m*/ public interface IRequest<T> { public RequestData getRequestData(); public void onRequestSuccess(T data); public void onRequestFail(FailData failData); /** * send request */ public void send(); public void cancelRequest(); public T onDataFromServer(String data); /** * filter the origin data or convert its structure. * * @param jsonData * @return */ T processOriginDataFromServer(JsonData jsonData); }