-
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.
- Loading branch information
1 parent
ef5c4c1
commit e1afaa9
Showing
3 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
core/data/src/main/kotlin/com/withpeace/withpeace/core/data/mapper/ChangedProfileMapper.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,11 +1,12 @@ | ||
package com.withpeace.withpeace.core.data.mapper | ||
|
||
import com.withpeace.withpeace.core.domain.model.profile.ChangedProfile | ||
import com.withpeace.withpeace.core.domain.model.profile.Nickname | ||
import com.withpeace.withpeace.core.network.di.response.ChangedProfileResponse | ||
|
||
fun ChangedProfileResponse.toDomain(): ChangedProfile { | ||
return ChangedProfile( | ||
nickname = this.nickname, | ||
nickname = Nickname.create(this.nickname), | ||
profileImageUrl = profileImageUrl, | ||
) | ||
} |
4 changes: 2 additions & 2 deletions
4
.../domain/src/main/java/com/withpeace/withpeace/core/domain/model/profile/ChangedProfile.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,6 +1,6 @@ | ||
package com.withpeace.withpeace.core.domain.model.profile | ||
|
||
data class ChangedProfile( | ||
val nickname: String, | ||
val profileImageUrl: String, | ||
val nickname: Nickname?, | ||
val profileImageUrl: String?, | ||
) |
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