mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add code to consolidate FireWire.
This commit is contained in:
26
DiscImageChef.Server/Models/FireWireModel.cs
Normal file
26
DiscImageChef.Server/Models/FireWireModel.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DiscImageChef.Server.Models
|
||||
{
|
||||
public class FireWireModel
|
||||
{
|
||||
[DisplayName("Vendor ID"), DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "0x{0:X8}")]
|
||||
public uint VendorID { get; set; }
|
||||
[DisplayName("Product ID"), DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "0x{0:X8}")]
|
||||
public uint ProductID { get; set; }
|
||||
[DisplayFormat(NullDisplayText = "Unknown")]
|
||||
public string Manufacturer { get; set; }
|
||||
[DisplayFormat(NullDisplayText = "Unknown")]
|
||||
public string Product { get; set; }
|
||||
[DisplayName("Is media removable?")]
|
||||
public bool RemovableMedia { get; set; }
|
||||
}
|
||||
|
||||
public class FireWireModelForView
|
||||
{
|
||||
public List<FireWireModel> List { get; set; }
|
||||
public string Json { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user