From a5d9263fa4fab9ab6a057c84f5127cd60a5e1571 Mon Sep 17 00:00:00 2001 From: Matheo HERSAN Date: Fri, 28 Apr 2023 15:02:47 +0200 Subject: [PATCH] Added backend for signUpPage --- MangaMap/Model/Admin.cs | 18 ++- MangaMap/Model/Oeuvre.cs | 4 +- MangaMap/Model/Personne.cs | 6 +- MangaMap/Model/Utilisateur.cs | 2 +- MangaMap/Views/listPage.xaml | 231 ++++++++++++++++++++---------- MangaMap/Views/signUpPage.xaml | 10 +- MangaMap/Views/signUpPage.xaml.cs | 35 ++++- 7 files changed, 215 insertions(+), 91 deletions(-) diff --git a/MangaMap/Model/Admin.cs b/MangaMap/Model/Admin.cs index a8ff102..1ba1fe6 100644 --- a/MangaMap/Model/Admin.cs +++ b/MangaMap/Model/Admin.cs @@ -1,4 +1,5 @@ -using System; +using MangaMap.Views; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,11 +7,18 @@ using System.Threading.Tasks; namespace MangaMap.Model { - class Admin - { + public class Admin : Personne + { + public Admin(string mdp, string email, string pseudo) : base(mdp, email, pseudo) + { + } + public int Id { get; private set; } - public Admin(int id) - { this.Id = id; } + + + public void ajouterAnime() { } + + public void supprimerAnime() { } } } diff --git a/MangaMap/Model/Oeuvre.cs b/MangaMap/Model/Oeuvre.cs index 984e300..f506883 100644 --- a/MangaMap/Model/Oeuvre.cs +++ b/MangaMap/Model/Oeuvre.cs @@ -9,13 +9,13 @@ namespace MangaMap.Model class Oeuvre { public string Nom { get; private set; } - public string[] Genre { get; private set; } + public List Genre { get; private set; } public string Type { get; private set; } public string Description { get; private set; } public int Note { get; private set; } public int NbEpisodes { get; private set; } - public Oeuvre(string nom, string[] genre, string type, string description, int note, int nbEpisode) + public Oeuvre(string nom, List genre, string type, string description, int note, int nbEpisode) { Nom = nom; Genre = genre; diff --git a/MangaMap/Model/Personne.cs b/MangaMap/Model/Personne.cs index 72ca6c0..0a4652c 100644 --- a/MangaMap/Model/Personne.cs +++ b/MangaMap/Model/Personne.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace MangaMap.Model { - class Personne + public class Personne { public string MotDePasse { get; private set; } public string Email { get; private set; } @@ -62,5 +62,9 @@ namespace MangaMap.Model return false; } + + + + } } diff --git a/MangaMap/Model/Utilisateur.cs b/MangaMap/Model/Utilisateur.cs index dd8010d..cd03369 100644 --- a/MangaMap/Model/Utilisateur.cs +++ b/MangaMap/Model/Utilisateur.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace MangaMap.Model { - class Utilisateur + public class Utilisateur { public string nom { get; private set; } public string prenom { get; private set; } diff --git a/MangaMap/Views/listPage.xaml b/MangaMap/Views/listPage.xaml index d1bd076..933ecdb 100644 --- a/MangaMap/Views/listPage.xaml +++ b/MangaMap/Views/listPage.xaml @@ -3,88 +3,169 @@ x:Class="MangaMap.Views.listPage" BackgroundColor="Black"> - - - - - - -