2025-09-12 15:14:08 +01:00
|
|
|
using Aaru.CommonTypes.Structs.Devices.SCSI;
|
|
|
|
|
using Aaru.Helpers;
|
|
|
|
|
|
2024-05-03 22:18:49 +01:00
|
|
|
namespace Aaru.Server.Database.Models;
|
2021-12-08 17:57:50 +00:00
|
|
|
|
|
|
|
|
public class IdHashModel : BaseModel<int>
|
2019-11-09 19:23:49 +00:00
|
|
|
{
|
2025-09-12 19:53:07 +01:00
|
|
|
string? _description;
|
|
|
|
|
public string Hash { get; set; }
|
|
|
|
|
public string? Description
|
|
|
|
|
{
|
|
|
|
|
get => _description ?? string.Join(' ', VendorIdentification, ProductIdentification, ProductRevisionLevel);
|
|
|
|
|
set => _description = value;
|
|
|
|
|
}
|
|
|
|
|
public int[] Duplicates { get; set; }
|
|
|
|
|
public string VendorIdentification => StringHandlers.CToString(Inquiry?.VendorIdentification);
|
2025-09-12 15:14:08 +01:00
|
|
|
public string ProductIdentification => StringHandlers.CToString(Inquiry?.ProductIdentification);
|
2025-09-12 19:53:07 +01:00
|
|
|
public string ProductRevisionLevel => StringHandlers.CToString(Inquiry?.ProductRevisionLevel);
|
|
|
|
|
public Inquiry? Inquiry { get; set; }
|
2019-11-09 19:23:49 +00:00
|
|
|
}
|