From 2b4406d613bb132dc05ae9f7481c5ea8565931b2 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 21 Feb 2019 17:17:18 +0100 Subject: [PATCH] Defined abstract weather forecast source interface. --- Calendar/WeatherInterface.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Calendar/WeatherInterface.py diff --git a/Calendar/WeatherInterface.py b/Calendar/WeatherInterface.py new file mode 100644 index 0000000..4ba606c --- /dev/null +++ b/Calendar/WeatherInterface.py @@ -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") \ No newline at end of file