ForecastAdapter.java :  » Widget » wetherwidget » de » sdw » android » weather » Android Open Source

Android Open Source » Widget » wetherwidget 
wetherwidget » de » sdw » android » weather » ForecastAdapter.java
/**
 * 
 */
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);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.