This commit is contained in:
Hukuta committed 2026-03-31 14:10:52 +09:00
1 parent 7a28cf74fa
commit 2883956264
7 files changed
+143 -6

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
namespace CartriX.Share;
public class CartridgeInstallation
{
public int Id { get; set; }
public int PrinterId { get; set; }
public int CartridgeId { get; set; }
public DateTime InstalledAtUtc { get; set; }
public DateTime? RemovedAtUtc { get; set; }
public int StartPageCounter { get; set; }
public int? EndPageCounter { get; set; }
public int? PrintedPages { get; set; }
public decimal? CostPerPage { get; set; }
}
+11
View File
@@ -0,0 +1,11 @@
namespace CartriX.Share;
public class PageCounterLog
{
public int Id { get; set; }
public int PrinterId { get; set; }
public int TotalPages { get; set; }
public int? TonerPercent { get; set; }
public DateTime CapturedAtUtc { get; set; }
public string Source { get; set; } = "unknown";
}
+16
View File
@@ -0,0 +1,16 @@
namespace CartriX.Share;
public enum PrinterConnectionType
{
Network = 1,
Usb = 2
}
public class Printer
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Model { get; set; } = string.Empty;
public PrinterConnectionType ConnectionType { get; set; }
public string Location { get; set; } = string.Empty;
}
+16
View File
@@ -0,0 +1,16 @@
namespace CartriX.Share;
public class CreatePrinterRequest
{
public string Name { get; set; } = string.Empty;
public string Model { get; set; } = string.Empty;
public PrinterConnectionType ConnectionType { get; set; }
public string Location { get; set; } = string.Empty;
}
public class CreateCartridgeInstallationRequest
{
public int PrinterId { get; set; }
public int CartridgeId { get; set; }
public int StartPageCounter { get; set; }
}