Reimplement notification system on base of new calendar system
Possible Triggers:
- Calendar event created (e. g. extra lesson, event, whatever → regular lessons have to be excluded)
- Calendar event changed (
⬆ ) - Calendar event deleted (
⬆ ) - Calendar event created which amends something (e. g. substitution, supervision substitution)
- Calendar event changed which amends something (
⬆ ) - Calendar event deleted which amended something (
⬆ )
This ultimately leads to track all LessonEvent stuff and exclude those events which represent regular lessons.
Notifications shall be send if
- a new extra lesson, event, substitution, supervision substitution whatever is created (no earlier than a certain point x before this event → scheduled notification)
- one of those events changed (only if initial notification has been sent, otherwise scheduled initial notification has to be updated)
- one of those events was deleted (only if initial notification has been sent, otherwise scheduled initial notification has to be deleted)
The calendar event should have some kind of API for custom notifications where Chronos can add some extra logic for the notifications.