2017-11-15 15:13:07 +00:00
|
|
|
package Interfaces;
|
|
|
|
|
2017-11-15 21:53:52 +00:00
|
|
|
import org.json.JSONObject;
|
|
|
|
|
2017-11-15 15:13:07 +00:00
|
|
|
public interface Callback {
|
|
|
|
|
2017-11-19 15:30:22 +00:00
|
|
|
/* (1) Called when success state reached
|
|
|
|
*
|
|
|
|
* @response<JSONObject> The fetched response
|
|
|
|
*
|
|
|
|
---------------------------------------------------------*/
|
2017-11-15 21:53:52 +00:00
|
|
|
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);
|
|
|
|
|
2017-11-15 15:13:07 +00:00
|
|
|
}
|