| 25 | namespace hueplusplus |
| 26 | { |
| 27 | Schedule::Schedule(int id, const std::shared_ptr<APICache>& baseCache) |
| 28 | : id(id), state(baseCache, std::to_string(id), baseCache->getRefreshDuration()) |
| 29 | { } |
| 30 | Schedule::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) |
nothing calls this directly
no test coverage detected