Skip to content

Commit 292be16

Browse files
support name_en column
1 parent 29b7243 commit 292be16

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/main/java/org/qo/services/transportationServices/TransportationServiceImpl.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import java.util.PriorityQueue
1111
data class Station(
1212
@SerializedName("name") val NAME: String,
1313
@SerializedName("id") val ID: String,
14-
@SerializedName("screen_location")val SCREEN_LOCATION: Array<Location>
14+
@SerializedName("screen_location")val SCREEN_LOCATION: Array<Location>,
15+
@SerializedName("name_en")val NAME_EN: String
1516
) {
1617
override fun equals(other: Any?): Boolean {
1718
if (this === other) return true
@@ -216,7 +217,8 @@ class TransportationServiceImpl {
216217
Station(
217218
NAME = rs.getString("name"),
218219
ID = rs.getString("id"),
219-
SCREEN_LOCATION = parseLocations(rs.getString("screen_location"))
220+
SCREEN_LOCATION = parseLocations(rs.getString("screen_location")),
221+
NAME_EN = rs.getString("name_en"),
220222
)
221223
)
222224
}
@@ -236,7 +238,8 @@ class TransportationServiceImpl {
236238
return Station(
237239
NAME = rs.getString("name"),
238240
ID = rs.getString("id"),
239-
SCREEN_LOCATION = parseLocations(rs.getString("screen_location"))
241+
SCREEN_LOCATION = parseLocations(rs.getString("screen_location")),
242+
NAME_EN = rs.getString("name_en"),
240243
)
241244
}
242245
}
@@ -261,7 +264,8 @@ class TransportationServiceImpl {
261264
Station(
262265
NAME = rs.getString("name"),
263266
ID = rs.getString("id"),
264-
SCREEN_LOCATION = parseLocations(rs.getString("screen_location"))
267+
SCREEN_LOCATION = parseLocations(rs.getString("screen_location")),
268+
NAME_EN = rs.getString("name_en"),
265269
)
266270
)
267271
}
@@ -581,7 +585,8 @@ class TransportationServiceImpl {
581585
val station = Station(
582586
NAME = rs.getString("name"),
583587
ID = rs.getString("id"),
584-
SCREEN_LOCATION = parseLocations(rs.getString("screen_location"))
588+
SCREEN_LOCATION = parseLocations(rs.getString("screen_location")),
589+
NAME_EN = rs.getString("name_en"),
585590
)
586591
result[station.ID] = station
587592
}

0 commit comments

Comments
 (0)