Add framework and apiserver
[pti/o2.git] / src / o2ims / adapter / notifications.py
1 # pylint: disable=too-few-public-methods
2 import abc
3 import smtplib
4 from o2ims import config
5
6
7 class AbstractNotifications(abc.ABC):
8     @abc.abstractmethod
9     def send(self, message):
10         raise NotImplementedError
11
12
13 SMO_O2_ENDPOINT = config.get_smo_o2endpoint()
14
15 class SmoO2Notifications(AbstractNotifications):
16     def __init__(self, smoO2Endpoint=SMO_O2_ENDPOINT):
17         self.smoO2Endpoint = smoO2Endpoint
18
19     def send(self, message):
20         pass