Files
MediaManager/media_manager/notification/service_providers/abstractNotificationServiceProvider.py
maxDorninger efc3846860 format files
2025-07-01 16:03:17 +02:00

15 lines
465 B
Python

import abc
from media_manager.notification.schemas import MessageNotification
class AbstractNotificationServiceProvider(abc.ABC):
@abc.abstractmethod
def send_notification(self, message: MessageNotification) -> bool:
"""
Sends a notification with the given message.
:param message: The message to send in the notification.
:return: True if the notification was sent successfully, False otherwise.
"""
pass