Add the command that registers to the SMO; Make the create registration and create...
[pti/o2.git] / o2ims / domain / events.py
index a4a2375..6f81a84 100644 (file)
@@ -15,6 +15,7 @@
 # pylint: disable=too-few-public-methods
 from dataclasses import dataclass
 from datetime import datetime
+
 from o2common.domain.events import Event
 from o2ims.domain.subscription_obj import NotificationEventEnum
 
@@ -45,3 +46,9 @@ class ResourceChanged(Event):
     resourcePoolId: str
     notificationEventType: NotificationEventEnum
     updatetime: datetime.now()
+
+
+@dataclass
+class RegistrationChanged(Event):
+    id: str
+    updatetime: datetime.now()