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