Skip to content

Commit

Permalink
feat : api 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HamBP committed Jan 14, 2025
1 parent 0dcc64c commit 839d0a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import kotlinx.serialization.Serializable
internal data class PopupResponse(
val id: String,
val type: PopupType,
val eventUrl: String?,
val view: String?,
val noticeTitle: String?,
val description: String,
val startDate: String,
Expand All @@ -18,7 +20,8 @@ internal data class PopupResponse(
id = id,
startDate = startDate.toLocalDateTime(),
endDate = endDate.toLocalDateTime(),
imageUrl = description
imageUrl = description,
eventUrl = eventUrl,
)

PopupType.NOTICE -> Popup.Notice(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sealed interface Popup {
override val startDate: LocalDateTime,
override val endDate: LocalDateTime,
val imageUrl: String,
val eventUrl: String?,
) : Popup

data class Notice(
Expand Down

0 comments on commit 839d0a3

Please sign in to comment.