Skip to content

Commit 238ff58

Browse files
committed
[feat] 사진 조회 API 수정 #56
1 parent e0ac8d0 commit 238ff58

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/data/src/main/java/com/neki/android/core/data/remote/model/response/FavoriteSummaryResponse.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.neki.android.core.data.remote.model.response
22

3-
import com.neki.android.core.model.Album
43
import com.neki.android.core.model.AlbumPreview
5-
import kotlinx.collections.immutable.persistentListOf
64
import kotlinx.serialization.SerialName
75
import kotlinx.serialization.Serializable
86

core/data/src/main/java/com/neki/android/core/data/remote/model/response/PhotoResponse.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ data class PhotoResponse(
1414
data class Item(
1515
@SerialName("contentType") val contentType: String,
1616
@SerialName("createdAt") val createdAt: String,
17+
@SerialName("favorite") val isFavorite: Boolean,
1718
@SerialName("folderId") val folderId: Long?,
1819
@SerialName("imageUrl") val imageUrl: String,
1920
@SerialName("photoId") val photoId: Long,
2021
) {
2122
internal fun toModel() = Photo(
2223
id = photoId,
2324
imageUrl = imageUrl,
25+
isFavorite = isFavorite,
2426
date = createdAt.toFormattedDate(),
2527
)
2628
}

0 commit comments

Comments
 (0)