io.github.ishaileshmishra.callback.ResultCallBack Maven / Gradle / Ivy
package io.github.ishaileshmishra.callback;
import io.github.ishaileshmishra.model.Error;
import okhttp3.ResponseBody;
import retrofit2.Response;
import java.io.IOException;
/**
* ResultCallBack interface.
*
* @author shaileshmishra
* @version $Id: $Id
*/
public interface ResultCallBack {
/**
* onSuccess.
*
* @param body a {@link retrofit2.Response} object
* @throws java.io.IOException if any.
*/
void onSuccess(Response body) throws IOException;
/**
* onFailure.
*
* @param error a {@link io.github.ishaileshmishra.model.Error} object
*/
void onFailure(Error error);
}