Implement NotificationManagementService methods
- Added concrete sendNotification() implementation declaration - Added attach() and detach() overrides for observer management - Added notify() override for notification dispatch - Removed pure virtual declarations from NotificationManagementService
This commit is contained in:
+4
-3
@@ -6,7 +6,8 @@
|
||||
class NotificationManagementService : public Subject
|
||||
{
|
||||
public:
|
||||
virtual void sendNotification(User* recipient, const std::string& title, const std::string& message) = 0;
|
||||
virtual void attach(User* user) = 0;
|
||||
virtual void detach(User* user) = 0;
|
||||
void sendNotification(User* recipient, const std::string& title, const std::string& message);
|
||||
void attach(User* user) override;
|
||||
void detach(User* user) override;
|
||||
void notify(Notification* notification) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user