using System; using System.Collections.Generic; using Marechai.Database; namespace Marechai.ViewModels { public class MachineViewModel : BaseViewModel { public string Name { get; set; } public string Model { get; set; } public string CompanyName { 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 Gpus { get; set; } public List Memory { get; set; } public List Processors { get; set; } public List SoundSynthesizers { get; set; } public List Storage { get; set; } 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"; } }