This commit is contained in:
Hukuta committed 2026-05-15 17:54:46 +09:00
1 parent 4fbc39ca77
commit 568f360548
95 files changed
+3901 -4443

No files matched your search

+16
View File
@@ -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(); }
}
}