Class Alert

com.yandex.mapkit.masstransit

java.lang.Object ⇽ Alert

public class Alert

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

Nested Classes

Constructors

Alert(String text, Closed closed, ClosedUntil closedUntil, LastTrip lastTrip)
Alert()

Use constructor with parameters in your code.

Alert(String text, Closed closed, ClosedUntil closedUntil, LastTrip lastTrip)
Alert()

Use constructor with parameters in your code.

Methods

Closed getClosed()

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

ClosedUntil getClosedUntil()

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

LastTrip getLastTrip()

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

String getText()

Standard alert text.

void serialize(Archive archive)
Closed getClosed()

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

ClosedUntil getClosedUntil()

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

LastTrip getLastTrip()

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

String getText()

Standard alert text.

void serialize(Archive archive)

Constructor Detail

Alert

public Alert (String text, Closed closed, ClosedUntil closedUntil, LastTrip lastTrip)

Alert

public Alert ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getClosed

public Closed getClosed ()

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 null.

getClosedUntil

public ClosedUntil getClosedUntil ()

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 null.

getLastTrip

public LastTrip getLastTrip ()

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 null.

getText

public String getText ()

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.

serialize

public void serialize (Archive archive)