From 7f7cf609086d39630219fbf61f14126dd39f7a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=97=D0=B5=D0=BB?= =?UTF-8?q?=D1=82=D1=8B=D0=BD=D1=8C?= Date: Fri, 29 May 2026 23:50:34 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D1=81?= =?UTF-8?q?=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20"Printer"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Расписал каждое свойство за что оно отвечает --- CartriX.Api/Entities/Printer.cs | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 CartriX.Api/Entities/Printer.cs diff --git a/CartriX.Api/Entities/Printer.cs b/CartriX.Api/Entities/Printer.cs new file mode 100644 index 0000000..703270b --- /dev/null +++ b/CartriX.Api/Entities/Printer.cs @@ -0,0 +1,65 @@ +using static CartriX.Shared.Classes.ApiRoutes; + +namespace CartriX.Api.Entities +{ + public class Printer + { + /// + /// Идентификатор + /// + public int id { get; set; } + /// + /// Название принтера + /// + public required string name { get; set; } + /// + /// IP Адрес или имя хоста + /// + public string? ipAddressOrHostname { get; set; } + /// + /// Количество распечатаных принтером страниц за все время + /// + public required int countPrintedAllTime { get; set; } + /// + /// OID Маршрут для получения количества распечатаных принтером страниц за все время + /// + public string? oidForQueryCountPrintedAllTime { get; set; } + /// + /// Идентификатор printType + /// + public required int printTypeId { get; set; } + /// + /// Тип печати + /// + public required PrintType printType { get; set; } + /// + /// Модель + /// + public required PrinterModel model { get; set; } + /// + /// Идентификатор printerStatus + /// + public required int statusId { get; set; } + /// + /// Статус принтера + /// + public required printerStatus status { get; set; } + /// + /// Идентификатор типа подключения принтера + /// + public required int connetctionTypeId { get; set; } + /// + /// Тип подключения принтера + /// + public required ConnetctionType connetctionType { get; set; } + /// + /// Установленный картридж в принтер + /// + public required Cartridge installedCartridge { get; set; } + /// + /// Местоплоложение принтера + /// + public required Location location { get; set; } + + } +} \ No newline at end of file