-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/net/teumteum/meeting/domain/response/MeetingParticipantsForReviewResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.teumteum.meeting.domain.response; | ||
|
||
import java.util.List; | ||
import net.teumteum.user.domain.User; | ||
|
||
public record MeetingParticipantsForReviewResponse( | ||
List<MeetingParticipantForReviewResponse> participants | ||
) { | ||
|
||
public static MeetingParticipantsForReviewResponse of(List<User> users) { | ||
return new MeetingParticipantsForReviewResponse( | ||
users.stream() | ||
.map(user -> new MeetingParticipantForReviewResponse( | ||
user.getId(), | ||
user.getCharacterId(), | ||
user.getName(), | ||
user.getJob().getDetailJobClass())) | ||
.toList() | ||
); | ||
} | ||
|
||
public record MeetingParticipantForReviewResponse( | ||
Long id, | ||
Long characterId, | ||
String name, | ||
String job | ||
) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters