E-Paper-Calendar/Calendar/CryptoInterface.py
2019-07-13 08:05:35 +02:00

17 lines
444 B
Python

from DataSourceInterface import DataSourceInterface
class CryptoInterface(DataSourceInterface):
def __init__(self):
self.crypto_coins = []
def reload(self):
if self.is_available() == False:
return
self.crypto_coins = self.__get_coins__()
def __get_coins__(self):
raise NotImplementedError("Function needs to be implemented")
def get_coins(self):
return self.crypto_coins