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