-
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 #98 from YAPP-Github/feature/TNT-180
[TNT-180] ํธ๋ ์ด๋ ํ ํ๋ฉด ์ฃผ๊ฐ ๊ธฐ๋ก ์ถ๋ ฅ API ์ฐ๋
- Loading branch information
Showing
10 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
data/network/src/main/java/co/kr/data/network/model/trainee/MonthlyRecordStateResponse.kt
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
data/network/src/main/java/co/kr/data/network/model/trainee/WeeklyRecordedDatesResponse.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package co.kr.data.network.model.trainee | ||
|
||
import co.kr.tnt.domain.model.trainee.TraineeDailyRecordStatus | ||
import co.kr.tnt.domain.utils.DateFormatter | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class WeeklyRecordedDatesResponse( | ||
val ptLessonDates: List<String>, | ||
) | ||
|
||
fun WeeklyRecordedDatesResponse.toDomain(dateFormatter: DateFormatter) = | ||
TraineeDailyRecordStatus( | ||
ptLessonDates.map { date -> | ||
dateFormatter.parse(date) | ||
}, | ||
) |
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
Oops, something went wrong.