Skip to content

Commit f6e50cb

Browse files
authored
Merge pull request #29 from Nexters/feature/22-add-webcam-slope-id
[#22] 스키장 슬로프, 웹캠 정보 조회 API 식별자 추가
2 parents 60c1efa + 2dcf4ad commit f6e50cb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
package nexters.weski.slope
22

33
data class SlopeDto(
4+
val slopeId: Long,
45
val name: String,
56
val difficulty: String,
67
val isDayOperating: Boolean,
78
val isNightOperating: Boolean,
89
val isLateNightOperating: Boolean,
910
val isDawnOperating: Boolean,
10-
val isMidnightOperating: Boolean
11+
val isMidnightOperating: Boolean,
12+
val webcamNo: Int?
1113
) {
1214
companion object {
1315
fun fromEntity(entity: Slope): SlopeDto {
1416
return SlopeDto(
17+
slopeId = entity.id,
1518
name = entity.name,
1619
difficulty = entity.difficulty.name,
1720
isDayOperating = entity.isDayOperating,
1821
isNightOperating = entity.isNightOperating,
1922
isLateNightOperating = entity.isLateNightOperating,
2023
isDawnOperating = entity.isDawnOperating,
21-
isMidnightOperating = entity.isMidnightOperating
24+
isMidnightOperating = entity.isMidnightOperating,
25+
webcamNo = entity.webcamNumber
2226
)
2327
}
2428
}
25-
}
29+
}

0 commit comments

Comments
 (0)