using PepperDash.Core.Interfaces;
using System;
namespace PepperDash.Core.Net.Interfaces
{
///
/// An incoming communication stream
///
public interface ICommunicationReceiver : IKeyed
{
///
/// Notifies of bytes received
///
event EventHandler BytesReceived;
///
/// Notifies of text received
///
event EventHandler TextReceived;
///
/// Indicates connection status
///
bool IsConnected { get; }
///
/// Connect to the device
///
void Connect();
///
/// Disconnect from the device
///
void Disconnect();
}
}