Add the command that registers to the SMO; Make the create registration and create...
[pti/o2.git] / o2ims / domain / commands.py
index 2b2aca6..bcd6e86 100644 (file)
@@ -19,7 +19,7 @@ from dataclasses import dataclass
 # from datetime import datetime
 # from o2ims.domain.resource_type import ResourceTypeEnum
 from o2ims.domain.stx_object import StxGenericModel
-from o2ims.domain.subscription_obj import Message2SMO
+from o2ims.domain.subscription_obj import Message2SMO, RegistrationMessage
 from o2common.domain.commands import Command
 
 
@@ -33,6 +33,11 @@ class PubMessage2SMO(Command):
     data: Message2SMO
 
 
+@dataclass
+class Register2SMO(Command):
+    data: RegistrationMessage
+
+
 @dataclass
 class UpdateOCloud(UpdateStxObject):
     pass