56c5c2dc70
- Removed observer map from Subject base class - Removed notify() from Subject interface - Made NotificationManagementService abstract with pure virtual methods - Added static observer maps to notification service implementations - Added attach() and detach() overrides in inventory, payment, and service management services - Added update() override in User model for observer pattern support - Updated notification method declarations with override specifiers
14 lines
373 B
C++
14 lines
373 B
C++
#pragma once
|
|
#include <string>
|
|
#include "Subject.h"
|
|
#include "User.h"
|
|
|
|
class NotificationManagementService : public Subject
|
|
{
|
|
public:
|
|
virtual ~NotificationManagementService() = default;
|
|
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;
|
|
};
|