mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
15 lines
616 B
C#
15 lines
616 B
C#
using CartriX.Api.Mappers;
|
|
|
|
namespace CartriX.Api.DTOs.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<DTOs.Cartridge.IdAndCountPrinted> cartridgesInPrinter { get => _printer.installedCartridges.Select(c => c.ToIdAndCountPrintedDto()).ToList(); }
|
|
}
|
|
}
|