From fdd3b1c30afc787efe74ac0bfcafe12e1f8fd05c Mon Sep 17 00:00:00 2001 From: Loris OBRY Date: Wed, 31 May 2023 14:44:26 +0200 Subject: [PATCH] Utilisateur cs --- Sources/Model/Utilisateur.cs | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Sources/Model/Utilisateur.cs diff --git a/Sources/Model/Utilisateur.cs b/Sources/Model/Utilisateur.cs new file mode 100644 index 0000000..b9d602e --- /dev/null +++ b/Sources/Model/Utilisateur.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.ComponentModel; +using System.Runtime.CompilerServices; + +namespace Model +{ + public class Utilisateur : INotifyPropertyChanged + { + public event PropertyChangedEventHandler? PropertyChanged; + void OnPropertyChanged([CallerMemberName] string? propertyName = null) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); + } + + private readonly string pseudo; + public string Pseudo => pseudo; + public string motDePasse; + public string MotDePasse => motDePasse; + public string? UrlPdp + { + get => urlPdp; + set + { + urlPdp = value; + OnPropertyChanged(nameof(UrlPdp)); + } + } + private string? urlPdp; + public Utilisateur(string pseudo, string motDePasse, string? urlPdp = null) + { + this.pseudo = pseudo; + this.motDePasse = motDePasse; + this.urlPdp = urlPdp; + } + } +}