mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-06 13:00:55 +00:00
Пока ниче не делаю, чилю)
This commit is contained in:
1 parent
37b95a6179
commit
5b7364c57e
11 files changed
+151
No files matched your search
@@ -0,0 +1,11 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class Cartridge
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public CartridgeModel Model { get; set; } = default!;
|
||||
public StatusCartridge Status { get; set; } = default!;
|
||||
public int Capacity { get; set; }
|
||||
public Printer? InPrinter { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class CartridgeModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class Printer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string PrinterName { get; set; } = default!;
|
||||
public PrinterModel Model { get; set; } = default!;
|
||||
public PrinterConnectionType PrinterConnectionType { get; set; } = default!;
|
||||
public string? PrinterUsedPagesOID { get; set; }
|
||||
public StatusPrinter Status { get; set; } = default!;
|
||||
public List<CartridgeModel> SupportCartridgeModels { get; set; } = default!;
|
||||
public string? IpAddress { get; set; } = default!;
|
||||
// In One Printer can be some Cartridges, for example: Color Printers
|
||||
public List<Cartridge> CartridgesHave { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class PrinterConnectionType
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class PrinterModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class StatusCartridge
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class StatusPrinter
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class SupportPrinterCartridges
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public PrinterModel PrinterModel { get; set; } = default!;
|
||||
public CartridgeModel CartridgeModel { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user