#ifndef SETTINGS_H #define SETTINGS_H #include #ifdef WIFI #ifdef TINANCE2_BACKEND #include "tinance2.h" #include "secrets.h" #endif #endif class Settings { private: bool disableDoor; String doorMode; public: Settings(); String tinance2_url; String tinance2_url_validatecard; String tinance2_url_readerinfo; String tinance2_url_acls; String tinance2_url_log; String tinance2ReaderIdentifier; String tinance2ReaderKey; bool webhookLockEnabled; String webhookLockHook; bool webhookUnlockEnabled; String webhookUnlockHook; void loadFromEEPROM(); void saveToEEPROM(); void saveSetting(const String& namespaceStr, const String& key, const String& value, const String& typeStr); void setDisableDoor(bool value); bool getDoorDisabled(); void setDoorMode(String value); String getDoorMode(); }; extern Settings settings; #endif // SETTINGS_H