-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
src/main/java/org/sopt/app/application/playground/dto/PlayGroundCoffeeChatResponse.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,18 @@ | ||
package org.sopt.app.application.playground.dto; | ||
|
||
import java.util.List; | ||
|
||
public record PlayGroundCoffeeChatResponse( | ||
Long memberId, | ||
String bio, | ||
List<String> topicTypeList, | ||
String profileImage, | ||
String name, | ||
String career, | ||
String organization, | ||
String companyJob, | ||
List<String> soptActivities, | ||
boolean isMine, | ||
boolean isBlind | ||
) { | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/sopt/app/application/playground/dto/PlayGroundCoffeeChatWrapper.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,10 @@ | ||
package org.sopt.app.application.playground.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
public record PlayGroundCoffeeChatWrapper( | ||
@JsonProperty("coffeeChatList") | ||
List<PlayGroundCoffeeChatResponse> coffeeChatList | ||
) { | ||
} |
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
34 changes: 34 additions & 0 deletions
34
src/main/java/org/sopt/app/presentation/home/response/CoffeeChatResponse.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,34 @@ | ||
package org.sopt.app.presentation.home.response; | ||
|
||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import org.sopt.app.application.playground.dto.PlayGroundCoffeeChatResponse; | ||
|
||
@Getter | ||
@Builder | ||
public class CoffeeChatResponse { | ||
private Long memberId; | ||
private String bio; | ||
private List<String> topicTypeList; | ||
private String profileImage; | ||
private String name; | ||
private String career; | ||
private String organization; | ||
private String companyJob; | ||
private List<String> soptActivities; | ||
|
||
public static CoffeeChatResponse of(PlayGroundCoffeeChatResponse playGroundCoffeeChatResponse){ | ||
return CoffeeChatResponse.builder() | ||
.memberId(playGroundCoffeeChatResponse.memberId()) | ||
.bio(playGroundCoffeeChatResponse.bio()) | ||
.topicTypeList(playGroundCoffeeChatResponse.topicTypeList()) | ||
.profileImage(playGroundCoffeeChatResponse.profileImage()) | ||
.name(playGroundCoffeeChatResponse.name()) | ||
.career(playGroundCoffeeChatResponse.career()) | ||
.organization(playGroundCoffeeChatResponse.organization()) | ||
.companyJob(playGroundCoffeeChatResponse.companyJob()) | ||
.soptActivities(playGroundCoffeeChatResponse.soptActivities()) | ||
.build(); | ||
} | ||
} |