2018-08-05 19:37:39 +01:00
|
|
|
using System;
|
|
|
|
|
using DiscImageChef.CommonTypes.Metadata;
|
|
|
|
|
|
|
|
|
|
namespace DiscImageChef.Database.Models
|
|
|
|
|
{
|
2018-11-26 23:16:54 +00:00
|
|
|
public class Device : DeviceReportV2
|
2018-08-05 19:37:39 +01:00
|
|
|
{
|
2018-11-27 00:23:05 +00:00
|
|
|
public Device()
|
|
|
|
|
{
|
|
|
|
|
LastSynchronized = DateTime.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-27 00:12:07 +00:00
|
|
|
public Device(DeviceReportV2 report)
|
|
|
|
|
{
|
|
|
|
|
ATA = report.ATA;
|
2018-11-27 01:41:08 +00:00
|
|
|
ATAPI = report.ATAPI;
|
2018-11-27 00:12:07 +00:00
|
|
|
CompactFlash = report.CompactFlash;
|
|
|
|
|
FireWire = report.FireWire;
|
|
|
|
|
LastSynchronized = DateTime.UtcNow;
|
|
|
|
|
MultiMediaCard = report.MultiMediaCard;
|
|
|
|
|
PCMCIA = report.PCMCIA;
|
|
|
|
|
SCSI = report.SCSI;
|
|
|
|
|
SecureDigital = report.SecureDigital;
|
|
|
|
|
USB = report.USB;
|
2018-11-27 00:23:05 +00:00
|
|
|
Manufacturer = report.Manufacturer;
|
|
|
|
|
Model = report.Model;
|
|
|
|
|
Revision = report.Revision;
|
|
|
|
|
Type = report.Type;
|
2018-11-27 00:12:07 +00:00
|
|
|
}
|
|
|
|
|
|
2018-11-26 23:16:54 +00:00
|
|
|
public DateTime LastSynchronized { get; set; }
|
2018-08-05 19:37:39 +01:00
|
|
|
}
|
|
|
|
|
}
|