add friendCode to userDTOs
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/pr-main Build started...

This commit is contained in:
Elias Harb
2026-01-29 23:21:57 +01:00
parent 53cfce5359
commit c3f291a08b
4 changed files with 27 additions and 5 deletions
@@ -23,10 +23,20 @@ public class MaximalUserDTO {
private Set<Friendship> friendships;
private String base64ProfilePicture;
public String getFriendCode() {
return friendCode;
}
public void setFriendCode(String friendCode) {
this.friendCode = friendCode;
}
private String friendCode;
public MaximalUserDTO() {
}
public MaximalUserDTO(Long id, String publicName, String privateName, String email, VisibilityPrivacy visibilityPrivacy, Set<Trip> trips, Set<Friendship> friendships, String base64ProfilePicture) {
public MaximalUserDTO(Long id, String publicName, String privateName, String email, VisibilityPrivacy visibilityPrivacy, Set<Trip> trips, Set<Friendship> friendships, String friendCode,String base64ProfilePicture) {
this.id = id;
this.publicName = publicName;
this.privateName = privateName;
@@ -35,6 +45,7 @@ public class MaximalUserDTO {
this.trips = trips;
this.friendships = friendships;
this.base64ProfilePicture = base64ProfilePicture;
this.friendCode = friendCode;
}