Back to project page android-rest-client.
The source code is released under:
Apache License
If you think the Android project android-rest-client 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.dg.libs.rest.callbacks; // www. ja v a2 s . c o m import com.dg.libs.rest.domain.ResponseStatus; /** * The {@link HttpCallback} interface is used for HTTP request notification. It * contains methods that describe the error if the callback fails and return * response data if the callback succeeds. * * @param <T> * Parameter that indicates which object the callback returns. It can * be of any type. */ public interface HttpCallback<T> { /** * This method shows that the callback successfully finished. It contains * response data which represents the return type of the callback. * * @param responseData * It can be of any type. */ public void onSuccess(T responseData, ResponseStatus responseStatus); /** * This method shows that the callback has failed due to server issue, no * connectivity or parser error * * @param responseStatus */ public void onHttpError(ResponseStatus responseStatus); }