Class YMKMasstransitAlert

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

Class Methods

Properties

closed

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

closedUntil

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

lastTrip

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

text

Standard alert text.

closed

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

closedUntil

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

lastTrip

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

text

Standard alert text.

Method Detail

+alertWithText:closed:closedUntil:lastTrip:

+ (nonnull YMKMasstransitAlert *)alertWithText:(nonnull NSString *)text
                                        closed:(nullable YMKMasstransitAlertClosed *)closed
                                   closedUntil:(nullable YMKMasstransitAlertClosedUntil *)closedUntil
                                      lastTrip:(nullable YMKMasstransitAlertLastTrip *)lastTrip 

Property Detail

closed

(assign, readonly) YMKMasstransitAlertClosed * 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 property, can be null.

closedUntil

(assign, readonly) YMKMasstransitAlertClosedUntil * 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 property, can be null.

lastTrip

(assign, readonly) YMKMasstransitAlertLastTrip * 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 property, can be null.

text

(assign, readonly) 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.