Connexion page

This commit is contained in:
jleroy
2024-04-23 10:34:47 +02:00
parent 0a156ee2f7
commit 39efe3212f
9 changed files with 111 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
package fr.eni.enchere.bo;
public class User {
public class UserProfil {
//Déclaration de variable
private int id;
@@ -13,13 +13,13 @@ public class User {
private String code_postal;
private String ville;
private String password; //Voir la sécurité du mot de passe
private int credit;
private float credit;
private boolean isAdmin;
//Constructeur
public User(){}
public UserProfil(){}
public User(int id, String pseudo, String nom, String prenom, String email, String telephone, String rue, String code_postal, String ville, String password, int credit, boolean isAdmin) {
public UserProfil(int id, String pseudo, String nom, String prenom, String email, String telephone, String rue, String code_postal, String ville, String password, int credit, boolean isAdmin) {
setId(id);
setPrenom(prenom);
setNom(nom);
@@ -115,11 +115,11 @@ public class User {
this.password = password;
}
public int getCredit() {
public float getCredit() {
return credit;
}
public void setCredit(int credit) {
public void setCredit(float credit) {
this.credit = credit;
}