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.
43 lines
1.2 KiB
43 lines
1.2 KiB
namespace Model;
|
|
|
|
public class User
|
|
{
|
|
public int Id { get; set; }
|
|
public string Username { get; set; }
|
|
public string ProfilePicture { get; set; }
|
|
public string LastName { get; set; }
|
|
public string FirstName { get; set; }
|
|
public string Email { get; set; }
|
|
public string? MotDePasse { get; set; }
|
|
public string Sexe { get; set; }
|
|
public float Lenght { get; set; }
|
|
public float Weight { get; set; }
|
|
public DateTime DateOfBirth { get; set; }
|
|
public Role Role { get; set; }
|
|
|
|
protected List<Notification> Notifications { get; set; } = new List<Notification>();
|
|
|
|
public List<User> Users { get; set; } = new List<User>();
|
|
|
|
public User( string username, string profilePicture, string nom, string prenom, string email, string motDePasse, string sexe, float taille, float poids, DateTime dateNaissance, Role role)
|
|
{
|
|
Username = username;
|
|
ProfilePicture = profilePicture;
|
|
LastName = nom;
|
|
FirstName = prenom;
|
|
Email = email;
|
|
MotDePasse = motDePasse;
|
|
Sexe = sexe;
|
|
Lenght = taille;
|
|
Weight = poids;
|
|
DateOfBirth = dateNaissance;
|
|
Role = role;
|
|
}
|
|
public User(){}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |