- Ajout de "l'url" de l'image dans User
This commit is contained in:
parent
434cc8dd2b
commit
c33b73a114
@ -20,15 +20,17 @@ public class User {
|
|||||||
private String address;
|
private String address;
|
||||||
private String country;
|
private String country;
|
||||||
private Date birthDate;
|
private Date birthDate;
|
||||||
|
private String profilePictureUrl;
|
||||||
private ovh.herisson.Clyde.Tables.Role role;
|
private ovh.herisson.Clyde.Tables.Role role;
|
||||||
private String password;
|
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.lastName = lastName;
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
this.email = email;
|
this.email = email;
|
||||||
this.address = address;
|
this.address = address;
|
||||||
this.country = country;
|
this.country = country;
|
||||||
this.birthDate = birthDate;
|
this.birthDate = birthDate;
|
||||||
|
this.profilePictureUrl = profilePictureUrl;
|
||||||
this.role = role;
|
this.role = role;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
@ -86,6 +88,11 @@ public class User {
|
|||||||
this.birthDate = birthDate;
|
this.birthDate = birthDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getProfilePictureUrl(){return this.profilePictureUrl;}
|
||||||
|
|
||||||
|
public void setProfilePictureUrl(String profilePictureUrl){
|
||||||
|
this.profilePictureUrl = profilePictureUrl;
|
||||||
|
}
|
||||||
public ovh.herisson.Clyde.Tables.Role getRole() {
|
public ovh.herisson.Clyde.Tables.Role getRole() {
|
||||||
return role;
|
return role;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user