sync from Azure to LF
Change-Id: I9daba071938fd021b277d8d17d3c0822d23ac100
Signed-off-by: ss412g <shuky.har-noy@intl.att.com>
diff --git a/E2Manager/models/resource_status_payload.go b/E2Manager/models/resource_status_payload.go
new file mode 100644
index 0000000..69f64cc
--- /dev/null
+++ b/E2Manager/models/resource_status_payload.go
@@ -0,0 +1,18 @@
+package models
+
+import (
+ "e2mgr/enums"
+ "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
+)
+
+type ResourceStatusPayload struct {
+ NodeType entities.Node_Type `json:"nodeType"`
+ MessageDirection enums.MessageDirection `json:"messageDirection"`
+}
+
+func NewResourceStatusPayload(nodeType entities.Node_Type, messageDirection enums.MessageDirection) *ResourceStatusPayload {
+ return &ResourceStatusPayload{
+ NodeType: nodeType,
+ MessageDirection: messageDirection,
+ }
+}