File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
data/src/main/java/com/stop/data/remote/model/nowlocation/subway Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
package com.stop.data.remote.model.nowlocation.subway
2
2
3
- import android.util.Log
3
+ import com.squareup.moshi.Json
4
4
import com.squareup.moshi.JsonClass
5
5
import com.stop.data.model.nowlocation.SubwayTrainRealTimePositionRepositoryItem
6
6
7
7
@JsonClass(generateAdapter = true )
8
8
data class SubwayTrainNowLocationResponse (
9
- val realtimePositionList : List <TrainLocationInfo >
9
+ @Json(name = " realtimePositionList" )
10
+ val realtimePositions : List <TrainLocationInfo >
10
11
) {
11
12
fun toRepositoryModel (trainNumber : String ): SubwayTrainRealTimePositionRepositoryItem {
12
- Log .d(" MissionFragment" ," mission ${realtimePositionList.first { it.trainNumber == trainNumber }} " )
13
-
14
- return realtimePositionList.first { it.trainNumber == trainNumber }.run {
13
+ return realtimePositions.first { it.trainNumber == trainNumber }.run {
15
14
SubwayTrainRealTimePositionRepositoryItem (
16
15
subwayId = subwayId,
17
16
subwayName = stationName,
You can’t perform that action at this time.
0 commit comments