using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CanYouBuildIt.Model { public enum TypeComposant { Boitier, Processeur, Ventirad, CarteMere, RAM, CarteGraphique, Alimentation, Ventilateur, SSD, HDD } public class Composant { public string id { get; private set; } public TypeComposant type { get; private set; } public float prix { get; private set; } public string lien { get; private set; } public Composant( string idComp, TypeComposant typeComp, float prixCompo, string lienComp) { id = idComp; type = typeComp; prix = prixCompo; lien = lienComp; } } }