Commit d50478f9 authored by Rafi Baum's avatar Rafi Baum

[rdb18] Add photo to friend

parent 9c56009e
Pipeline #152578 passed with stages
in 1 minute and 56 seconds
......@@ -21,6 +21,7 @@ public class FriendSerializer extends StdSerializer<List<Profile>> {
class Friend {
private int id;
private String email;
private String photo;
public int getId() {
return id;
......@@ -37,6 +38,14 @@ public class FriendSerializer extends StdSerializer<List<Profile>> {
public void setEmail(String email) {
this.email = email;
}
public String getPhoto() {
return photo;
}
public void setPhoto(String photo) {
this.photo = photo;
}
}
@Override
......@@ -46,6 +55,7 @@ public class FriendSerializer extends StdSerializer<List<Profile>> {
Friend friend = new Friend();
friend.setId(profile.getId());
friend.setEmail(profile.getEmail());
friend.setPhoto(profile.getPhoto());
friends.add(friend);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment