print server with new concept

This commit is contained in:
EugeneTes
2026-01-16 12:00:24 +01:00
parent 147265358f
commit 5229cac987
30 changed files with 694 additions and 217 deletions

View File

@@ -0,0 +1,21 @@
using Inspectron.Epson.PrintServer.PrintServices;
namespace Inspectron.Epson.PrintServer.Printers;
public class PrinterWrapperFactory:IWrapperPrinterFactory
{
public IPrinter CreatePrinterFromId(byte printerId, IEpsonPrinter epsonPrinter)
{
switch (printerId)
{
case 0x13:
return new TM_U220IITranslated(epsonPrinter);
case 0x0D:
return new TM_U220IITranslated(epsonPrinter);
case 0x01:
return new TM_T30IIITranslated(epsonPrinter);
default:
throw new NotSupportedException($"Printer with ID {printerId:X2} is not supported.");
}
}
}