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