Ready to test in Fab

This commit is contained in:
2023-06-03 19:05:08 -07:00
parent 1f5deedc73
commit 2c38ecb399
46 changed files with 1159 additions and 347 deletions

View File

@ -0,0 +1,10 @@
using Barcode.Host.Shared.KeyboardMouse;
namespace Barcode.Host.Shared.Models.Stateless;
public interface IAggregateInputReader
{
event InputReader.RaiseKeyPress OnKeyPress;
}

View File

@ -0,0 +1,14 @@
namespace Barcode.Host.Shared.Models.Stateless;
public interface ILastScanController<T>
{
enum Action : int
{
Get = 0
}
static string GetRouteName() => nameof(ILastScanController<T>)[1..^10];
T GetScan();
}

View File

@ -0,0 +1,15 @@
using Barcode.Host.Shared.DataModels;
using Barcode.Host.Shared.KeyboardMouse;
namespace Barcode.Host.Shared.Models.Stateless;
public interface ILastScanService
{
void Clear();
int GetCount();
Result<string> GetScan();
void Add(EventCode eventCode, char @char);
List<(EventCode, char)> IncludeEventCodes();
}

View File

@ -0,0 +1,10 @@
namespace Barcode.Host.Shared.Models.Stateless;
public interface ILinuxGroupManager
{
Task<bool> IsInInputGroup();
Task RebootSystem(string password);
Task AddUserToInputGroup(string password);
}

View File

@ -0,0 +1,10 @@
namespace Barcode.Host.Shared.Models.Stateless;
public interface ISerialService
{
void Open();
void Close();
void SerialPortWrite(int count, string raw);
}