mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move to file scoped namespaces.
This commit is contained in:
@@ -32,48 +32,47 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Aaru.Database.Models
|
||||
namespace Aaru.Database.Models;
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>CD read offset</summary>
|
||||
public class CdOffset : CommonTypes.Metadata.CdOffset
|
||||
{
|
||||
/// <inheritdoc />
|
||||
/// <summary>CD read offset</summary>
|
||||
public class CdOffset : CommonTypes.Metadata.CdOffset
|
||||
/// <summary>Builds an empty CD read offset</summary>
|
||||
public CdOffset() {}
|
||||
|
||||
/// <summary>Builds a CD read offset with the specified parameters</summary>
|
||||
/// <param name="manufacturer">Manufacturer</param>
|
||||
/// <param name="model">Model</param>
|
||||
/// <param name="offset">Read offset</param>
|
||||
/// <param name="submissions">Number of submissions</param>
|
||||
/// <param name="agreement">Percentage of agreement of submissions</param>
|
||||
public CdOffset(string manufacturer, string model, short offset, int submissions, float agreement)
|
||||
{
|
||||
/// <summary>Builds an empty CD read offset</summary>
|
||||
public CdOffset() {}
|
||||
|
||||
/// <summary>Builds a CD read offset with the specified parameters</summary>
|
||||
/// <param name="manufacturer">Manufacturer</param>
|
||||
/// <param name="model">Model</param>
|
||||
/// <param name="offset">Read offset</param>
|
||||
/// <param name="submissions">Number of submissions</param>
|
||||
/// <param name="agreement">Percentage of agreement of submissions</param>
|
||||
public CdOffset(string manufacturer, string model, short offset, int submissions, float agreement)
|
||||
{
|
||||
Manufacturer = manufacturer;
|
||||
Model = model;
|
||||
Offset = offset;
|
||||
Submissions = submissions;
|
||||
Agreement = agreement;
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>Builds a CD read offset from the metadata type</summary>
|
||||
/// <param name="offset">Read offset metadata</param>
|
||||
public CdOffset(CommonTypes.Metadata.CdOffset offset)
|
||||
{
|
||||
Manufacturer = offset.Manufacturer;
|
||||
Model = offset.Model;
|
||||
Offset = offset.Offset;
|
||||
Submissions = offset.Submissions;
|
||||
Agreement = offset.Agreement;
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>Database ID</summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>Date when model has been added to the database</summary>
|
||||
public DateTime AddedWhen { get; set; }
|
||||
/// <summary>Date when model was last modified</summary>
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
Manufacturer = manufacturer;
|
||||
Model = model;
|
||||
Offset = offset;
|
||||
Submissions = submissions;
|
||||
Agreement = agreement;
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>Builds a CD read offset from the metadata type</summary>
|
||||
/// <param name="offset">Read offset metadata</param>
|
||||
public CdOffset(CommonTypes.Metadata.CdOffset offset)
|
||||
{
|
||||
Manufacturer = offset.Manufacturer;
|
||||
Model = offset.Model;
|
||||
Offset = offset.Offset;
|
||||
Submissions = offset.Submissions;
|
||||
Agreement = offset.Agreement;
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>Database ID</summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>Date when model has been added to the database</summary>
|
||||
public DateTime AddedWhen { get; set; }
|
||||
/// <summary>Date when model was last modified</summary>
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user