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
|
class NotificationManagementService : public Subject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void sendNotification(User* recipient, const std::string& title, const std::string& message) = 0;
|
void sendNotification(User* recipient, const std::string& title, const std::string& message);
|
||||||
virtual void attach(User* user) = 0;
|
void attach(User* user) override;
|
||||||
virtual void detach(User* user) = 0;
|
void detach(User* user) override;
|
||||||
|
void notify(Notification* notification) override;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user