mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Remove redundant type declaration bodies.
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Aaru.CommonTypes.AaruMetadata;
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonSerializable(typeof(MetadataJson))]
|
||||
// ReSharper disable once PartialTypeWithSinglePart
|
||||
public partial class MetadataJsonContext : JsonSerializerContext {}
|
||||
public partial class MetadataJsonContext : JsonSerializerContext;
|
||||
|
||||
public class MetadataJson
|
||||
{
|
||||
|
||||
@@ -48,7 +48,6 @@ using Aaru.CommonTypes.Structs.Devices.ATA;
|
||||
using Aaru.CommonTypes.Structs.Devices.SCSI;
|
||||
using Aaru.CommonTypes.Structs.Devices.SCSI.Modes;
|
||||
|
||||
|
||||
#pragma warning disable 1591
|
||||
|
||||
// ReSharper disable VirtualMemberNeverOverridden.Global
|
||||
@@ -64,7 +63,7 @@ namespace Aaru.CommonTypes.Metadata;
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
IncludeFields = true)]
|
||||
[JsonSerializable(typeof(DeviceReport))]
|
||||
public partial class DeviceReportContext : JsonSerializerContext {}
|
||||
public partial class DeviceReportContext : JsonSerializerContext;
|
||||
|
||||
public class DeviceReport
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Aaru.CommonTypes.Metadata;
|
||||
IncludeFields = true)]
|
||||
[JsonSerializable(typeof(ResumeJson))]
|
||||
// ReSharper disable once PartialTypeWithSinglePart
|
||||
public partial class ResumeJsonContext : JsonSerializerContext {}
|
||||
public partial class ResumeJsonContext : JsonSerializerContext;
|
||||
|
||||
public class ResumeJson
|
||||
{
|
||||
|
||||
@@ -88,7 +88,7 @@ public class Stats
|
||||
IncludeFields = true)]
|
||||
[JsonSerializable(typeof(StatsDto))]
|
||||
// ReSharper disable once PartialTypeWithSinglePart
|
||||
public partial class StatsDtoContext : JsonSerializerContext {}
|
||||
public partial class StatsDtoContext : JsonSerializerContext;
|
||||
|
||||
/// <summary>DTO for statistics</summary>
|
||||
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
|
||||
|
||||
Reference in New Issue
Block a user