mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
17 lines
689 B
C#
17 lines
689 B
C#
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(); }
|
|
}
|
|
}
|