Fix: add missing methods in decorator
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 19s
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 19s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package decorator;
|
||||
|
||||
import entities.Notification;
|
||||
import notificationsDecorations.NotificationDecoration;
|
||||
|
||||
public abstract class BaseDecorator {
|
||||
protected Notification notification;
|
||||
@@ -9,5 +10,17 @@ public abstract class BaseDecorator {
|
||||
this.notification = notification;
|
||||
}
|
||||
|
||||
public void transitionState() {
|
||||
notification.transitionState();
|
||||
}
|
||||
|
||||
public void setKoState() {
|
||||
notification.setKoState();
|
||||
}
|
||||
|
||||
public void addDecoration(NotificationDecoration decoration) {
|
||||
notification.addDecoration(decoration);
|
||||
}
|
||||
|
||||
public abstract String getContent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user