Last-Modified: Mon, 03 Aug 2026 21:42:28 GMT Expires: Thu, 31 Jul 2036 21:42:28 GMT Events « Tango.FSE.Common « FSE « Visual_Studio « Software - Tango - Twine softwares
aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Events
ModeNameSize
-rw-r--r--IEventsProvider.cs1212logstatsplain
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR.Common;

namespace Tango.PMR
{
    /// <summary>
    /// Represents a Tango message.
    /// </summary>
    public interface ITangoMessage
    {
        /// <summary>
        /// Gets the container that will encapsulate the actual PMR message.
        /// </summary>
        MessageContainer Container { get; set; }

        /// <summary>
        /// Gets or sets the PMR message type.
        /// </summary>
        MessageType Type { get; set; }

        /// <summary>
        /// Serializes the Tango message to byte array.
        /// </summary>
        /// <returns></returns>
        byte[] ToBytes();

        /// <summary>
        /// Serializes the Tango message to byte array representing a serialized JSON object of this Tango message.
        /// </summary>
        /// <returns></returns>
        byte[] ToJsonBytes();
    }
}