JavaFX/Interfaces/Callback.java

21 lines
441 B
Java
Raw Normal View History

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