DLSEntry
@objc(DLSEntry)
public class DLSEntry : StopVisits
A DLSEntry
represents the connection of a particular service starting at a particular stop and going all the way an end stop without the passanger having to get off.
Note
The arrival represents arriving at the endStop
not arriving at the starting stop
as is the case for usual instances of StopVisits
. This means that arrival
is always after (or at the same time as) as departure
.
Note
The service
might not be the same when arriving at endStop
but it can instead be one of the start’s
-
Creates a predicate to query the database for DLS entries for the specified list of pair identifiers after the given date and using the specific filter.
Declaration
Swift
public static func departuresPredicate(pairs: Set<String>, from date: Date, filter: String = "") -> NSPredicate
Parameters
pairs
Strings matched against the
pairIdentifier
of the DLS entries.date
Starting date and time.
filter
Filter which the returnes DLS entries must match.
Return Value
Predicate to query CoreData with
-
Undocumented
Declaration
Swift
public static func fetchDLSEntries(pairs: Set<String>, from date: Date, limit: Int, in context: NSManagedObjectContext) -> [DLSEntry]
-
Undocumented
Declaration
Swift
public static func clearAllEntries(in context: NSManagedObjectContext)
-
Undocumented
Declaration
Swift
public override var wantsRealTimeUpdates: Bool { get }
-
Undocumented
Declaration
Swift
public var arrivalPlatform: String? { get }
-
Undocumented
Declaration
Swift
@nonobjc public class func fetchRequest() -> NSFetchRequest<DLSEntry>
-
The destination. It should not be a parent stop. The time to get off is the
arrival
of thisDLSEntry
.See
SeeStopVisits
superclassDeclaration
Swift
@NSManaged public var endStop: StopLocation { get set }
-
Undocumented
Declaration
Swift
@NSManaged public var endPlatform: String? { get set }
-
Undocumented
Declaration
Swift
@NSManaged public var timetableEndPlatform: String? { get set }