Skip to content

Commit

Permalink
Add filds to TripResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Sep 24, 2024
1 parent 43702a1 commit 0a7edf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ data class TripResponse(
data class DestinationProperties(
@SerialName("wheelchairAccess") val wheelchairAccess: String? = null,
@SerialName("downloads") val downloads: List<Download>? = null,
@SerialName("NumberOfCars") val numberOfCars: String? = null,
@SerialName("TravelInCarsFrom") val travelInCarsFrom: String? = null,
@SerialName("TravelInCarsTo") val travelInCarsTo: String? = null,
@SerialName("TravelInCarsMessage") val travelInCarsMessage: String? = null,
@SerialName("occupancy") val occupancy: String? = null,
)

@Serializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class RealTripPlanningRepository @Inject constructor(
override suspend fun trip(): Result<TripResponse> = suspendSafeResult(ioDispatcher) {
tripPlanningService.trip(
depArrMacro = "dep",
nameOrigin = "221620",
nameDestination = "200060",
nameOrigin = "214710",
nameDestination = "204210",
).toSafeResult()
}
}
Expand Down

0 comments on commit 0a7edf2

Please sign in to comment.