Source code for src.notification.notification_base

from abc import ABC, abstractmethod
from typing import Dict
from src.core.checker import Recipient


[docs] class NotificationBase(ABC):
[docs] @abstractmethod def render_content(self, name: str, template_file: str, extra_info: Dict) -> str: pass
[docs] @abstractmethod async def send(self, recipient: Recipient, content: str, days_until: int, age: int): pass