|
|
|
@ -44,7 +44,7 @@ namespace Model
|
|
|
|
|
private bool nomIsValid;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "naissance")]
|
|
|
|
|
public string DateNaissance
|
|
|
|
|
public DateTime DateNaissance
|
|
|
|
|
{
|
|
|
|
|
get => dateNaissance;
|
|
|
|
|
set
|
|
|
|
@ -55,7 +55,7 @@ namespace Model
|
|
|
|
|
OnPropertyChanged(nameof(DateNaissance));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private string dateNaissance;
|
|
|
|
|
private DateTime dateNaissance;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "sexe")]
|
|
|
|
|
public string Sexe
|
|
|
|
@ -71,7 +71,7 @@ namespace Model
|
|
|
|
|
private string sexe;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "adoption")]
|
|
|
|
|
public string DateAdoption
|
|
|
|
|
public DateTime DateAdoption
|
|
|
|
|
{
|
|
|
|
|
get => dateAdoption;
|
|
|
|
|
set
|
|
|
|
@ -82,7 +82,7 @@ namespace Model
|
|
|
|
|
OnPropertyChanged(nameof(DateAdoption));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private string dateAdoption;
|
|
|
|
|
private DateTime dateAdoption;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "taille")]
|
|
|
|
|
public float? Taille
|
|
|
|
@ -238,12 +238,10 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string image;
|
|
|
|
|
|
|
|
|
|
public Animal(string nom = "", string dateNaissance = "Inconnue", string sexe = "Inconnu", string dateAdpotion = "Inconnue", float? taille = null, float? poids = null, string alimentation = "Inconnue")
|
|
|
|
|
public Animal(string nom = "", string sexe = "Inconnu", float? taille = null, float? poids = null, string alimentation = "Inconnue")
|
|
|
|
|
{
|
|
|
|
|
Nom = nom;
|
|
|
|
|
DateNaissance = dateNaissance;
|
|
|
|
|
Sexe = sexe;
|
|
|
|
|
DateAdoption = dateAdpotion;
|
|
|
|
|
Taille = taille;
|
|
|
|
|
Poids = poids;
|
|
|
|
|
Alimentation = alimentation;
|
|
|
|
|