Warning

This feature is available in the Full MapKit SDK version

YMKMasstransitTransportThreadAlert

@interface YMKMasstransitTransportThreadAlert : NSObject

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

Summary

Class methods

+ (nonnull YMKMasstransitTransportThreadAlert *)transportThreadAlertWithText:(nonnull NSString *)text
                                                                      closed:(nullable YMKMasstransitTransportThreadAlertClosed *)closed
                                                                 closedUntil:(nullable YMKMasstransitTransportThreadAlertClosedUntil *)closedUntil
                                                                    lastTrip:(nullable YMKMasstransitTransportThreadAlertLastTrip *)lastTrip;

Properties

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

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

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

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

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

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

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

Class methods

transportThreadAlertWithText:closed:closedUntil:lastTrip:

+ (nonnull YMKMasstransitTransportThreadAlert *)transportThreadAlertWithText:(nonnull NSString *)text
                                                                      closed:(nullable YMKMasstransitTransportThreadAlertClosed *)closed
                                                                 closedUntil:(nullable YMKMasstransitTransportThreadAlertClosedUntil *)closedUntil
                                                                    lastTrip:(nullable YMKMasstransitTransportThreadAlertLastTrip *)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)
    YMKMasstransitTransportThreadAlertClosed *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)
    YMKMasstransitTransportThreadAlertClosedUntil *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)
    YMKMasstransitTransportThreadAlertLastTrip *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.