mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 07:54:11 +02:00
15 lines
470 B
Python
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.
|
|
"""
|