mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
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<string> 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;
|
|
}
|
|
}
|