Back to project page NearestRestaurants.
The source code is released under:
Apache License
If you think the Android project NearestRestaurants listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jiahaoliuliu.nearestrestaurants.interfaces; /*from ww w . j av a 2 s . com*/ import org.json.JSONArray; import com.jiahaoliuliu.nearestrestaurants.session.ErrorHandler.RequestStatus; /** * This class is used to implement the error completion handler. */ public interface RequestJSONCallback { /** * Method called when the operation has been finished. * @param jsonObject The JSON object returned by the server * @param extraValue Since it returns a JSON Array, there could be special data * in JSON which could be useful. It is set on the extraValue * @param requestStatus Indication of if any error happened or not */ void done(final JSONArray jsonArray, final String extraValue, final RequestStatus requestStatus); }