TKDeparturesProvider

extension TKDeparturesProvider
  • Undocumented

    Declaration

    Swift

    public class func fetchDepartures(forStopCodes stopCodes: [String], fromDate: Date, limit: Int = 10, in region: TKRegion) -> Single<TKAPI.Departures>
  • Undocumented

    Declaration

    Swift

    public class func streamDepartures(forStopCodes stopCodes: [String], limit: Int = 10, in region: TKRegion, repeatHandler: ((Int?, TKAPI.Departures) -> TimeInterval?)? = nil) -> Observable<TKAPI.Departures>
  • Undocumented

    Declaration

    Swift

    public class func downloadDepartures(for stops: [StopLocation], fromDate: Date, limit: Int = 10) -> Single<Bool>

Departures.json for stop-to-stop

  • Undocumented

    Declaration

    Swift

    @objc(queryParametersForDLSTable:fromDate:limit:)
    public class func queryParameters(for table: TKDLSTable, fromDate: Date, limit: Int) -> [String : Any]
  • Undocumented

    Declaration

    Swift

    public class func fetchDepartures(for table: TKDLSTable, fromDate: Date = Date(), limit: Int = 10) -> Single<TKAPI.Departures>
  • Undocumented

    Declaration

    Swift

    public class func downloadDepartures(for table: TKDLSTable, fromDate: Date, limit: Int = 10) -> Single<Set<String>>