Add RESTART_CAMERA, RESET_CONFIG, RESTART_DEVICE commands and implement related endpoints

This commit is contained in:
Lorow
2024-12-07 22:02:49 +01:00
parent 44179cee65
commit fff9ce422f
13 changed files with 155 additions and 30 deletions

View File

@@ -15,3 +15,16 @@ public:
getConfigCommand(std::shared_ptr<ProjectConfig> projectConfig) : projectConfig(projectConfig) {};
CommandResult execute(std::string_view jsonPayload) override;
};
class resetConfigCommand : public Command
{
std::array<std::string, 4> supported_sections = {
"all",
};
public:
std::shared_ptr<ProjectConfig> projectConfig;
resetConfigCommand(std::shared_ptr<ProjectConfig> projectConfig) : projectConfig(projectConfig) {};
CommandResult execute(std::string_view jsonPayload) override;
std::optional<ResetConfigPayload> parsePayload(std::string_view jsonPayload);
};