Add o2dms api endpoint
[pti/o2.git] / o2common / adapter / notifications.py
diff --git a/o2common/adapter/notifications.py b/o2common/adapter/notifications.py
new file mode 100644 (file)
index 0000000..4c49c1b
--- /dev/null
@@ -0,0 +1,20 @@
+# pylint: disable=too-few-public-methods
+import abc
+from o2ims import config
+
+
+SMO_O2_ENDPOINT = config.get_smo_o2endpoint()
+
+
+class AbstractNotifications(abc.ABC):
+    @abc.abstractmethod
+    def send(self, message):
+        raise NotImplementedError
+
+
+class SmoO2Notifications(AbstractNotifications):
+    def __init__(self, smoO2Endpoint=SMO_O2_ENDPOINT):
+        self.smoO2Endpoint = smoO2Endpoint
+
+    def send(self, message):
+        pass