Service

@objc(Service)
public class Service : NSManagedObject

Undocumented

  • Undocumented

    Declaration

    Swift

    @objc
    public var sortedVisits: [StopVisits] { get }
  • Undocumented

    Declaration

    Swift

    public var lineName: String? { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var direction: String? { get set }
  • Undocumented

    Declaration

    Swift

    public var title: String { get }
  • Undocumented

    Declaration

    Swift

    public var shortIdentifier: String? { get }

Insertions

  • Undocumented

    Declaration

    Swift

    public static func fetchOrInsert(code: String, in context: NSManagedObjectContext) -> Service

Flag accessors

  • Undocumented

    Declaration

    Swift

    @objc
    public var isRealTime: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var isRealTimeCapable: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var isCanceled: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public var isBicycleAccessible: Bool { get set }

Accessors

  • Undocumented

    Declaration

    Swift

    public func allAlerts() -> [Alert]
  • Undocumented

    Declaration

    Swift

    @objc
    public var region: TKRegion? { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public var hasServiceData: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public var isFrequencyBased: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public var modeTitle: String? { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public func modeImage(for type: TKStyleModeIconType) -> TKImage?
  • Undocumented

    Declaration

    Swift

    @objc
    public func modeImageURL(for type: TKStyleModeIconType) -> URL?
  • Undocumented

    Declaration

    Swift

    public var modeImageIsTemplate: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func findModeInfo() -> TKModeInfo?
  • Undocumented

    Declaration

    Swift

    @nonobjc
    public class func fetchRequest() -> NSFetchRequest<Service>
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var code: String { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var color: TKColor? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var frequency: NSNumber? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var modeInfo: TKModeInfo? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var name: String? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var number: String? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var operatorID: String? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var operatorName: String? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var continuation: Service? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var progenitor: Service? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var shape: Shape? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var vehicle: Vehicle? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var vehicleAlternatives: Set<Vehicle>? { get set }
  • Undocumented

    Declaration

    Swift

    @NSManaged
    public var visits: Set<StopVisits>? { get set }
  • Undocumented

    Declaration

    Swift

    public func visit(for stopCode: String) -> StopVisits?
  • Undocumented

    Declaration

    Swift

    @objc(shapesForEmbarkation:disembarkingAt:)
    public func shapes(embarkation: StopVisits?, disembarkation: StopVisits?) -> [TKDisplayableRoute]
  • Accessibility of the service, i.e., a property of the vehicle. Note that whether you can get on the service will also depend on the accessibility of the stop. See StopVisits.getWheelchairAccessibility()

    Declaration

    Swift

    internal(set) var bicycleAccessibility: TKBicycleAccessibility { get set }

Wheelchair accessibility extensions

  • Accessibility of the service, i.e., a property of the vehicle. Note that whether you can get on the service will also depend on the accessibility of the stop. See StopVisits.getWheelchairAccessibility()

    Declaration

    Swift

    internal(set) var wheelchairAccessibility: TKWheelchairAccessibility { get set }