/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.model/DeparturesResponse

DeparturesResponse

class DeparturesResponse

See also

departures.json API

Constructors

DeparturesResponse constructor()

Types

Name Summary
ServicesResponse data class ServicesResponse(val stopCode: String, val serviceList: List<TimetableEntry>?)

Properties

Name Summary
alerts @SerializedName(value = "alerts")
var alerts: List<RealtimeAlert>?
(Optional)
embarkationStopList @SerializedName(value = "embarkationStops")
var embarkationStopList: List<DeparturesResponse.ServicesResponse>?
error @SerializedName(value = "error")
var error: String?
(Optional)
hasError @SerializedName(value = "usererror")
var hasError: Boolean
(Optional)
parentInfo @SerializedName(value = "parentInfo")
val parentInfo: ScheduledStop? = null
(Optional)
serviceList val serviceList: List<TimetableEntry>?
stopList @SerializedName(value = "stops")
var stopList: List<ScheduledStop>?
(Optional)

Functions

Name Summary
postProcess fun DeparturesResponse.postProcess(embarkationStops: List<String>, disembarkationStops: List<String>?): DeparturesResponse
processEmbarkationStopList fun processEmbarkationStopList()
Assigns stop code into corresponding service