You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Modèle
|
|
{
|
|
/// <summary>
|
|
/// La classe User représente un utilisateur ayant pour identifiant son pseudo (publique),
|
|
/// son nom et prénom en privé, pour une utilisation ultérieure et/ou pour identifier de manière
|
|
/// plus simple l'utilisateur dans la base de donnée (car un pseudo n'est pas forcément explicite)
|
|
/// </summary>
|
|
public class User
|
|
{
|
|
public string Pseudo { get; private set; }
|
|
private string Nom { get; set; }
|
|
private string Prenom { get; set; }
|
|
private string Mdp { get; set; }
|
|
private List<Monstre> monstresDejaVu { get; set; }
|
|
|
|
public User(string pseudo, string nom, string prenom, string mdp, List<Monstre> monstresVus)
|
|
{
|
|
Pseudo = pseudo;
|
|
Nom = nom;
|
|
Prenom = prenom;
|
|
Mdp = mdp;
|
|
monstresDejaVu = monstresVus;
|
|
}
|
|
|
|
public bool verifyPssw(string pssw)
|
|
{
|
|
if(pssw.Equals(Mdp))
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|