blob: 69f64ccc8a18eb8feffa8409e0e579332ec30c74 [file] [log] [blame]
ss412gde190682019-10-24 09:29:26 +03001package models
2
3import (
4 "e2mgr/enums"
5 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
6)
7
8type ResourceStatusPayload struct {
9 NodeType entities.Node_Type `json:"nodeType"`
10 MessageDirection enums.MessageDirection `json:"messageDirection"`
11}
12
13func NewResourceStatusPayload(nodeType entities.Node_Type, messageDirection enums.MessageDirection) *ResourceStatusPayload {
14 return &ResourceStatusPayload{
15 NodeType: nodeType,
16 MessageDirection: messageDirection,
17 }
18}