| 22 | print(f'priority: {self.priority} message: "{message}"') |
| 23 | |
| 24 | class SMS_Notification(Notification_Service): |
| 25 | |
| 26 | def __init__(self, priority, from_nr): |
| 27 | super().__init__(priority) |
| 28 | self.from_nr = from_nr |
| 29 | |
| 30 | def send(self, to_nr, message): |
| 31 | super().send(self.from_nr, to_nr, message) |
| 32 | print(f'sending SMS from:{self.from_nr} to:{to_nr}') |
| 33 | print(f'priority: {self.priority} message: "{message}"') |
| 34 | |
| 35 | email = Email_Notification(2, 'support@company.com') |
| 36 | email.send('customer@email.com', 'Your report is ready') |