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

@@ -67,9 +67,12 @@ namespace DiscImageChef.Commands
Core.Statistics.AddDevice(dev);
DeviceReportV2 report = new DeviceReportV2();
bool removable = false;
string jsonFile;
DeviceReportV2 report = new DeviceReportV2
{
Manufacturer = dev.Manufacturer, Model = dev.Model, Revision = dev.Revision, Type = dev.Type
};
bool removable = false;
string jsonFile;
if(!string.IsNullOrWhiteSpace(dev.Manufacturer) && !string.IsNullOrWhiteSpace(dev.Revision))
jsonFile = dev.Manufacturer + "_" + dev.Model + "_" + dev.Revision + ".json";