Files
marechai/Marechai/ViewModels/MachineViewModel.cs

27 lines
1.4 KiB
C#
Raw Normal View History

2020-05-24 02:12:37 +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
}
}