Connexion page
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user