Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitTransportThreadAlert

@interface MMKMasstransitTransportThreadAlert : NSObject

TransportThreadAlert are important annotations for mass transit ride sections of routes.

Summary

Class methods

+ (nonnull MMKMasstransitTransportThreadAlert *)transportThreadAlertWithText:(nonnull NSString *)text
                                                                      closed:(nullable MMKMasstransitTransportThreadAlertClosed *)closed
                                                                 closedUntil:(nullable MMKMasstransitTransportThreadAlertClosedUntil *)closedUntil
                                                                    lastTrip:(nullable MMKMasstransitTransportThreadAlertLastTrip *)lastTrip;

Properties

@property (nonatomic, readonly, nonnull) NSString *text;
Standard alert text

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertClosed *closed;

The value is set if the thread is not operational on that day

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertClosedUntil *closedUntil;

The value is set if the thread is not operational until the specified time

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertLastTrip *lastTrip;

The value is set if this trip is the last trip for the thread

Class methods

transportThreadAlertWithText:closed:closedUntil:lastTrip:

+ (nonnull MMKMasstransitTransportThreadAlert *)transportThreadAlertWithText:(nonnull NSString *)text
                                                                      closed:(nullable MMKMasstransitTransportThreadAlertClosed *)closed
                                                                 closedUntil:(nullable MMKMasstransitTransportThreadAlertClosedUntil *)closedUntil
                                                                    lastTrip:(nullable MMKMasstransitTransportThreadAlertLastTrip *)lastTrip;


Properties

text

@property (nonatomic, readonly, nonnull) NSString *text;

Standard alert text. Simple clients could use this text to get a pre-formatted message. If the client is unable to recognize the known structured alert, it should use the text field instead.


closed

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertClosed *closed;

The value is set if the thread is not operational on that day. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.


closedUntil

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertClosedUntil *closedUntil;

The value is set if the thread is not operational until the specified time. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.


lastTrip

@property (nonatomic, readonly, nullable)
    MMKMasstransitTransportThreadAlertLastTrip *lastTrip;

The value is set if this trip is the last trip for the thread. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.