|
|
|
@ -1,57 +1,57 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MangaMap.Model
|
|
|
|
|
{
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class Utilisateur : Personne
|
|
|
|
|
{
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string nom { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string prenom { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public int age { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreEnVisionnage { get; set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreDejaVu { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvrePourPlusTard { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreFavorites { get; private set; }
|
|
|
|
|
|
|
|
|
|
public Utilisateur(string email, string pseudo, string mdp, string nom, string prenom, int age)
|
|
|
|
|
{
|
|
|
|
|
Email = email;
|
|
|
|
|
Pseudo = pseudo;
|
|
|
|
|
MotDePasse = mdp;
|
|
|
|
|
this.nom = nom;
|
|
|
|
|
this.prenom = prenom;
|
|
|
|
|
this.age = age;
|
|
|
|
|
|
|
|
|
|
ListeOeuvreEnVisionnage = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreDejaVu = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvrePourPlusTard = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreFavorites = new List<Oeuvre>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MangaMap.Model
|
|
|
|
|
{
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class Utilisateur : Personne
|
|
|
|
|
{
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string nom { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public string prenom { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public int age { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreEnVisionnage { get; set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreDejaVu { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvrePourPlusTard { get; private set; }
|
|
|
|
|
[DataMember]
|
|
|
|
|
public List<Oeuvre> ListeOeuvreFavorites { get; private set; }
|
|
|
|
|
|
|
|
|
|
public Utilisateur(string email, string pseudo, string mdp, string nom, string prenom, int age)
|
|
|
|
|
{
|
|
|
|
|
Email = email;
|
|
|
|
|
Pseudo = pseudo;
|
|
|
|
|
MotDePasse = mdp;
|
|
|
|
|
this.nom = nom;
|
|
|
|
|
this.prenom = prenom;
|
|
|
|
|
this.age = age;
|
|
|
|
|
|
|
|
|
|
ListeOeuvreEnVisionnage = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreDejaVu = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvrePourPlusTard = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreFavorites = new List<Oeuvre>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Utilisateur() {
|
|
|
|
|
ListeOeuvreEnVisionnage = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreDejaVu = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvrePourPlusTard = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreFavorites = new List<Oeuvre>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SupprimerUtilisateur()
|
|
|
|
|
{
|
|
|
|
|
this.nom = null;
|
|
|
|
|
this.prenom = null;
|
|
|
|
|
this.age = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ListeOeuvreEnVisionnage = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreDejaVu = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvrePourPlusTard = new List<Oeuvre>();
|
|
|
|
|
ListeOeuvreFavorites = new List<Oeuvre>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SupprimerUtilisateur()
|
|
|
|
|
{
|
|
|
|
|
this.nom = null;
|
|
|
|
|
this.prenom = null;
|
|
|
|
|
this.age = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|