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

Method Group

dependencies/hueplusplus-1.0.0/src/Group.cpp:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace hueplusplus
6{
7Group::Group(int id, const std::shared_ptr<APICache>& baseCache)
8 : id(id), state(baseCache, std::to_string(id), baseCache->getRefreshDuration())
9{ }
10
11Group::Group(int id, const HueCommandAPI& commands, std::chrono::steady_clock::duration refreshDuration, const nlohmann::json& currentState)
12 : id(id), state("/groups/" + std::to_string(id), commands, refreshDuration, currentState)

Callers

nothing calls this directly

Calls 3

to_stringFunction · 0.85
getRefreshDurationMethod · 0.80
getValueMethod · 0.80

Tested by

no test coverage detected