Files
MediaManager/media_manager/notification/service_providers/abstract_notification_service_provider.py
Marcel Hellwig acd883df21 ruff: enable PIE lint
this just removes needless pass or ...
2026-01-05 19:30:42 +01:00

15 lines
470 B
Python

from abc import ABC, abstractmethod
from media_manager.notification.schemas import MessageNotification
class AbstractNotificationServiceProvider(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.
"""