OpeningHours (API Reference)
Class OpeningHours
Represents opening hours information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of categories related to opening hours information.booleanBoolean flag informing if the place is open or closed at the time when the search request was initiated.The list of schedule details.The list of opening hours presented as localized text. -
Constructor Summary
ConstructorsConstructorDescriptionOpeningHours(List<String> text, boolean isOpen, List<ScheduleDetails> scheduleDetailsList, List<PlaceCategory> categories) Creates a new instance. -
Method Summary
-
Field Details
-
text
The list of opening hours presented as localized text.
-
isOpen
public boolean isOpenBoolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device's time, so it may give incorrect value if device and place are located in different time zones.
-
scheduleDetailsList
The list of schedule details.
-
categories
The list of categories related to opening hours information. This data is not available in offline search.
-
-
Constructor Details
-
OpeningHours
public OpeningHours(@NonNull List<String> text, boolean isOpen, @NonNull List<ScheduleDetails> scheduleDetailsList, @NonNull List<PlaceCategory> categories) Creates a new instance.
- Parameters:
text-The list of opening hours presented as localized text.
isOpen-Boolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device's time, so it may give incorrect value if device and place are located in different time zones.
scheduleDetailsList-The list of schedule details.
categories-The list of categories related to opening hours information. This data is not available in offline search.
-
-
Method Details