mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 11:14:27 +00:00
Add SCSI INQUIRY responses management view with duplicate handling
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
using Aaru.CommonTypes.Structs.Devices.SCSI;
|
||||
using Aaru.Helpers;
|
||||
|
||||
namespace Aaru.Server.Database.Models;
|
||||
|
||||
public class IdHashModel : BaseModel<int>
|
||||
{
|
||||
public IdHashModel(int id, string hash)
|
||||
{
|
||||
Id = id;
|
||||
Hash = hash;
|
||||
}
|
||||
|
||||
public string Hash { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int[] Duplicates { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public string Description => string.Join(' ', VendorIdentification, ProductIdentification, ProductRevisionLevel);
|
||||
public int[] Duplicates { get; set; }
|
||||
public string VendorIdentification => StringHandlers.CToString(Inquiry?.VendorIdentification);
|
||||
public string ProductIdentification => StringHandlers.CToString(Inquiry?.ProductIdentification);
|
||||
public string ProductRevisionLevel => StringHandlers.CToString(Inquiry?.ProductRevisionLevel);
|
||||
public Inquiry? Inquiry { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user