[RICPLT-1739] Add Unit Tests for Load Information
[ric-plt/e2mgr.git] / E2Manager / models / notification_request.go
index 4f3cf96..ebbeeb6 100644 (file)
@@ -21,8 +21,18 @@ import "time"
 
 type NotificationRequest struct {
        RanName       string
-       Len               int
+       Len           int
        Payload       []byte
-       StartTime         time.Time
+       StartTime     time.Time
        TransactionId string
 }
+
+func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId string) *NotificationRequest {
+       return &NotificationRequest{
+               ranName,
+               len(payload),
+               payload,
+               startTime,
+               transactionId,
+       }
+}