| 638 | } |
| 639 | |
| 640 | boolean execute(Context context, EntityMessage message, boolean browsed, String html) throws JSONException, IOException { |
| 641 | boolean executed = _execute(context, message, browsed, html); |
| 642 | if (this.id != null && executed) { |
| 643 | DB db = DB.getInstance(context); |
| 644 | db.rule().applyRule(id, new Date().getTime()); |
| 645 | } |
| 646 | return executed; |
| 647 | } |
| 648 | |
| 649 | private boolean _execute(Context context, EntityMessage message, boolean browsed, String html) throws JSONException, IllegalArgumentException, IOException { |
| 650 | JSONObject jaction = new JSONObject(action); |