tripkit-android / com.skedgo.tripkit.common.util / TripSegmentListResolver

TripSegmentListResolver

open class TripSegmentListResolver

Puts a Departure segment before head of, and puts an Arrival segment after tail of a segment list.

Also, fills identifiers for segments.

Constructors

Name Summary
<init> TripSegmentListResolver(resources: Resources!)

Functions

Name Summary
createArrivalSegment Creates the Arrival segment from the last segmentopen fun createArrivalSegment(lastSegment:TripSegment!):TripSegment!
createDepartureSegment Creates the Departure segment from the first segmentopen fun createDepartureSegment(firstSegment:TripSegment!):TripSegment!
resolve open fun resolve():Unit
setDestination open fun setDestination(destination:Location!):TripSegmentListResolver!
setOrigin open fun setOrigin(origin:Location!):TripSegmentListResolver!
setTripSegmentList open fun setTripSegmentList(tripSegmentList:MutableList<TripSegment!>!):TripSegmentListResolver!