Skip to content

Commit

Permalink
Merge pull request #29 from Nexters/feature/22-add-webcam-slope-id
Browse files Browse the repository at this point in the history
[#22] 스키장 슬로프, 웹캠 정보 조회 API 식별자 추가
  • Loading branch information
jun108059 authored Nov 28, 2024
2 parents 60c1efa + 2dcf4ad commit f6e50cb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/kotlin/nexters/weski/slope/SlopeDto.kt
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
package nexters.weski.slope

data class SlopeDto(
val slopeId: Long,
val name: String,
val difficulty: String,
val isDayOperating: Boolean,
val isNightOperating: Boolean,
val isLateNightOperating: Boolean,
val isDawnOperating: Boolean,
val isMidnightOperating: Boolean
val isMidnightOperating: Boolean,
val webcamNo: Int?
) {
companion object {
fun fromEntity(entity: Slope): SlopeDto {
return SlopeDto(
slopeId = entity.id,
name = entity.name,
difficulty = entity.difficulty.name,
isDayOperating = entity.isDayOperating,
isNightOperating = entity.isNightOperating,
isLateNightOperating = entity.isLateNightOperating,
isDawnOperating = entity.isDawnOperating,
isMidnightOperating = entity.isMidnightOperating
isMidnightOperating = entity.isMidnightOperating,
webcamNo = entity.webcamNumber
)
}
}
}
}

0 comments on commit f6e50cb

Please sign in to comment.