@Override public void onDownloadControllerRemovedPackage(FilePackage pkg) { HashMap<String, Object> dls = new HashMap<String, Object>(); dls.put("uuid", pkg.getUniqueID().getID()); fire(BASIC_EVENT.REMOVE_CONTENT.name(), null, null); fire( BASIC_EVENT.REMOVE_PACKAGE.name(), dls, BASIC_EVENT.REMOVE_PACKAGE.name() + "." + pkg.getUniqueID().getID()); flushBuffer(); }
@Override public void onDownloadControllerRemovedLinklist(List<DownloadLink> list) { fire(BASIC_EVENT.REMOVE_CONTENT.name(), null, null); final long[] ret = new long[list.size()]; int index = 0; for (DownloadLink link : list) { ret[index++] = link.getUniqueID().getID(); } HashMap<String, Object> dls = new HashMap<String, Object>(); dls.put("uuids", ret); fire(BASIC_EVENT.REMOVE_LINK.name(), dls, null); flushBuffer(); }