-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiplatform JSON parsing (kotlinx.serialization) (#5442)
* Use kotlinx.serialization in TrafficFlowSegmentsApi * Use kotlinx.serialization in StatisticsParser I checked that API: - does not return trailing commas - returns false, not "false" * Use kotlinx.serialization in StreetCompleteImageUploader * Apply suggestions from code review
- Loading branch information
Showing
6 changed files
with
87 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
...main/java/de/westnordost/streetcomplete/quests/oneway_suspects/data/TrafficFlowSegment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package de.westnordost.streetcomplete.quests.oneway_suspects.data | ||
|
||
import de.westnordost.streetcomplete.data.osm.mapdata.LatLon | ||
import kotlinx.serialization.Serializable | ||
|
||
data class TrafficFlowSegment(val fromPosition: LatLon, val toPosition: LatLon) | ||
@Serializable | ||
data class TrafficFlowSegment( | ||
val wayId: Long, | ||
val fromPosition: LatLon, | ||
val toPosition: LatLon, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters