Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.search

Class Availability

java.lang.Object
    ↳ world.mappable.mapkit.search.Availability

class Availability implements Serializable

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.

Summary

Constructors

Signature and Description

Availability()
Use constructor with parameters in your code.

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

Methods

Type and modifiers

Method and Description

synchronized int

getDays()
Days where time ranges are applicable

synchronized java.util.List<TimeRange>

getTimeRanges()
Ranges for open hours

void

serialize(world.mappable.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

Availability

Availability()

Use constructor with parameters in your code.

This one is for serialization only!


Availability

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


Methods

getDays

int getDays()

Days where time ranges are applicable


getTimeRanges

@NonNull
java.util.List<TimeRange> getTimeRanges()

Ranges for open hours


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()