From c33b73a1145d109b6c9cd61442d7c567a2a3efe1 Mon Sep 17 00:00:00 2001 From: LeoMoulin Date: Thu, 7 Mar 2024 19:12:48 +0100 Subject: [PATCH] - Ajout de "l'url" de l'image dans User --- .../src/main/java/ovh/herisson/Clyde/Tables/User.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Tables/User.java b/backend/src/main/java/ovh/herisson/Clyde/Tables/User.java index 746ac3b..95467a4 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Tables/User.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Tables/User.java @@ -20,15 +20,17 @@ public class User { private String address; private String country; private Date birthDate; + private String profilePictureUrl; private ovh.herisson.Clyde.Tables.Role role; private String password; - public User(String lastName, String firstName, String email, String address, String country, Date birthDate, Role role, String password){ + public User(String lastName, String firstName, String email, String address, String country, Date birthDate, String profilePictureUrl, Role role, String password){ this.lastName = lastName; this.firstName = firstName; this.email = email; this.address = address; this.country = country; this.birthDate = birthDate; + this.profilePictureUrl = profilePictureUrl; this.role = role; this.password = password; } @@ -86,6 +88,11 @@ public class User { this.birthDate = birthDate; } + public String getProfilePictureUrl(){return this.profilePictureUrl;} + + public void setProfilePictureUrl(String profilePictureUrl){ + this.profilePictureUrl = profilePictureUrl; + } public ovh.herisson.Clyde.Tables.Role getRole() { return role; }