Mercurial > libervia-backend
comparison libervia/backend/bridge/pb.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 | 4b842c1fb686 |
children | a8a0fa678ce2 |
comparison
equal
deleted
inserted
replaced
4129:51744ad00a42 | 4130:02f0adc745c6 |
---|---|
191 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) | 191 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) |
192 | 192 |
193 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): | 193 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): |
194 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) | 194 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) |
195 | 195 |
196 def notification_deleted(self, id, profile): | |
197 self.send_signal("notification_deleted", id, profile) | |
198 | |
199 def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile): | |
200 self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile) | |
201 | |
196 def param_update(self, name, value, category, profile): | 202 def param_update(self, name, value, category, profile): |
197 self.send_signal("param_update", name, value, category, profile) | 203 self.send_signal("param_update", name, value, category, profile) |
198 | 204 |
199 def presence_update(self, entity_jid, show, priority, statuses, profile): | 205 def presence_update(self, entity_jid, show, priority, statuses, profile): |
200 self.send_signal("presence_update", entity_jid, show, priority, statuses, profile) | 206 self.send_signal("presence_update", entity_jid, show, priority, statuses, profile) |