X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=7e3892a4f74b6ab6045c7999a579afeecd43a995;hb=5a0ce3e584481922e2fecb39b6d0eac9ce77ccbf;hp=4f3cf9650169fbc4ab657db47a0027a9c2e0bda9;hpb=07ef76dd471a0892a893c90e0ab06713aee34be1;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/notification_request.go b/E2Manager/models/notification_request.go index 4f3cf96..7e3892a 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -13,7 +13,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package models @@ -21,8 +24,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, + } +}