This commit is contained in:
16
src/entities/SmsNotification.java
Normal file
16
src/entities/SmsNotification.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package entities;
|
||||
|
||||
import utils.SendNotificationStrategy;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user