[RICPLT-213] Increment version to 4.0.3
[ric-plt/e2mgr.git] / E2Manager / models / rmr_message.go
index ef102c4..1971b1e 100644 (file)
 // 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
-}