Refactor notification service abstraction
- 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
This commit is contained in:
@@ -116,3 +116,7 @@ void User::setState(util::State status)
|
||||
{
|
||||
m_status = status;
|
||||
}
|
||||
|
||||
void User::update(Notification* notification)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -41,4 +41,5 @@ public:
|
||||
void addNotification(Notification* notification);
|
||||
void setRole(util::UserType role);
|
||||
void setState(util::State status);
|
||||
void update(Notification* notification) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user