1.24 -> 1.25
Trip Service changes
geometryis removed fromTrip.Expansion. Please usepointsinstead. Check here for more info on newly added expansions.
tripService.fetch(expansions: [.points, .vehicle], { result: Result<Content?>? ->
if (result?.value == null || result.throwable != null) {
// failure
} else {
// Success
val content = result.value
}
})TripService.fetchandTripService.fetchAllaccepts one more parameter asrolesto filter roles while fetching trips
tripService.fetch(expansions: [.points, .vehicle], roles: [.driver], { result: Result<Content?>? ->
if (result?.value == null || result.throwable != null) {
// failure
} else {
// Success
val content = result.value
}
})Adding Vehicle ID to trip files
AccountRole Enum Expanded:
Two new cases have been added to the AccountRole enum:
namedDriver (for the "
NAMED_DRIVER" role)nonDrivingOwner (for the "
NON_DRIVING_OWNER" role)If you use AccountRole in switch statements, you must handle the new cases (
NAMED_DRIVERandNON_DRIVING_OWNER) to avoid compiler errors or unexpected behavior.
DsDevice Changes:
The DsDevice's batteryLevel property type is changed from Float to Int
var batteryLevel: Int?
Last updated