// 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.
-//
-package models
+// This source code is part of the near-RT RIC (RAN Intelligent Controller)
+// platform project (RICP).
+
-import (
- "e2mgr/logger"
-)
+package models
type RmrMessage struct {
MsgType int
RanName string
Payload []byte
+ XAction []byte
}
-func NewRmrMessage(msgType int, ranName string, payload []byte) *RmrMessage {
+func NewRmrMessage(msgType int, ranName string, payload []byte, xAction []byte) *RmrMessage {
return &RmrMessage{
MsgType: msgType,
RanName: ranName,
Payload: payload,
+ XAction: xAction,
}
}
-
-func (response RmrMessage) GetMessageAsBytes(logger *logger.Logger) []byte {
- return response.Payload
-}