/**
*
*/
package de.sdw.android.weather;
import java.util.List;
import java.util.Locale;
/**
* Interface for forecast adapters. The weather widget is a generic widget which can work with
* any weather service which implements this adapter.
*
* @author Steffen David Weber
*/
public interface ForecastAdapter {
/**
* Returns the a list with the given number of forecasts. The given number says how much
* forecasts are wanted. If the current day is included in the forecasts belongs to the
* responsibility of the service.
*
* @param days of forecasts
* @param locale to localize the forecast
* @return a list of forecasts
*/
List<DayForecast> getForecasts(int days, Locale locale);
}
|