| 131 | } |
| 132 | |
| 133 | Rule::Rule(int id, const std::shared_ptr<APICache>& baseCache) |
| 134 | : id(id), state(baseCache, std::to_string(id), baseCache->getRefreshDuration()) |
| 135 | { } |
| 136 | Rule::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) |
nothing calls this directly
no test coverage detected