diff --git a/CdOffsetDto.cs b/CdOffsetDto.cs
index 5c6c082fa..af2b6d93e 100644
--- a/CdOffsetDto.cs
+++ b/CdOffsetDto.cs
@@ -34,10 +34,21 @@ using Aaru.CommonTypes.Metadata;
namespace Aaru.Dto
{
+ ///
+ /// DTO from a CD drive read offset
+ ///
public class CdOffsetDto : CdOffset
{
+ ///
+ /// Build an empty DTO
+ ///
public CdOffsetDto() {}
+ ///
+ /// Build a DTO using the specified offset and database ID
+ ///
+ /// CD reading offset
+ /// Database ID
public CdOffsetDto(CdOffset offset, int id)
{
Manufacturer = offset.Manufacturer;
@@ -48,6 +59,9 @@ namespace Aaru.Dto
Id = id;
}
+ ///
+ /// Database ID
+ ///
public int Id { get; set; }
}
}
\ No newline at end of file
diff --git a/DeviceDto.cs b/DeviceDto.cs
index ba358620c..0b448d776 100644
--- a/DeviceDto.cs
+++ b/DeviceDto.cs
@@ -37,10 +37,20 @@ using Aaru.CommonTypes.Metadata;
namespace Aaru.Dto
{
+ ///
+ /// DTO for known device
+ ///
public class DeviceDto : DeviceReportV2
{
+ ///
+ /// Build an empty DTO
+ ///
public DeviceDto() {}
+ ///
+ /// Build a DTO from a device report
+ ///
+ /// Device report
public DeviceDto(DeviceReportV2 report)
{
ATA = report.ATA;
@@ -59,6 +69,13 @@ namespace Aaru.Dto
GdRomSwapDiscCapabilities = report.GdRomSwapDiscCapabilities;
}
+ ///
+ /// Build a DTO from a device report with the specified parameters
+ ///
+ /// Device report
+ /// Database ID
+ /// Optimal number of blocks for read
+ /// Can read GD-ROM using swap trick?
public DeviceDto(DeviceReportV2 report, int id, int optimalMultipleSectorsRead, bool? canReadGdRomUsingSwapDisc)
{
ATA = report.ATA;
@@ -170,10 +187,19 @@ namespace Aaru.Dto
CanReadGdRomUsingSwapDisc = canReadGdRomUsingSwapDisc;
}
+ ///
+ /// Optimal maximum number of transfer blocks to read
+ ///
public int OptimalMultipleSectorsRead { get; set; }
+ ///
+ /// Can read GD-ROM using disc swap trick?
+ ///
public bool? CanReadGdRomUsingSwapDisc { get; set; }
+ ///
+ /// Database ID
+ ///
public new int Id { get; set; }
static TestedMedia ClearBinaries(TestedMedia media)
diff --git a/SyncDto.cs b/SyncDto.cs
index 3c71fa888..5d1fdfc1d 100644
--- a/SyncDto.cs
+++ b/SyncDto.cs
@@ -34,11 +34,26 @@ using System.Collections.Generic;
namespace Aaru.Dto
{
+ ///
+ /// DTO for database synchronization.
+ ///
public class SyncDto
{
+ ///
+ /// List of USB vendors
+ ///
public List UsbVendors { get; set; }
+ ///
+ /// List of USB products
+ ///
public List UsbProducts { get; set; }
+ ///
+ /// List of CD read offsets
+ ///
public List Offsets { get; set; }
+ ///
+ /// List of known devices
+ ///
public List Devices { get; set; }
}
}
\ No newline at end of file
diff --git a/UsbProductDto.cs b/UsbProductDto.cs
index 42fd7bff6..738eba672 100644
--- a/UsbProductDto.cs
+++ b/UsbProductDto.cs
@@ -32,11 +32,26 @@
namespace Aaru.Dto
{
+ ///
+ /// DTO for USB product field
+ ///
public class UsbProductDto
{
+ ///
+ /// Database ID
+ ///
public int Id { get; set; }
+ ///
+ /// Product ID
+ ///
public ushort ProductId { get; set; }
+ ///
+ /// Product name
+ ///
public string Product { get; set; }
+ ///
+ /// Vendor ID
+ ///
public ushort VendorId { get; set; }
}
}
\ No newline at end of file
diff --git a/UsbVendorDto.cs b/UsbVendorDto.cs
index 4bdf75094..a5ad08396 100644
--- a/UsbVendorDto.cs
+++ b/UsbVendorDto.cs
@@ -32,9 +32,18 @@
namespace Aaru.Dto
{
+ ///
+ /// DTO for USB vendor field
+ ///
public class UsbVendorDto
{
+ ///
+ /// Vendor ID
+ ///
public ushort VendorId { get; set; }
+ ///
+ /// Vendor
+ ///
public string Vendor { get; set; }
}
}
\ No newline at end of file