Files
marechai/Marechai/ViewModels/MachineViewModel.cs

52 lines
2.6 KiB
C#
Raw Permalink Normal View History

2020-06-01 02:12:50 +01:00
/******************************************************************************
// 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/>.
//
// ----------------------------------------------------------------------------
2020-12-31 23:24:15 +00:00
// Copyright © 2003-2021 Natalia Portillo
2020-06-01 02:12:50 +01:00
*******************************************************************************/
using System;
using System.Collections.Generic;
2020-05-24 15:28:47 +01:00
using Marechai.Database;
2020-05-22 02:44:24 +01:00
namespace Marechai.ViewModels
{
2020-05-24 04:56:09 +01:00
public class MachineViewModel : BaseViewModel<int>
2020-05-22 02:44:24 +01:00
{
public string Name { get; set; }
public string Model { get; set; }
public int CompanyId { get; set; }
public Guid? CompanyLogo { get; set; }
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
public string FamilyName { get; set; }
public List<GpuViewModel> Gpus { get; set; }
public List<MemoryViewModel> Memory { get; set; }
public List<ProcessorViewModel> Processors { get; set; }
2020-05-23 05:23:50 +01:00
public List<SoundSynthViewModel> SoundSynthesizers { get; set; }
public List<StorageViewModel> Storage { get; set; }
2020-05-24 15:28:47 +01:00
public string Company { get; set; }
public MachineType Type { get; set; }
public string Family { get; set; }
public string IntroducedView =>
Introduced?.Year == 1000 ? "Prototype" : Introduced?.ToShortDateString() ?? "Unknown";
2020-05-22 02:44:24 +01:00
}
}