java.io.Serializable
public class OpeningHours
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
OpeningHours.Period |
The opening hours for a Place for a single day.
|
Modifier and Type | Field | Description |
---|---|---|
java.lang.Boolean |
openNow |
Whether the place is open at the current time.
|
OpeningHours.Period[] |
periods |
Opening periods covering seven days, starting from Sunday, in chronological order.
|
java.lang.Boolean |
permanentlyClosed |
Indicates that the place has permanently shut down.
|
java.lang.String[] |
weekdayText |
The formatted opening hours for each day of the week, as an array of seven strings; for
example,
"Monday: 8:30 am \u2013 5:30 pm" . |
Constructor | Description |
---|---|
OpeningHours() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
toString() |
public java.lang.Boolean openNow
Note: this field will be null if it isn't present in the response.
public OpeningHours.Period[] periods
public java.lang.String[] weekdayText
"Monday: 8:30 am \u2013 5:30 pm"
.public java.lang.Boolean permanentlyClosed
Note: this field will be null if it isn't present in the response.