diff --git a/GameAtlas/.vs/GameAtlas/v17/.suo b/GameAtlas/.vs/GameAtlas/v17/.suo index 08b9fa5..dcbf18e 100644 Binary files a/GameAtlas/.vs/GameAtlas/v17/.suo and b/GameAtlas/.vs/GameAtlas/v17/.suo differ diff --git a/GameAtlas/GameAtlas/GameAtlas.csproj.user b/GameAtlas/GameAtlas/GameAtlas.csproj.user index 51cb5d2..5a3a8e8 100644 --- a/GameAtlas/GameAtlas/GameAtlas.csproj.user +++ b/GameAtlas/GameAtlas/GameAtlas.csproj.user @@ -2,8 +2,8 @@ False - net7.0-android - Google Pixel 6a (Android 13.0 - API 33) + net7.0-windows10.0.19041.0 + Windows Machine PhysicalDevice pixel_5_-_api_33 @@ -14,6 +14,9 @@ ProjectDebugger + + ProjectDebugger + Designer diff --git a/GameAtlas/GameAtlas/Models/Admin.cs b/GameAtlas/GameAtlas/Models/Admin.cs new file mode 100644 index 0000000..53538e4 --- /dev/null +++ b/GameAtlas/GameAtlas/Models/Admin.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace GameAtlas.Models +{ + public class Admin : Utilisateur + { + public Admin(string mail, string pseudo, string mdp) : base(mail, pseudo, mdp) + { + } + + public void AjouterJeu(Jeu jeu) { } + public void SupprimerJeu(Jeu jeu) { } + public void ModifierJeu(Jeu jeu) { } + + + } +} diff --git a/GameAtlas/GameAtlas/Models/Jeu.cs b/GameAtlas/GameAtlas/Models/Jeu.cs new file mode 100644 index 0000000..34a374d --- /dev/null +++ b/GameAtlas/GameAtlas/Models/Jeu.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace GameAtlas.Models +{ + public class Jeu + { + public string Nom; + public int Note; + public int NbTelechargement; + public string Plateforme; + public string Genre; + + public Jeu(string nom, int note, int nbTelechargement, string plateforme, string genre) + { + Nom = nom; + Note = note; + NbTelechargement = nbTelechargement; + Plateforme = plateforme; + Genre = genre; + } + } +} diff --git a/GameAtlas/GameAtlas/Models/Utilisateur.cs b/GameAtlas/GameAtlas/Models/Utilisateur.cs index b4117a9..0815e89 100644 --- a/GameAtlas/GameAtlas/Models/Utilisateur.cs +++ b/GameAtlas/GameAtlas/Models/Utilisateur.cs @@ -11,6 +11,7 @@ namespace GameAtlas.Models { public string Mail { get; private set; } public string Pseudo { get; private set; } + public string Mdp { get; private set; } //public List ListePossedes { get; private set; } //public List ListeFavoris { get; private set; } @@ -21,5 +22,13 @@ namespace GameAtlas.Models Pseudo = pseudo; Mdp = mdp; } + + + + public int Connexion(string pseudo, string mdp) { return 0; } + public int Inscription(string mail, string pseudo, string mdp) { return 0; } + public void AjouterCom(Jeu jeu, string com) { } + public void SupprimerCom(Jeu jeu, string com) { } + public void AjouterEvaluation(Jeu jeu, int nbEtoiles) { } } } diff --git a/GameAtlas/GameAtlas/Views/PageInscription.xaml b/GameAtlas/GameAtlas/Views/PageInscription.xaml index c55bc74..efd3c79 100644 --- a/GameAtlas/GameAtlas/Views/PageInscription.xaml +++ b/GameAtlas/GameAtlas/Views/PageInscription.xaml @@ -23,14 +23,14 @@ - + -