Package | Description |
---|---|
com.moosemorals.weather |
Main entry point to the project.
|
Modifier and Type | Method and Description |
---|---|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setApiKey(String apiKey)
Api key from worldweatheronline.com for their V2 API.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setCurrent(boolean current)
Fetch current conditions.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setDate(DateTime date)
Date to fetch weather for.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setForecast(boolean forecast)
Fetch weather forecast.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setFrequency(int timePeriod)
Frequency of forecasts, in hours.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
HttpClient to use to fetch.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setLanguage(String language)
Language for human readable text.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setLocation(String location)
Location to fetch for.
|
WeatherFetcher.Builder |
WeatherFetcher.Builder.setNumOfDays(int num_of_days)
Number of days to fetch.
|
Copyright © 2015. All rights reserved.