Refactor: Make the Notification not send themself but rather create their content

This commit is contained in:
Namu
2025-10-06 09:08:51 +02:00
parent 2ad93f4b91
commit 5a97669665
4 changed files with 23 additions and 25 deletions

View File

@@ -7,10 +7,4 @@ public class SmsNotification extends Notification {
public SmsNotification(String content, User user, SendNotificationStrategy strategy) {
super(content, user, strategy);
}
@Override
public void send() {
if (isSendable())
strategy.send(user.id() + " Sms: " + user.name() + " " + content);
}
}