A service which notifies clients about an update on a SingleEvent. More...


Classes | |
| enum | NotificationEvent |
| Events clients can be notified about. More... | |
Public Member Functions | |
| NotificationService (CopaSystemContext context) | |
| Create a new instance of a notification service. More... | |
| abstract void | notifyClients (SingleEventUpdate update) |
| Notify all clients that registered for this kind of notification and for receiving this update. More... | |
| abstract void | notifyClient (NotificationEvent event, int userID) |
| Notify a specific client. More... | |
Protected Member Functions | |
| CopaSystemContext | getContext () |
| Obtain the system context. More... | |
A service which notifies clients about an update on a SingleEvent.
| unicopa.copa.server.notification.NotificationService.NotificationService | ( | CopaSystemContext | context) |
Create a new instance of a notification service.
| dbservice | the database service the notification service should use to obtain additional information |
|
protected |
|
pure virtual |
Notify a specific client.
| event | the notification event to inform about |
| userID | the recipient of the notification event |
Implemented in unicopa.copa.server.notification.EmailNotificationService, and unicopa.copa.server.notification.GoogleCloudNotificationService.
|
pure virtual |
Notify all clients that registered for this kind of notification and for receiving this update.
| update | the SingleEventUpdate to inform about |
Implemented in unicopa.copa.server.notification.EmailNotificationService, and unicopa.copa.server.notification.GoogleCloudNotificationService.
1.8.4