Class TimeRange

com.yandex.mapkit.search

java.lang.Object ⇽ TimeRange

public class TimeRange

The time interval used to compose availability info.

Can describe two kinds of intervals: 1. 24-hour interval (isTwentyFourHours is true, from and to are not used). 2. Smaller time interval (isTwentyFourHours is false, from and to are set to the begin and end of the interval)

Constructors

TimeRange(@Nullable Boolean isTwentyFourHours, @Nullable Integer from, @Nullable Integer to)
TimeRange()

Use constructor with parameters in your code.

Methods

Integer getFrom()

Interval start (seconds from midnight).

Boolean getIsTwentyFourHours()

All day (24 hours) time range marker.

Integer getTo()

Interval end (seconds from midnight).

void serialize(Archive archive)

Constructor Detail

TimeRange

public TimeRange (@Nullable Boolean isTwentyFourHours, @Nullable Integer from, @Nullable Integer to)

TimeRange

public TimeRange ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getFrom

public Integer getFrom ()

Interval start (seconds from midnight).

Optional field, can be null.

getIsTwentyFourHours

public Boolean getIsTwentyFourHours ()

All day (24 hours) time range marker.

Optional field, can be null.

getTo

public Integer getTo ()

Interval end (seconds from midnight).

Optional field, can be null.

serialize

public void serialize (Archive archive)