Arthur Brandao hace 5 años
padre
commit
4c5bf97ab3
Se han modificado 1 ficheros con 23 adiciones y 0 borrados
  1. 23 0
      src/microfolie/service/dto/UsagerDTO.java

+ 23 - 0
src/microfolie/service/dto/UsagerDTO.java

@@ -13,6 +13,7 @@ public class UsagerDTO {
 	public String email;
 	public String telephone;
 	public String contactUrgence;
+	public String code;
 	
 	public UsagerDTO() {
 		// Constructeur par defaut pour contruire un objet vide
@@ -30,6 +31,20 @@ public class UsagerDTO {
 		this.telephone = telephone;
 		this.contactUrgence = contactUrgence;
 	}
+	
+	public UsagerDTO(String nom, String prenom, String genre, Date dateNaissance, String ville, String situation,
+			String email, String telephone, String contactUrgence, String code) {
+		this.nom = nom;
+		this.prenom = prenom;
+		this.genre = genre;
+		this.dateNaissance = dateNaissance;
+		this.ville = ville;
+		this.situation = situation;
+		this.email = email;
+		this.telephone = telephone;
+		this.contactUrgence = contactUrgence;
+		this.code = code;
+	}
 
 	public String getNom() {
 		return nom;
@@ -103,4 +118,12 @@ public class UsagerDTO {
 		this.contactUrgence = contactUrgence;
 	}
 	
+	public String getCode() {
+		return code;
+	}
+	
+	public void setCode(String code) {
+		this.code = code;
+	}
+	
 }