diff --git a/Solution/Wikipet's/Model/Race.cs b/Solution/Wikipet's/Model/Race.cs new file mode 100644 index 0000000..4797ef3 --- /dev/null +++ b/Solution/Wikipet's/Model/Race.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Race + { + public string Nom { get; } + public string NomScientifique { get; } + public string EsperanceVie { get; } + public string PoidsMoyen { get; } + public string TailleMoyenne { get; } + public string Comportement { get; } + public string Sante { get; } + public string Education { get; } + public string Entretien { get; } + public string Cout { get; } + public string Conseil { get; } + + public Race(string nom = "Inconnu", string nomScientifique = "Inconnu", string esperanceVie = "Inconnue", string poidsMoyen = "Inconnu", string tailleMoyenne = "Inconnu", string comportement = "Auncune information", string sante = "Aucune information", string education = "Auncune information", string entretien = "Aucune information", string cout = "Auncune information", string conseil = "Aucun conseil") + { + Nom = nom; + NomScientifique = nomScientifique; + EsperanceVie = esperanceVie; + PoidsMoyen = poidsMoyen; + TailleMoyenne = tailleMoyenne; + Comportement = comportement; + Sante = sante; + Education = education; + Entretien = entretien; + Cout = cout; + Conseil = conseil; + } + + public void AfficherRace() + { + Console.WriteLine("Nom : " + Nom); + Console.WriteLine("Nom scientifique : " + NomScientifique); + Console.WriteLine("Espérance de vie : " + EsperanceVie); + Console.WriteLine("Poids moyen : " + PoidsMoyen); + Console.WriteLine("Taille moyenne : " + TailleMoyenne); + Console.WriteLine("Comportement : " + Comportement); + Console.WriteLine("Sante : " + Sante); + Console.WriteLine("Education : " + Education); + Console.WriteLine("Entretien : " + Entretien); + Console.WriteLine("Cout : " + Cout); + Console.WriteLine("Conseil : " + Conseil); + } + } +}