public class BreinTemporalDataResult extends BreinResult
| Constructor and Description |
|---|
BreinTemporalDataResult(BreinResult result)
Build the result based on the result
|
BreinTemporalDataResult(java.util.Map<java.lang.String,java.lang.Object> json)
Build the result based on the returned json
|
| Modifier and Type | Method and Description |
|---|---|
java.time.LocalDateTime |
getEpochDateTime() |
java.util.List<BreinEventResult> |
getEvents() |
java.util.List<BreinHolidayResult> |
getHolidays() |
java.time.ZonedDateTime |
getLocalDateTime() |
BreinLocationResult |
getLocation() |
BreinWeatherResult |
getWeather() |
boolean |
hasEpochDateTime() |
boolean |
hasEvents() |
boolean |
hasHolidays() |
boolean |
hasLocalDateTime() |
boolean |
hasLocation() |
boolean |
hasWeather() |
java.lang.String |
toString() |
get, getMap, getMessage, getNestedValue, getStatus, getValue, has, hasNestedValue, hasValue, setStatuspublic BreinTemporalDataResult(java.util.Map<java.lang.String,java.lang.Object> json)
json - the result from the query, parsed into a Mappublic BreinTemporalDataResult(BreinResult result)
result - the result from a request to the apipublic boolean hasWeather()
public BreinWeatherResult getWeather()
public boolean hasLocalDateTime()
public java.time.ZonedDateTime getLocalDateTime()
public boolean hasEpochDateTime()
public java.time.LocalDateTime getEpochDateTime()
public boolean hasLocation()
public BreinLocationResult getLocation()
public boolean hasHolidays()
public java.util.List<BreinHolidayResult> getHolidays()
public boolean hasEvents()
public java.util.List<BreinEventResult> getEvents()
public java.lang.String toString()
toString in class BreinResultCopyright © Breinify - All Rights Reserved.