MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / hasAlert

Method hasAlert

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 sendPutRequest("/config", nlohmann::json {{"battery", percent}}, CURRENT_FILE_INFO);
86}
87bool Sensor::hasAlert() const
88{
89 return state.getValue().at("config").count("alert") != 0;
90}
91Alert Sensor::getLastAlert() const
92{
93 std::string alert = state.getValue().at("config").at("alert").get<std::string>();

Callers 1

TEST_FFunction · 0.80

Calls 2

getValueMethod · 0.80
countMethod · 0.45

Tested by 1

TEST_FFunction · 0.64