using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR;
using Tango.PMR.Common;
namespace Tango.Transport
{
///
/// Represents a Transport message encoder capable of encoding or decoding Tango Messages.
///
public interface ITransportEncoder
{
///
/// Encodes the specified tango message.
///
/// The tango message.
///
byte[] Encode(ITangoMessage tangoMessage);
///
/// Decodes the specified data to an .
///
/// The data.
///
ITangoMessage Decode(byte[] data);
///
/// Decodes only the part of the message.
///
/// The data.
///
MessageContainer DecodeContainer(byte[] data);
}
}