mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
d
This commit is contained in:
1 parent
568f360548
commit
c4182ec609
100 files changed
+2052
-3518
No files matched your search
@@ -1,16 +1,14 @@
|
||||
using Entities = CartriX.Api.Entities;
|
||||
using CartriX.Shared.DTOs.Cartridge;
|
||||
using System.Reflection;
|
||||
using CartriX.Api.Mappers;
|
||||
|
||||
namespace CartriX.Api.Printer.DTOs
|
||||
namespace CartriX.Api.DTOs.Printer
|
||||
{
|
||||
public class PrinterItemList(Entities.Printer printer)
|
||||
public class ItemList(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(); }
|
||||
public List<DTOs.Cartridge.IdAndCountPrinted> cartridgesInPrinter { get => _printer.installedCartridges.Select(c => c.ToIdAndCountPrintedDto()).ToList(); }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user