Ajout article v3
This commit is contained in:
@@ -7,6 +7,7 @@ public class Article {
|
||||
int id;
|
||||
String nom;
|
||||
String desc;
|
||||
String photo;
|
||||
Date dateDebutEnch;
|
||||
Date dateFinEnch;
|
||||
float prixInitial;
|
||||
@@ -17,16 +18,17 @@ public class Article {
|
||||
public Article() {
|
||||
}
|
||||
|
||||
public Article(int id, String nom, String desc, Date dateDebutEnch, Date dateFinEnch, float prixInitial, float prixVente, UserProfil Utilisateur, int numCategorie) {
|
||||
this.id = id;
|
||||
this.nom = nom;
|
||||
this.desc = desc;
|
||||
this.dateDebutEnch = dateDebutEnch;
|
||||
this.dateFinEnch = dateFinEnch;
|
||||
this.prixInitial = prixInitial;
|
||||
this.prixVente = prixVente;
|
||||
this.Utilisateur = Utilisateur;
|
||||
this.numCategorie = numCategorie;
|
||||
public Article(int id, String nom, String desc, String photo, Date dateDebutEnch, Date dateFinEnch, float prixInitial, float prixVente, UserProfil Utilisateur, int numCategorie) {
|
||||
setId(id);
|
||||
setNom(nom);
|
||||
setDesc(desc);
|
||||
setPhoto(photo);
|
||||
setDateDebutEnch(dateDebutEnch);
|
||||
setDateFinEnch(dateFinEnch);
|
||||
setPrixInitial(prixInitial);
|
||||
setPrixVente(prixVente);
|
||||
setUtilisateur(Utilisateur);
|
||||
setNumCategorie(numCategorie);
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
@@ -53,6 +55,14 @@ public class Article {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getPhoto() {
|
||||
return photo;
|
||||
}
|
||||
|
||||
public void setPhoto(String photo) {
|
||||
this.photo = photo;
|
||||
}
|
||||
|
||||
public Date getDateDebutEnch() {
|
||||
return dateDebutEnch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user