14 Commits

Author SHA1 Message Date
9847c987b5 Update copyright year. 2025-11-14 05:08:14 +00:00
6f0de86be4 Add custom route constraints for char and ulong parameters 2025-11-14 05:04:03 +00:00
37d8df4b7d Add properties to enable compiler-generated files output in project configuration 2025-11-14 05:03:51 +00:00
860fd99b00 Fix route parameter in ResolutionsByGpuController for resolutionId 2025-11-14 05:02:44 +00:00
2ba7d86e71 Refactor CompaniesController to use DTOs for machine and company operations 2025-11-14 05:02:01 +00:00
37403e5e53 Add Directory.Build.targets file for project configuration 2025-11-14 04:54:07 +00:00
2066e211e1 Refactor SoftwareVariantDto properties for improved readability 2025-11-14 04:51:39 +00:00
ebc611e5d2 Refactor MachineDto properties for improved readability and add JsonIgnore attributes for collections 2025-11-14 04:51:24 +00:00
5e3be9cbb0 Add LicenseDto and update LicensesController to use DTO for license operations 2025-11-14 04:51:12 +00:00
9d146eb151 Add Iso31661NumericDto and update Iso31661NumericController to use DTO for numeric operations 2025-11-14 04:50:54 +00:00
52b6145a8b Add Iso4217Dto and update Iso4217Controller to use DTO for currency operations 2025-11-14 04:50:39 +00:00
09ced17903 Add InstructionSetExtensionDto and update InstructionSetExtensionsController to use DTO for extension operations 2025-11-14 04:50:28 +00:00
356674f51f Add InstructionSetDto and update InstructionSetsController to use DTO for instruction set operations 2025-11-14 04:50:12 +00:00
cd4aa5767d Add CompanyLogoDto and update CompanyLogosController to use DTO for logo retrieval and creation 2025-11-14 04:49:39 +00:00
539 changed files with 1357 additions and 736 deletions

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework Condition="'$(MSBuildProjectName)' != 'Marechai.App'">net10.0</TargetFramework>
<Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2021 Natalia Portillo</Copyright>
<Copyright>Copyright © 2003-2026 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

1
Directory.Build.targets Normal file
View File

@@ -0,0 +1 @@
<Project></Project>

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -1,3 +1,28 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -0,0 +1,40 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class CompanyLogoDto : BaseDto<int>
{
[JsonPropertyName("company_id")]
[Required]
public int CompanyId { get; set; }
[JsonPropertyName("year")] public int? Year { get; set; }
[JsonPropertyName("guid")] [Required] public Guid Guid { get; set; }
}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -1,3 +1,28 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel;

View File

@@ -1,3 +1,28 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
namespace Marechai.Data.Dtos;
public class DocumentDto : DocumentBaseDto {}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -0,0 +1,34 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class InstructionSetDto : BaseDto<int>
{
[JsonPropertyName("name")] [Required] public required string Name { get; set; }
}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -0,0 +1,36 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class InstructionSetExtensionDto : BaseDto<int>
{
[JsonPropertyName("extension")]
[Required]
public required string Extension { get; set; }
}

View File

@@ -0,0 +1,36 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class Iso31661NumericDto
{
[JsonPropertyName("id")] [Required] public short Id { get; set; }
[JsonPropertyName("name")] [Required] public required string Name { get; set; }
}

View File

@@ -0,0 +1,44 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class Iso4217Dto
{
[JsonPropertyName("code")] [Required] public required string Code { get; set; }
[JsonPropertyName("numeric")]
[Required]
public short Numeric { get; set; }
[JsonPropertyName("minor_units")] public byte? MinorUnits { get; set; }
[JsonPropertyName("name")] [Required] public required string Name { get; set; }
[JsonPropertyName("withdrawn")] public DateTime? Withdrawn { get; set; }
}

View File

@@ -0,0 +1,48 @@
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class LicenseDto : BaseDto<int>
{
[JsonPropertyName("name")] [Required] public string Name { get; set; }
[JsonPropertyName("spdx")] public string? SPDX { get; set; }
[JsonPropertyName("fsf_approved")]
[Required]
public bool FsfApproved { get; set; }
[JsonPropertyName("osi_approved")]
[Required]
public bool OsiApproved { get; set; }
[JsonPropertyName("link")] public string? Link { get; set; }
[JsonPropertyName("text")] public string? Text { get; set; }
}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
@@ -31,33 +31,37 @@ namespace Marechai.Data.Dtos;
public class MachineDto : BaseDto<int>
{
[JsonPropertyName("name")]
[Required]
public required string Name { get; set; }
[JsonPropertyName("model")]
public string? Model { get; set; }
[JsonPropertyName("company_id")]
public int CompanyId { get; set; }
[JsonPropertyName("company_logo")]
public Guid? CompanyLogo { get; set; }
[JsonPropertyName("introduced")]
public DateTime? Introduced { get; set; }
[JsonPropertyName("family_id")]
public int? FamilyId { get; set; }
[JsonPropertyName("family_name")]
public string? FamilyName { get; set; }
public List<GpuDto>? Gpus { get; set; }
public List<MemoryDto>? Memory { get; set; }
public List<ProcessorDto>? Processors { get; set; }
public List<SoundSynthDto>? SoundSynthesizers { get; set; }
public List<StorageDto>? Storage { get; set; }
[JsonPropertyName("company")]
public string? Company { get; set; }
[JsonPropertyName("type")]
public MachineType Type { get; set; }
[JsonPropertyName("family")]
public string? Family { get; set; }
[JsonPropertyName("name")] [Required] public required string Name { get; set; }
[JsonPropertyName("model")] public string? Model { get; set; }
[JsonPropertyName("company_id")] public int CompanyId { get; set; }
[JsonPropertyName("company_logo")] public Guid? CompanyLogo { get; set; }
[JsonPropertyName("introduced")] public DateTime? Introduced { get; set; }
[JsonPropertyName("family_id")] public int? FamilyId { get; set; }
[JsonPropertyName("family_name")] public string? FamilyName { get; set; }
[JsonIgnore] public List<GpuDto>? Gpus { get; set; }
[JsonIgnore] public List<MemoryDto>? Memory { get; set; }
[JsonIgnore] public List<ProcessorDto>? Processors { get; set; }
[JsonIgnore] public List<SoundSynthDto>? SoundSynthesizers { get; set; }
[JsonIgnore] public List<StorageDto>? Storage { get; set; }
[JsonPropertyName("company")] public string? Company { get; set; }
[JsonPropertyName("type")] public MachineType Type { get; set; }
[JsonPropertyName("family")] public string? Family { get; set; }
[JsonIgnore]
public string IntroducedView =>
Introduced?.Year == 1000 ? "Prototype" : Introduced?.ToShortDateString() ?? "Unknown";
Introduced?.Year == 1000 ? "Prototype" : Introduced?.ToShortDateString() ?? "Unknown";
}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
@@ -31,38 +31,39 @@ namespace Marechai.Data.Dtos;
public class SoftwareVariantDto : BaseDto<ulong>
{
[JsonPropertyName("name")]
[Required]
public required string Name { get; set; }
[JsonPropertyName("version")]
public string? Version { get; set; }
[JsonPropertyName("introduced")]
public DateTime? Introduced { get; set; }
[JsonPropertyName("parent_id")]
public ulong? ParentId { get; set; }
[JsonPropertyName("parent")]
public string? Parent { get; set; }
[JsonPropertyName("name")] [Required] public required string Name { get; set; }
[JsonPropertyName("version")] public string? Version { get; set; }
[JsonPropertyName("introduced")] public DateTime? Introduced { get; set; }
[JsonPropertyName("parent_id")] public ulong? ParentId { get; set; }
[JsonPropertyName("parent")] public string? Parent { get; set; }
[JsonPropertyName("version_id")]
[Required]
public ulong SoftwareVersionId { get; set; }
[JsonPropertyName("version")]
public string? SoftwareVersion { get; set; }
[JsonPropertyName("minimum_memory")]
public ulong? MinimumMemory { get; set; }
[JsonPropertyName("software_version")] public string? SoftwareVersion { get; set; }
[JsonPropertyName("minimum_memory")] public ulong? MinimumMemory { get; set; }
[JsonPropertyName("recommended_memory")]
public ulong? RecommendedMemory { get; set; }
[JsonPropertyName("required_storage")]
public ulong? RequiredStorage { get; set; }
[JsonPropertyName("part_number")]
public string? PartNumber { get; set; }
[JsonPropertyName("serial_number")]
public string? SerialNumber { get; set; }
[JsonPropertyName("product_code")]
public string? ProductCode { get; set; }
[JsonPropertyName("catalogue_number")]
public string? CatalogueNumber { get; set; }
[JsonPropertyName("required_storage")] public ulong? RequiredStorage { get; set; }
[JsonPropertyName("part_number")] public string? PartNumber { get; set; }
[JsonPropertyName("serial_number")] public string? SerialNumber { get; set; }
[JsonPropertyName("product_code")] public string? ProductCode { get; set; }
[JsonPropertyName("catalogue_number")] public string? CatalogueNumber { get; set; }
[JsonPropertyName("distribution_mode")]
public DistributionMode DistributionMode { get; set; }
[JsonPropertyName("family")]
public string? Family { get; set; }
[JsonPropertyName("family")] public string? Family { get; set; }
}

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Text.Json.Serialization;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.Data;

View File

@@ -20,8 +20,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
*******************************************************************************/
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;
using Marechai.Database.Models;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using Microsoft.EntityFrameworkCore.Migrations;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
// <auto-generated />
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

View File

@@ -20,7 +20,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2021 Natalia Portillo
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;

Some files were not shown because too many files have changed in this diff Show More