12 lines
253 B
Python
12 lines
253 B
Python
|
|
from abc import ABC, abstractmethod
|
||
|
|
|
||
|
|
|
||
|
|
class EmailProvider(ABC):
|
||
|
|
@abstractmethod
|
||
|
|
def send(self, to: str, subject: str, html_body: str) -> None: ...
|
||
|
|
|
||
|
|
|
||
|
|
class SMSProvider(ABC):
|
||
|
|
@abstractmethod
|
||
|
|
def send(self, to: str, text: str) -> None: ...
|