mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-12 19:24:43 +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:
27
src/Pepperdash Core/Net/Interfaces/IBasicCommunication.cs
Normal file
27
src/Pepperdash Core/Net/Interfaces/IBasicCommunication.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace PepperDash.Core.Net.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// This delegate defines handler for IBasicCommunication status changes
|
||||
/// </summary>
|
||||
/// <param name="comm">Device firing the status change</param>
|
||||
/// <param name="status"></param>
|
||||
public delegate void GenericCommMethodStatusHandler(IBasicCommunication comm, eGenericCommMethodStatusChangeType status);
|
||||
|
||||
/// <summary>
|
||||
/// Represents a device that uses basic connection
|
||||
/// </summary>
|
||||
public interface IBasicCommunication : ICommunicationReceiver
|
||||
{
|
||||
/// <summary>
|
||||
/// Send text to the device
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
void SendText(string text);
|
||||
|
||||
/// <summary>
|
||||
/// Send bytes to the device
|
||||
/// </summary>
|
||||
/// <param name="bytes"></param>
|
||||
void SendBytes(byte[] bytes);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user