// 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
-import (
- "e2mgr/logger"
-)
+import "unsafe"
type RmrMessage struct {
MsgType int
RanName string
Payload []byte
+ XAction []byte
+ msgSrc unsafe.Pointer
}
-func NewRmrMessage(msgType int, ranName string, payload []byte) *RmrMessage {
+func NewRmrMessage(msgType int, ranName string, payload []byte, xAction []byte, msgSrc unsafe.Pointer) *RmrMessage {
return &RmrMessage{
- MsgType: msgType,
- RanName: ranName,
- Payload: payload,
+ msgType,
+ ranName,
+ payload,
+ xAction,
+ msgSrc,
}
}
-func (response RmrMessage) GetMessageAsBytes(logger *logger.Logger) []byte {
- return response.Payload
+func (m RmrMessage) GetMsgSrc() unsafe.Pointer{
+ return m.msgSrc
}