Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ data class AlarmDto(
@SerializedName("memberId")
val memberId: String?,
@SerializedName("postId")
val postId: Long?
val postId: Long?,
@SerializedName("profileImage")
val profileImage: String?,
)
3 changes: 2 additions & 1 deletion data/src/main/java/daily/dayo/data/mapper/AlarmMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fun AlarmDto.toNotification(): Notification {
image = image,
nickname = nickname,
memberId = memberId,
postId = postId
postId = postId,
profileImage = profileImage,
)
}
3 changes: 2 additions & 1 deletion domain/src/main/java/daily/dayo/domain/model/Notification.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ data class Notification(
val image: String?,
val nickname: String?,
val memberId: String?,
val postId: Long?
val postId: Long?,
val profileImage: String?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fun NotificationContent(
nickname = "",
memberId = "",
postId = 0,
profileImage = "",
)
)
)
Expand Down Expand Up @@ -310,6 +311,7 @@ fun NotificationView(
nickname = "",
memberId = "",
postId = 0,
profileImage = "",
),
context: Context = LocalContext.current,
onClick: () -> Unit = {},
Expand Down Expand Up @@ -353,7 +355,7 @@ fun NotificationView(
modifier = Modifier.weight(1f),
) {
RoundImageView(
imageUrl = "", // TODO USER IMAGE Format: ${BuildConfig.BASE_URL}/images/
imageUrl = "${BuildConfig.BASE_URL}/images/${notification.profileImage}",
context = context,
modifier = Modifier
.size(28.dp)
Expand Down