namespace CartriX.Api.DTOs.Printer { public class List(Entities.Printer printer) { private readonly Entities.Printer _printer = printer; public int id => _printer.id; public string name => _printer.name; public string ipAddress => _printer.ipAddress; public string modelName => _printer.model.name; public int statusId => _printer.statusId; } public class Item(Entities.Printer printer) { private readonly Entities.Printer _printer = printer; public string name => _printer.name; } public class GetToAdd() { public string? name { get; set; } public string? hostname { get; set; } public string? model { get; set; } public string? location { get; set; } public string ipAddress { get; set; } = null!; public string typePrintId { get; set; } = null!; } public class AddPrinter() { public string name { get; set; } = null!; public string hostname { get; set; } = null!; public string ipAddress { get; set; } = null!; public string modelName { get; set; } = null!; public string manufacturer { get; set; } = null!; public List cartridgeArticles { get; set; } = null!; public string locationValue { get; set; } = null!; public string typePrintId { get; set; } = null!; public string oidForQueryCountPrintedAllTime { get; set; } = null!; public string countPrintedAllTime { get; set; } = null!; } public class PrintTypes(Entities.PrintType printType) { private readonly Entities.PrintType _printType = printType; public int id => _printType.id; public string name => _printType.name; } }