using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DDUtilityApp.TIBRENDEZVOUS.DATA;
using TIBCO.Rendezvous;

namespace DDUtilityApp.TIBRENDEZVOUS
{
    public class TibMessage : Message
    {

        public Message Message { get; private set; }

        public Header Header { get; private set; } = null;

        public Body Body { get; private set; } = null;

        public Return Return { get; private set; } = null;


        public TibMessage()
        {
        }

        public TibMessage(TibMessage message)
        {
            this.Message = message;
        }

        public void FromString(string text)
        {
            XmlMessage xmlMessage = new XmlMessage(text);
        }

    }

    public class Header
    {

        public string MessageName { get; set; } = string.Empty;

        public string TransationID { get; set; } = string.Empty;

        public string SendSubjectName { get; set; } = string.Empty;

        public string ReplySubjectName {  get; set; } = string.Empty;

    }

    public class Body
    {

    }

    public class Return
    {

        public string ReturnCode { get; set; } = "0";

        public string ReturnMessage { get; set; } = string.Empty;

    }

}

