mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
asdfasfd
This commit is contained in:
1 parent
4fbc39ca77
commit
568f360548
95 files changed
+3901
-4443
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using Entities = CartriX.Api.Entities;
|
||||
using CartriX.Shared.DTOs.Cartridge;
|
||||
using System.Reflection;
|
||||
|
||||
namespace CartriX.Api.Printer.DTOs
|
||||
{
|
||||
public class PrinterItemList(Entities.Printer printer)
|
||||
{
|
||||
private readonly Entities.Printer _printer = printer;
|
||||
public int id { get => _printer.id; }
|
||||
public string name { get => _printer.name; }
|
||||
public Entities.ConnetctionType connetctionType { get => _printer.connetctionType; }
|
||||
public string modelName { get => _printer.model.name; }
|
||||
public List<CartridgeIdAndCountprintedDto> cartridgesInPrinter { get => _printer.installedCartridges.Select(c => c.IdAndCountprinted()).ToList(); }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user