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