Class TimeOptions

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ TimeOptions

public class TimeOptions

Desired departure/arrival time settings.

Only one the departureTime and arrivalTime fields should be specified.

Constructors

TimeOptions(@Nullable Long departureTime, @Nullable Long arrivalTime)
TimeOptions()

Use constructor with parameters in your code.

Methods

Long getArrivalTime()

Desired arrival time in UTC for a time-dependent route request.

Long getDepartureTime()

Desired departure time in UTC for a time-dependent route request.

void serialize(Archive archive)
TimeOptions setArrivalTime(@Nullable Long arrivalTime)

See getArrivalTime().

TimeOptions setDepartureTime(@Nullable Long departureTime)

See getDepartureTime().

Constructor Detail

TimeOptions

public TimeOptions (@Nullable Long departureTime, @Nullable Long arrivalTime)

TimeOptions

public TimeOptions ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getArrivalTime

public Long getArrivalTime ()

Desired arrival time in UTC for a time-dependent route request.

The value is specified in milliseconds. This option cannot be used with departureTime.Optional field, can be null.

getDepartureTime

public Long getDepartureTime ()

Desired departure time in UTC for a time-dependent route request.

The value is specified in milliseconds. This option cannot be used with arrivalTime.Optional field, can be null.

serialize

public void serialize (Archive archive)

setArrivalTime

public TimeOptions setArrivalTime (@Nullable Long arrivalTime)

See getArrivalTime().

setDepartureTime

public TimeOptions setDepartureTime (@Nullable Long departureTime)

See getDepartureTime().