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.
70 lines
2.2 KiB
70 lines
2.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Model
|
|
{
|
|
[DataContract(Name = "race")]
|
|
public class Race
|
|
{
|
|
[DataMember(Name = "nom")]
|
|
public string Nom { get; }
|
|
|
|
[DataMember(Name = "scientique")]
|
|
public string NomScientifique { get; }
|
|
|
|
[DataMember(Name = "esperance")]
|
|
public string EsperanceVie { get; }
|
|
|
|
[DataMember(Name = "poids")]
|
|
public string PoidsMoyen { get; }
|
|
|
|
[DataMember(Name = "taille")]
|
|
public string TailleMoyenne { get; }
|
|
|
|
[DataMember(Name = "comportement")]
|
|
public string Comportement { get; }
|
|
|
|
[DataMember(Name = "sante")]
|
|
public string Sante { get; }
|
|
|
|
[DataMember(Name = "education")]
|
|
public string Education { get; }
|
|
|
|
[DataMember(Name = "entretien")]
|
|
public string Entretien { get; }
|
|
|
|
[DataMember(Name = "cout")]
|
|
public string Cout { get; }
|
|
|
|
[DataMember(Name = "conseil")]
|
|
public string Conseil { get; }
|
|
|
|
[DataMember(Name = "image")]
|
|
public string Image { 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 override string ToString()
|
|
{
|
|
return Nom;
|
|
}
|
|
}
|
|
}
|