File tree Expand file tree Collapse file tree 3 files changed +20
-26
lines changed
data/src/main/java/com/stop/data/remote/model/route/gyeonggi Expand file tree Collapse file tree 3 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,14 @@ internal data class GyeonggiBusLastTime(
22
22
@PropertyElement(name = " nPeekAlloc" )
23
23
val maxTerm : String , // 최대 배차시간
24
24
) {
25
- fun toDomain (): com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime {
26
- return com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime (
27
- upLastTime = upLastTime,
28
- startStationId = startStationId,
29
- startStationName = startStationName,
30
- downLastTime = downLastTime,
31
- endStationId = endStationId,
32
- endStationName = endStationName,
33
- minTerm = minTerm,
34
- maxTerm = maxTerm,
35
- )
36
- }
25
+ fun toDomain () = com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime (
26
+ upLastTime = upLastTime,
27
+ startStationId = startStationId,
28
+ startStationName = startStationName,
29
+ downLastTime = downLastTime,
30
+ endStationId = endStationId,
31
+ endStationName = endStationName,
32
+ minTerm = minTerm,
33
+ maxTerm = maxTerm,
34
+ )
37
35
}
Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ internal data class GyeonggiBusRoute(
10
10
@PropertyElement(name = " routeName" )
11
11
val busName : String ,
12
12
) {
13
- fun toDomain (): com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute {
14
- return com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute (
15
- routeId = routeId,
16
- busName = busName,
17
- )
18
- }
13
+ fun toDomain () = com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute (
14
+ routeId = routeId,
15
+ busName = busName,
16
+ )
19
17
}
Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ internal data class GyeonggiBusStation(
14
14
@PropertyElement(name = " y" )
15
15
val latitude : String ,
16
16
) {
17
- fun toDomain (): com.stop.domain.model.route.gyeonggi.GyeonggiBusStation {
18
- return com.stop.domain.model.route.gyeonggi.GyeonggiBusStation (
19
- stationId = stationId,
20
- stationName = stationName,
21
- longitude = longitude,
22
- latitude = latitude,
23
- )
24
- }
17
+ fun toDomain () = com.stop.domain.model.route.gyeonggi.GyeonggiBusStation (
18
+ stationId = stationId,
19
+ stationName = stationName,
20
+ longitude = longitude,
21
+ latitude = latitude,
22
+ )
25
23
}
You can’t perform that action at this time.
0 commit comments