E-Paper-Calendar/Calendar/CalendarInterface.py

18 lines
723 B
Python
Raw Normal View History

2019-02-23 22:11:49 +01:00
from DataSourceInterface import DataSourceInterface
class CalendarInterface (DataSourceInterface):
"""Interface for fetching and processing calendar event information."""
def get_upcoming_events(self):
2019-02-23 22:11:49 +01:00
raise NotImplementedError("Functions needs to be implemented")
def get_today_events(self):
raise NotImplementedError("Functions needs to be implemented")
def get_day_events(self, date):
2019-02-23 22:11:49 +01:00
raise NotImplementedError("Functions needs to be implemented")
def get_month_events(self, month = -1):
2019-02-23 22:11:49 +01:00
raise NotImplementedError("Functions needs to be implemented")
def get_week_events(self, week = -1):
2019-02-23 22:11:49 +01:00
raise NotImplementedError("Functions needs to be implemented")