25 lines
1021 B
Kotlin
25 lines
1021 B
Kotlin
package kr.co.vividnext.sodalive.event
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
|
import com.fasterxml.jackson.annotation.JsonProperty
|
|
import com.querydsl.core.annotations.QueryProjection
|
|
|
|
data class GetEventResponse(
|
|
@JsonProperty("totalCount") val totalCount: Int,
|
|
@JsonProperty("eventList") val eventList: List<EventItem>
|
|
)
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
data class EventItem @QueryProjection constructor(
|
|
@JsonProperty("id") val id: Long,
|
|
@JsonProperty("title") val title: String? = null,
|
|
@JsonProperty("thumbnailImageUrl") var thumbnailImageUrl: String,
|
|
@JsonProperty("detailImageUrl") var detailImageUrl: String? = null,
|
|
@JsonProperty("popupImageUrl") var popupImageUrl: String? = null,
|
|
@JsonProperty("startDate") var startDate: String,
|
|
@JsonProperty("endDate") var endDate: String,
|
|
@JsonProperty("link") val link: String? = null,
|
|
@JsonProperty("isAdult") val isAdult: Boolean? = null,
|
|
@JsonProperty("isPopup") val isPopup: Boolean
|
|
)
|