|
|
|
@ -3,14 +3,19 @@ using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Model
|
|
|
|
|
{
|
|
|
|
|
[DataContract(Name = "animal")]
|
|
|
|
|
public class Animal : INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "nom")]
|
|
|
|
|
public string Nom
|
|
|
|
|
{
|
|
|
|
|
get => nom;
|
|
|
|
@ -24,6 +29,8 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string nom;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "naissance")]
|
|
|
|
|
public string DateNaissance
|
|
|
|
|
{
|
|
|
|
|
get => dateNaissance;
|
|
|
|
@ -37,6 +44,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string dateNaissance;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "sexe")]
|
|
|
|
|
public string Sexe
|
|
|
|
|
{
|
|
|
|
|
get => sexe;
|
|
|
|
@ -49,6 +57,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string sexe;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "adoption")]
|
|
|
|
|
public string DateAdoption
|
|
|
|
|
{
|
|
|
|
|
get => dateAdoption;
|
|
|
|
@ -62,6 +71,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string dateAdoption;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "taille")]
|
|
|
|
|
public float? Taille
|
|
|
|
|
{
|
|
|
|
|
get => taille;
|
|
|
|
@ -75,6 +85,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private float? taille;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "poids")]
|
|
|
|
|
public float? Poids
|
|
|
|
|
{
|
|
|
|
|
get => poids;
|
|
|
|
@ -88,6 +99,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private float? poids;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "alimentation")]
|
|
|
|
|
public string Alimentation
|
|
|
|
|
{
|
|
|
|
|
get => alimentation;
|
|
|
|
@ -101,6 +113,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private string alimentation;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "espèce")]
|
|
|
|
|
public Espece? Espece
|
|
|
|
|
{
|
|
|
|
|
get => espece;
|
|
|
|
@ -114,6 +127,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Espece? espece;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "race")]
|
|
|
|
|
public Race? Race
|
|
|
|
|
{
|
|
|
|
|
get => race;
|
|
|
|
@ -127,6 +141,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Race? race;
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "veterinaire")]
|
|
|
|
|
public Veterinaire? Veterinaire
|
|
|
|
|
{
|
|
|
|
|
get => veterinaire;
|
|
|
|
@ -140,6 +155,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Veterinaire? veterinaire = new Veterinaire();
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "chenil")]
|
|
|
|
|
public Chenil? Chenil
|
|
|
|
|
{
|
|
|
|
|
get => chenil;
|
|
|
|
@ -153,6 +169,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Chenil? chenil = new Chenil();
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "magasinAlimentaire")]
|
|
|
|
|
public MagasinAlimentaire? MagasinAlimentaire
|
|
|
|
|
{
|
|
|
|
|
get => magasinAlimentaire;
|
|
|
|
@ -166,6 +183,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private MagasinAlimentaire? magasinAlimentaire = new MagasinAlimentaire();
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "provenance")]
|
|
|
|
|
public Provenance? Provenance
|
|
|
|
|
{
|
|
|
|
|
get => provenance;
|
|
|
|
@ -179,6 +197,7 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Provenance? provenance = new Provenance();
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "petsitter")]
|
|
|
|
|
public Petsitter? Petsitter
|
|
|
|
|
{
|
|
|
|
|
get => petsitter;
|
|
|
|
@ -192,6 +211,20 @@ namespace Model
|
|
|
|
|
}
|
|
|
|
|
private Petsitter? petsitter = new Petsitter();
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "image")]
|
|
|
|
|
public string Image
|
|
|
|
|
{
|
|
|
|
|
get => image;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (image == value)
|
|
|
|
|
return;
|
|
|
|
|
image = value;
|
|
|
|
|
OnPropertyChanged(nameof(Image));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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", Race? race = null)
|
|
|
|
|
{
|
|
|
|
|
Nom = nom;
|
|
|
|
|