Skip to content

Commit

Permalink
Merge pull request #103 from Me1tingPot/feature/#102
Browse files Browse the repository at this point in the history
feat : 채팅방 목록 조회 기획 변경 적용
  • Loading branch information
yewonahn authored Jun 21, 2024
2 parents d89ffbd + 49c9372 commit 94d863f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public record ChatRoomGetResponse(
String partyLocationAddress,
LocalDateTime partyStartTime,
int userCnt,
int partyMinParticipant,
int partyMaxParticipant,
int messageCnt
) {
public static ChatRoomGetResponse from(ChatRoomUser chatRoomUser) {
Expand All @@ -33,6 +35,8 @@ public static ChatRoomGetResponse from(ChatRoomUser chatRoomUser) {
chatRoomUser.getChatRoom().getParty().getPartyLocationAddress(),
chatRoomUser.getChatRoom().getParty().getPartyStartTime(),
chatRoomUser.getChatRoom().getChatRoomUserList().size(),
chatRoomUser.getChatRoom().getParty().getPartyMinParticipant(),
chatRoomUser.getChatRoom().getParty().getPartyMaxParticipant(),
chatRoomUser.getUnreadMessageCnt()
);
}
Expand Down

0 comments on commit 94d863f

Please sign in to comment.