Esempio n. 1
0
 public static void sendSuccessMsg(CallbackContext callbackContext) {
   JSONObject jsonObject = new JSONObject();
   Tools.addProperty(jsonObject, Tools.MES, Tools.SUCCESS);
   callbackContext.success(jsonObject);
 }
Esempio n. 2
0
 public static void sendErrorMsg(CallbackContext callbackContext) {
   JSONObject jsonObject = new JSONObject();
   Tools.addProperty(jsonObject, Tools.MES, Tools.ERROR);
   callbackContext.error(jsonObject);
 }