You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
46 lines
1.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CanYouBuildIt.Model
|
|
{
|
|
public enum TypeComposant
|
|
{
|
|
Boitier,
|
|
Processeur,
|
|
Ventirad,
|
|
CarteMere,
|
|
RAM,
|
|
CarteGraphique,
|
|
Alimentation,
|
|
Ventilateur,
|
|
SSD,
|
|
HDD
|
|
}
|
|
|
|
[DataContract]
|
|
public class Composant
|
|
{
|
|
[DataMember]
|
|
public string id { get; private set; }
|
|
[DataMember]
|
|
public TypeComposant type { get; private set; }
|
|
[DataMember]
|
|
public float prix { get; private set; }
|
|
[DataMember]
|
|
public string lien { get; private set; }
|
|
|
|
|
|
public Composant( string idComp, TypeComposant typeComp, float prixCompo, string lienComp)
|
|
{
|
|
id = idComp;
|
|
type = typeComp;
|
|
prix = prixCompo;
|
|
lien = lienComp;
|
|
}
|
|
}
|
|
}
|