Alert

Objective-C

@interface Alert : NSManagedObject

@property (nonatomic, retain, nullable) TKNamedCoordinate *location;
@property (nonatomic, retain) NSNumber * hashCode;
@property (nonatomic, copy, nullable) NSString * title;
@property (nonatomic, retain, nullable) NSString * text;
@property (nonatomic, retain, nullable) NSString * url;
@property (nonatomic, retain, nullable) NSString * remoteIcon;
@property (nonatomic, retain) NSNumber * severity; // Don't access this, use alertSeverity instead
@property (nonatomic, retain, nullable) NSDate * startTime;
@property (nonatomic, retain, nullable) NSDate * endTime;
@property (nonatomic, retain, nullable) NSDictionary<NSString *, id> *action;

@property (nonatomic, retain, nullable) NSString *idService;
@property (nonatomic, retain, nullable) NSString *idStopCode;

// Non core-data properties
@property (nonatomic, assign) TKAlertSeverity alertSeverity;
@property (nonatomic, readonly, nullable) NSURL *imageURL;

+ (nullable instancetype)fetchAlertWithHashCode:(NSNumber *)hashCode
                               inTripKitContext:(NSManagedObjectContext *)tripKitContext;

+ (NSArray<Alert *> *)fetchAlertsWithHashCodes:(NSArray *)hashCodes
                              inTripKitContext:(NSManagedObjectContext *)tripKitContext
                          sortedByDistanceFrom:(CLLocationCoordinate2D)coordinate;

+ (NSArray<Alert *> *)fetchAlertsForService:(Service *)service;

+ (NSArray<Alert *> *)fetchAlertsForStopLocation:(StopLocation *)stopLocation;

@end
extension Alert: MKAnnotation

Swift

class Alert : NSManagedObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) TKNamedCoordinate *location

    Swift

    var location: TKNamedCoordinate? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) NSNumber * hashCode

    Swift

    var hashCode: NSNumber { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString * title

    Swift

    var title: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString * text

    Swift

    var text: String? { get set }
  • url

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString * url

    Swift

    var url: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString * remoteIcon

    Swift

    var remoteIcon: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) NSNumber * severity

    Swift

    var severity: NSNumber { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSDate * startTime

    Swift

    var startTime: Date? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSDate * endTime

    Swift

    var endTime: Date? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSDictionary<NSString *, id> *action

    Swift

    var action: [String : Any]? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString *idService

    Swift

    var idService: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString *idStopCode

    Swift

    var idStopCode: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) TKAlertSeverity alertSeverity

    Swift

    var alertSeverity: TKAlertSeverity { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *imageURL

    Swift

    var imageURL: URL? { get }
  • Undocumented

    Declaration

    Objective-C

    + (nullable instancetype)fetchAlertWithHashCode:(NSNumber *)hashCode
                                   inTripKitContext:(NSManagedObjectContext *)tripKitContext;

    Swift

    class func fetch(withHashCode hashCode: NSNumber, inTripKitContext tripKitContext: NSManagedObjectContext) -> Self?
  • Undocumented

    Declaration

    Objective-C

    + (NSArray<Alert *> *)fetchAlertsWithHashCodes:(NSArray *)hashCodes
                                  inTripKitContext:(NSManagedObjectContext *)tripKitContext
                              sortedByDistanceFrom:(CLLocationCoordinate2D)coordinate;

    Swift

    class func fetchAlerts(withHashCodes hashCodes: [Any], inTripKitContext tripKitContext: NSManagedObjectContext, sortedByDistanceFrom coordinate: CLLocationCoordinate2D) -> [Alert]
  • Undocumented

    Declaration

    Objective-C

    + (NSArray<Alert *> *)fetchAlertsForService:(Service *)service;

    Swift

    class func fetchAlerts(for service: Service) -> [Alert]
  • Undocumented

    Declaration

    Objective-C

    + (NSArray<Alert *> *)fetchAlertsForStopLocation:(StopLocation *)stopLocation;

    Swift

    class func fetchAlerts(for stopLocation: StopLocation) -> [Alert]
  • Declaration

    Swift

    public enum ActionTypeIdentifier
  • Declaration

    Swift

    @objc
    public var infoIconType: TKInfoIconType { get }
  • This is an array of stopCode. A non-empty value indicates the alert requires a reroute action because, e.g., the stops have become inaccessible. This property is typically passed to a routing request as stops to avoid during routing.

    Declaration

    Swift

    public var stopsExcludedFromRouting: [String] { get }

MKAnnotation

  • Declaration

    Swift

    public var coordinate: CLLocationCoordinate2D { get }