diff libervia/backend/core/main.py @ 4130:02f0adc745c6

core: notifications implementation, first draft: add a new table for notifications, and methods/bridge methods to manipulate them.
author Goffi <goffi@goffi.org>
date Mon, 16 Oct 2023 17:29:31 +0200
parents 10b6ad569157
children 3b95704ab777
line wrap: on
line diff
--- a/libervia/backend/core/main.py	Wed Oct 18 15:30:07 2023 +0200
+++ b/libervia/backend/core/main.py	Mon Oct 16 17:29:31 2023 +0200
@@ -221,6 +221,10 @@
         self.bridge.register_method("image_resize", self._image_resize)
         self.bridge.register_method("image_generate_preview", self._image_generate_preview)
         self.bridge.register_method("image_convert", self._image_convert)
+        self.bridge.register_method("notification_add", self.memory._add_notification)
+        self.bridge.register_method("notifications_get", self.memory._get_notifications)
+        self.bridge.register_method("notification_delete", self.memory._delete_notification)
+        self.bridge.register_method("notifications_expired_clean", self.memory._notifications_expired_clean)
 
 
         await self.memory.initialise()