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

Method Rule

dependencies/hueplusplus-1.0.0/src/Rule.cpp:133–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133Rule::Rule(int id, const std::shared_ptr<APICache>& baseCache)
134 : id(id), state(baseCache, std::to_string(id), baseCache->getRefreshDuration())
135{ }
136Rule::Rule(int id, const HueCommandAPI& commands, std::chrono::steady_clock::duration refreshDuration,
137 const nlohmann::json& currentState)
138 : id(id), state("/rules/" + std::to_string(id), commands, refreshDuration, currentState)

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
getRefreshDurationMethod · 0.80

Tested by

no test coverage detected