RICPLT-2962 Preparation for subs merge
[ric-plt/submgr.git] / pkg / control / subscription.go
index 9bbe3d4..6ed3d32 100644 (file)
@@ -45,6 +45,21 @@ func (s *Subscription) String() string {
        return strconv.FormatUint(uint64(s.Seq), 10) + "/" + s.RmrEndpoint.String() + "/" + s.Meid.RanName
 }
 
+func (s *Subscription) GetSubId() uint16 {
+       s.mutex.Lock()
+       defer s.mutex.Unlock()
+       return s.Seq
+}
+
+func (s *Subscription) GetMeid() *xapp.RMRMeid {
+       s.mutex.Lock()
+       defer s.mutex.Unlock()
+       if s.Meid != nil {
+               return s.Meid
+       }
+       return nil
+}
+
 func (s *Subscription) Confirmed() {
        s.mutex.Lock()
        defer s.mutex.Unlock()