mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-13 19:54:46 +00:00
refactor: move some files around and rename things
* renamed comm -> net to better match with standard .NET stuff * moved all comm interfaces to single files * moved all net interfaces to net/interfaces folder and adjusted namespaces accordingly
This commit is contained in:
33
src/Pepperdash Core/Net/Interfaces/ICommunicationReceiver.cs
Normal file
33
src/Pepperdash Core/Net/Interfaces/ICommunicationReceiver.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using PepperDash.Core.Interfaces;
|
||||
using System;
|
||||
|
||||
namespace PepperDash.Core.Net.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// An incoming communication stream
|
||||
/// </summary>
|
||||
public interface ICommunicationReceiver : IKeyed
|
||||
{
|
||||
/// <summary>
|
||||
/// Notifies of bytes received
|
||||
/// </summary>
|
||||
event EventHandler<GenericCommMethodReceiveBytesArgs> BytesReceived;
|
||||
/// <summary>
|
||||
/// Notifies of text received
|
||||
/// </summary>
|
||||
event EventHandler<GenericCommMethodReceiveTextArgs> TextReceived;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates connection status
|
||||
/// </summary>
|
||||
bool IsConnected { get; }
|
||||
/// <summary>
|
||||
/// Connect to the device
|
||||
/// </summary>
|
||||
void Connect();
|
||||
/// <summary>
|
||||
/// Disconnect from the device
|
||||
/// </summary>
|
||||
void Disconnect();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user