Class Availability

com.yandex.mapkit.search

java.lang.Object ⇽ Availability

public class Availability

A single value of availability information.

Allows to describe business schedule for a group of days. For example, an organization open on weekdays from 9 AM to 6 PM with a lunch break from 1 PM to 2 PM can be described as a single Availability with days equal to DayGroup::Weekdays and two time ranges (9:00-13:00, 14:00-18:00). More complicated schedules will require multiple Availabilities.

Constructors

Availability()

Use constructor with parameters in your code.

Availability(int days, @NonNull List< TimeRange > timeRanges)

Methods

synchronized int getDays()

Days where time ranges are applicable.

String getNativeName()
synchronized List< TimeRange > getTimeRanges()

Ranges for open hours.

void serialize(Archive archive)

Constructor Detail

Availability

public Availability ()

Use constructor with parameters in your code.

This one is for serialization only!

Availability

public Availability (int days, @NonNull List< TimeRange > timeRanges)

Method Detail

getDays

public synchronized int getDays ()

Days where time ranges are applicable.

getNativeName

public static String getNativeName ()

getTimeRanges

public synchronized List< TimeRange > getTimeRanges ()

Ranges for open hours.

serialize

public void serialize (Archive archive)