Defined abstract weather forecast source interface.
This commit is contained in:
parent
3d0f86a17c
commit
2b4406d613
1 changed files with 12 additions and 0 deletions
12
Calendar/WeatherInterface.py
Normal file
12
Calendar/WeatherInterface.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from WeatherForecast import WeatherForecast
|
||||
|
||||
class WeatherInterface (object):
|
||||
"""Interface for fetching and processing weather forecast information."""
|
||||
def is_available (self):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
def get_forecast_in_days (self, offset_by_days):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
def get_today_forecast (self):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
Loading…
Reference in a new issue