Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class TimeRange
java.lang.Object
↳ com.yandex.mapkit.search.TimeRange
class TimeRange implements Serializable
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)
Summary
Constructors
Signature and Description |
TimeRange(@Nullable java.lang.Boolean isTwentyFourHours, |
TimeRange() |
Methods
Type and modifiers |
Method and Description |
java.lang.Boolean |
getIsTwentyFourHours() |
java.lang.Integer |
getFrom() |
java.lang.Integer |
getTo() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
Constuctors
TimeRange
TimeRange(@Nullable java.lang.Boolean isTwentyFourHours, |
TimeRange
TimeRange() |
Use constructor with parameters in your code.
This one is for bindings only!
Methods
getIsTwentyFourHours
@Nullable |
All day (24 hours) time range marker.
Optional field, can be null.
getFrom
@Nullable |
Interval start (seconds from midnight).
Optional field, can be null.
getTo
@Nullable |
Interval end (seconds from midnight).
Optional field, can be null.
serialize
@Override |