Add basic fields to device report.

This commit is contained in:
2018-11-27 00:23:05 +00:00
parent 714ed8ef0f
commit 0696a82916
8 changed files with 1274 additions and 3 deletions

View File

@@ -5,6 +5,12 @@ namespace DiscImageChef.Database.Models
{
public class Report : DeviceReportV2
{
public Report()
{
Created = DateTime.UtcNow;
Uploaded = false;
}
public Report(DeviceReportV2 report)
{
ATA = report.ATA;
@@ -18,6 +24,10 @@ namespace DiscImageChef.Database.Models
SecureDigital = report.SecureDigital;
USB = report.USB;
Uploaded = false;
Manufacturer = report.Manufacturer;
Model = report.Model;
Revision = report.Revision;
Type = report.Type;
}
public DateTime Created { get; set; }