tripkit-android / com.skedgo.tripkit.common.model / ITimeRange

ITimeRange

interface ITimeRange

Functions

Name Summary
getEndTimeInSecs abstract fun getEndTimeInSecs():Long
getStartTimeInSecs abstract fun getStartTimeInSecs():Long
setEndTimeInSecs abstract fun setEndTimeInSecs(endTimeInSecs:Long):Unit
setStartTimeInSecs abstract fun setStartTimeInSecs(startTimeInSecs:Long):Unit

Inheritors

Name Summary
EventTrackItem open class EventTrackItem :TrackItem,ITimeRange
TimetableEntry (Aka Service)open class TimetableEntry : Parcelable,IRealTimeElement,ITimeRange,WheelchairAccessible
Trip A [`Trip`](../../com.skedgo.tripkit.routing/-trip/index.md) will mainly hold a list ofTripSegments which denotes how to go from [`Trip#getFrom()`](../../com.skedgo.tripkit.routing/-trip/get-from.md) toTrip#getTo(). open class Trip :ITimeRange
TripSegment To go from A to B, sometimes we have to travel X, Y, Z locations between A and B. That means, we travel A to X, then X to Y, then Y to Z, then Z to B which is the destination. To show how to travel from A to X, we use [`TripSegment`](../../com.skedgo.tripkit.routing/-trip-segment/index.md). So, in this case, a trip from A to B comprises 6 segments: - A segment whose type isSegmentType#DEPARTURE. - A segment from A to X. - A segment from X to Y. - A segment from Y to Z. - A segment from Z to B. - A segment whose type is `[SegmentType#ARRIVAL](../../com.skedgo.tripkit.routing/-segment-type/-a-r-r-i-v-a-l.md).open class TripSegment : [IRealTimeElement](../../com.skedgo.tripkit.common.agenda/-i-real-time-element/index.md), [ITimeRange`](./index.md)