This class holds all notification services available to the system. More...
Public Member Functions | |
void | notifyClients (SingleEventUpdate update) |
For each notification service, use their 'notifyClient' interface with this update to inform clients about this update. More... | |
void | notifyClient (NotificationEvent event, int userID) |
For each notification service, use their 'notifyClient' interface with this notification event to inform a client about an event. More... | |
void | addNotificationService (NotificationService service) |
Add a new notification service to the notifier. More... | |
This class holds all notification services available to the system.
If notifications should be sent, it is enough to pass it to the notifier and it delegates the task to the different notification services.
void unicopa.copa.server.notification.Notifier.addNotificationService | ( | NotificationService | service) |
Add a new notification service to the notifier.
service |
void unicopa.copa.server.notification.Notifier.notifyClient | ( | NotificationEvent | event, |
int | userID | ||
) |
For each notification service, use their 'notifyClient' interface with this notification event to inform a client about an event.
event | the notification event to inform about |
userID | the ID of the user whom to inform |
void unicopa.copa.server.notification.Notifier.notifyClients | ( | SingleEventUpdate | update) |
For each notification service, use their 'notifyClient' interface with this update to inform clients about this update.
update | the SingleEventUpdate to inform about |