Load Json::Value into this object
| 169 | |
| 170 | // Load Json::Value into this object |
| 171 | void Hue::SetJsonValue(const Json::Value root) { |
| 172 | |
| 173 | // Set parent data |
| 174 | EffectBase::SetJsonValue(root); |
| 175 | |
| 176 | // Set data from Json (if key is found) |
| 177 | if (!root["hue"].isNull()) |
| 178 | hue.SetJsonValue(root["hue"]); |
| 179 | if (!root["mask_mode"].isNull()) |
| 180 | mask_mode = root["mask_mode"].asInt(); |
| 181 | } |
| 182 | |
| 183 | // Get all properties for a specific frame |
| 184 | std::string Hue::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected