mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
44 lines
1.6 KiB
C#
44 lines
1.6 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? ipAddressOrHostname => _printer.ipAddressOrHostname;
|
|
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? hostname { get; set; }
|
|
public string? model { get; set; }
|
|
public string? location { get; set; }
|
|
public string ipAddress { get; set; } = null!;
|
|
}
|
|
public class AddPrinter
|
|
{
|
|
public string name { get; set; } = null!;
|
|
public string? ipAddressOrHostname { get; set; }
|
|
public int countPrintedAllTime { get; set; }
|
|
public string? oidForQueryCountPrintedAllTime { get; set; }
|
|
public int printTypeId { get; set; }
|
|
public string manufacturerName { get; set; } = null!;
|
|
public string modelName { get; set; } = null!;
|
|
public int connectionTypeId { get; set; }
|
|
public List<string> cartridgeArticleNames { get; set; } = null!;
|
|
public string locationName { 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;
|
|
}
|
|
}
|