X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fsubscription_obj.py;h=49447d0f228f497e7b2f41976988697922a8f8d3;hb=f7ef52a5b4ead0472b1b5828471b28c88d2a0aea;hp=dc3145f70ab431f92547b65da128a63c1623a72d;hpb=b37a7d8e36bd9fdf862cb1aad29f9a29052e725f;p=pti%2Fo2.git diff --git a/o2ims/domain/subscription_obj.py b/o2ims/domain/subscription_obj.py index dc3145f..49447d0 100644 --- a/o2ims/domain/subscription_obj.py +++ b/o2ims/domain/subscription_obj.py @@ -45,13 +45,19 @@ class Message2SMO(Serializer): self.updatetime = updatetime +class RegistrationMessage(Serializer): + def __init__(self, eventtype: NotificationEventEnum, id: str = '') -> None: + self.notificationEventType = eventtype + self.id = id + + @dataclass class EventState(): Initial = 0 - NotInstalled = 1 + # NotInstalled = 1 Installing = 2 Installed = 3 Updating = 4 Uninstalling = 5 Abnormal = 6 - Deleted = 7 + Deleting = 7