Skip to content

Commit

Permalink
🌨 :: FeedResponse에 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Dec 30, 2023
1 parent c21fa40 commit c34b2e0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class FeedListResponse {

private boolean isLiked;

private int commentCount;

public FeedListResponse(Feed feed, boolean isLiked) {
this.id = feed.getId();
this.title = feed.getTitle();
Expand All @@ -38,6 +40,7 @@ public FeedListResponse(Feed feed, boolean isLiked) {
this.username = feed.getUser().getUsername();
this.profileImgUrl = feed.getUser().getProfileImgUrl();
this.isLiked = isLiked;
this.commentCount = feed.getComment().size();
}

}

0 comments on commit c34b2e0

Please sign in to comment.