sdk / com.sygic.travel.sdk.trips.facades / TripsFacade
TripsFacade
class TripsFacade
Trips facade provides interface for managing & processing user trips.
Functions
Name | Summary |
---|---|
emptyTripTrash | fun emptyTripTrash(): Unit |
fetchTrip | fun fetchTrip(id: String ): Trip ? Fetches trip from API without storing it into local db. |
getAllTrips | fun getAllTrips(): List < TripInfo > |
getDeletedTrips | fun getDeletedTrips(): List < TripInfo > |
getTrip | fun getTrip(id: String ): Trip ? |
getTrips | fun getTrips(from: LocalDate?, to: LocalDate?, includeOverlapping: Boolean = true): List < TripInfo > |
getUnscheduledTrips | fun getUnscheduledTrips(): List < TripInfo > |
importTrip | fun importTrip(trip: Trip ): Unit Imports trip into the storage. This method is internal and should not be used. |
saveTrip | fun saveTrip(trip: TripBase ): TripBase fun saveTrip(trip: Trip ): Trip |