Feat: Add facade pattern to send notification
This commit is contained in:
@@ -20,5 +20,15 @@ public abstract class Notification {
|
||||
return this.state != NotificationState.SENT && this.state != NotificationState.READ;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pas de change state car route non linéaire. On reste sur des enum !
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public abstract void send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user