[Verification] Build required
Change-Id: If37fdae1c7042c56e5e9b203f781adad4c91d116
Signed-off-by: Ryszard Matuszyk <r.matuszyk@samsung.com>
}
PlatformResult NotificationManager::Remove(const picojson::object& args) {
+ int id = std::stoi(FromJson<std::string>(args, "id"));
+
+ int ret = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NONE, id);
+ if (ret != NOTIFICATION_ERROR_NONE) {
+ LoggerE("Cannot remove notification error: %d", ret);
+ return PlatformResult(ErrorCode::UNKNOWN_ERR, "Cannot remove notification error");
+ }
+
return PlatformResult(ErrorCode::NO_ERROR);
}