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

Method Schedule

dependencies/hueplusplus-1.0.0/src/Schedule.cpp:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace hueplusplus
26{
27Schedule::Schedule(int id, const std::shared_ptr<APICache>& baseCache)
28 : id(id), state(baseCache, std::to_string(id), baseCache->getRefreshDuration())
29{ }
30Schedule::Schedule(int id, const HueCommandAPI& commands, std::chrono::steady_clock::duration refreshDuration,
31 const nlohmann::json& currentState)
32 : id(id), state("/schedules/" + std::to_string(id), commands, refreshDuration, currentState)

Callers

nothing calls this directly

Calls 3

to_stringFunction · 0.85
getRefreshDurationMethod · 0.80
refreshMethod · 0.45

Tested by

no test coverage detected