JavaFX/Interfaces/Callback.java

21 lines
441 B
Java

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