sync R3 content from Azure
[ric-plt/e2mgr.git] / E2Manager / models / notification_request.go
index 4f3cf96..a5a3a37 100644 (file)
@@ -21,8 +21,18 @@ import "time"
 
 type NotificationRequest struct {
        RanName       string
-       Len               int
+       Len           int
        Payload       []byte
-       StartTime         time.Time
-       TransactionId string
+       StartTime     time.Time
+       TransactionId []byte
+}
+
+func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte) *NotificationRequest {
+       return &NotificationRequest{
+               ranName,
+               len(payload),
+               payload,
+               startTime,
+               transactionId,
+       }
 }