-
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.
Merge pull request #115 from YAPP-Github/feature/TNT-242
[TNT-242] ์๋ฆผ ๋ฅ๋งํฌ ๊ตฌํ
- Loading branch information
Showing
17 changed files
with
179 additions
and
46 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#FF472F</color> | ||
</resources> | ||
<color name="ic_notification_background">#FF472F</color> | ||
</resources> |
45 changes: 29 additions & 16 deletions
45
data/network/src/main/java/co/kr/data/network/model/ConnectedTraineeResponse.kt
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 |
---|---|---|
@@ -1,30 +1,43 @@ | ||
package co.kr.data.network.model | ||
|
||
import co.kr.tnt.domain.model.ConnectedResult | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ConnectedTraineeResponse( | ||
val trainerName: String, | ||
val trainee: Trainee, | ||
val trainer: Trainer, | ||
) | ||
|
||
@Serializable | ||
data class Trainee( | ||
val traineeName: String, | ||
val trainerProfileImageUrl: String?, | ||
val traineeProfileImageUrl: String?, | ||
val traineeAge: Int, | ||
val height: Double, | ||
val weight: Double, | ||
val ptGoal: String, | ||
val traineeProfileImageUrl: String, | ||
val cautionNote: String?, | ||
val height: Double?, | ||
val ptGoal: String, | ||
val traineeAge: Int?, | ||
val weight: Double?, | ||
) | ||
|
||
@Serializable | ||
data class Trainer( | ||
@SerialName("trainerName") | ||
val trainerName: String, | ||
@SerialName("trainerProfileImageUrl") | ||
val trainerProfileImageUrl: String, | ||
) | ||
|
||
fun ConnectedTraineeResponse.toDomain(): ConnectedResult = | ||
ConnectedResult( | ||
trainerName = trainerName, | ||
traineeName = traineeName, | ||
trainerImage = trainerProfileImageUrl, | ||
traineeImage = traineeProfileImageUrl, | ||
age = traineeAge, | ||
height = height, | ||
weight = weight, | ||
ptGoal = ptGoal, | ||
cautionNote = cautionNote, | ||
trainerName = trainer.trainerName, | ||
traineeName = trainee.traineeName, | ||
trainerImage = trainer.trainerProfileImageUrl, | ||
traineeImage = trainee.traineeProfileImageUrl, | ||
age = trainee.traineeAge, | ||
height = trainee.height, | ||
weight = trainee.weight, | ||
ptGoal = trainee.ptGoal, | ||
cautionNote = trainee.cautionNote, | ||
) |
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
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
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