Files
Aaru.Server/Aaru.Server.Database/Models/FireWireModel.cs

30 lines
861 B
C#
Raw Permalink Normal View History

2019-11-10 23:36:42 +00:00
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Aaru.Server.Database.Models;
2021-12-08 17:57:50 +00:00
public class FireWireModel
2019-11-10 23:36:42 +00:00
{
2023-10-04 00:09:19 +01:00
[DisplayName("Vendor ID")]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "0x{0:X8}")]
2021-12-08 17:57:50 +00:00
public uint VendorID { get; set; }
2023-10-04 00:09:19 +01:00
[DisplayName("Product ID")]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "0x{0:X8}")]
2021-12-08 17:57:50 +00:00
public uint ProductID { get; set; }
2023-10-04 00:09:19 +01:00
2021-12-08 17:57:50 +00:00
[DisplayFormat(NullDisplayText = "Unknown")]
public string Manufacturer { get; set; }
2023-10-04 00:09:19 +01:00
2021-12-08 17:57:50 +00:00
[DisplayFormat(NullDisplayText = "Unknown")]
public string Product { get; set; }
2023-10-04 00:09:19 +01:00
2021-12-08 17:57:50 +00:00
[DisplayName("Is media removable?")]
public bool RemovableMedia { get; set; }
}
2019-11-10 23:36:42 +00:00
2021-12-08 17:57:50 +00:00
public class FireWireModelForView
{
public List<FireWireModel> List { get; set; }
public string Json { get; set; }
2019-11-10 23:36:42 +00:00
}