-
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.
Browse files
Browse the repository at this point in the history
Feat/#161 찜하기 기능 구현
- Loading branch information
Showing
63 changed files
with
1,276 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Gradle files | ||
.gradle/ | ||
build/ | ||
.kotlin/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
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
17 changes: 17 additions & 0 deletions
17
...ain/kotlin/com/withpeace/withpeace/core/data/mapper/youthpolicy/BookmarkedPolicyMapper.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 com.withpeace.withpeace.core.data.mapper.youthpolicy | ||
|
||
import com.withpeace.withpeace.core.domain.model.policy.BookmarkedPolicy | ||
import com.withpeace.withpeace.core.network.di.response.policy.BookmarkedPolicyResponse | ||
|
||
fun BookmarkedPolicyResponse.toDomain(): BookmarkedPolicy { | ||
return BookmarkedPolicy( | ||
id = id, | ||
title = title, | ||
introduce = introduce, | ||
ageInfo = ageInfo, | ||
classification = classification.codeToPolicyClassification(), | ||
region = region.codeToRegion(), | ||
isActive = isActive, | ||
isBookmarked = true, // Bookmarked 된 데이터들 이므로 true 설정 | ||
) | ||
} |
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.