22 #ifndef INCLUDE_HUEPLUSPLUS_BRIDGE_CONFIG_H 23 #define INCLUDE_HUEPLUSPLUS_BRIDGE_CONFIG_H 59 BridgeConfig(std::shared_ptr<APICache> baseCache, std::chrono::steady_clock::duration refreshDuration);
68 void refresh(
bool force =
false);
72 void setRefreshDuration(std::chrono::steady_clock::duration refreshDuration);
76 std::vector<WhitelistedUser> getWhitelistedUsers()
const;
83 void removeUser(
const std::string& userKey);
89 bool getLinkButton()
const;
91 void pressLinkButton();
97 std::string getMACAddress()
const;
102 std::string getTimezone()
const;
User that is whitelisted for Hue API usage.
Definition: BridgeConfig.h:42
int patch
Definition: BridgeConfig.h:38
Namespace for the hueplusplus library.
Definition: Action.h:27
Caches API GET requests and refreshes regularly.
Definition: APICache.h:37
int minor
Definition: BridgeConfig.h:37
int major
Definition: BridgeConfig.h:36
One-time, absolute time point.
Definition: TimePattern.h:72
std::string name
Name provided on user creation.
Definition: BridgeConfig.h:47
API version consisting of major, minor and patch version.
Definition: BridgeConfig.h:34
General bridge configuration properties.
Definition: BridgeConfig.h:55
std::string key
API username of the user.
Definition: BridgeConfig.h:45
time::AbsoluteTime created
Time the user was created.
Definition: BridgeConfig.h:51
time::AbsoluteTime lastUsed
Last time the user was used.
Definition: BridgeConfig.h:49