mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-14 19:45:31 -04:00
This PR adds proper notification on call notifications coming from single number. To that end following changes have been introduced: * extension of Notification DB record with contact_id filed * use of `ContactRecordInterface` in `NotificationsRecordInterface` * extension of `Increment` query to require `PhoneNumber::View` * multiple minor changes on path from creating/handling `NotificationsRecord` to displaying respective notification.
Virtual database query interface.
Instead manually creating switch cases for each possible query logic, create one
virtual query interface and push querying logic to db (where it's implemented)
- db::service accepts
GetByQuery(service, database, query) - it routes it to proper database on request (instead manually copying interfaces)
- db implements querying logics and returns response