package Interfaces; import org.json.JSONObject; public interface Callback { /* (1) Called when success state reached * * @response The fetched response * ---------------------------------------------------------*/ public void onSuccess(JSONObject response); /* (2) Called when success state cannot be reached * ---------------------------------------------------------*/ public void onError(String errDesc); }