before add files

This commit is contained in:
lhhxxxxx
2022-06-04 23:43:06 +08:00
parent 22f7d77806
commit 9ea6c865c4
2 changed files with 9 additions and 0 deletions

View File

@@ -11,3 +11,10 @@ asst::StartUpTask::StartUpTask(AsstCallback callback, void* callback_arg)
.set_times_limit("Terminal", 0);
m_subtasks.emplace_back(m_start_up_task_ptr);
}
bool asst::StartUpTask::set_params(const json::value& params)
{
if (!params.contains("server_type")) {
return false;
}
}

View File

@@ -11,6 +11,8 @@ namespace asst
StartUpTask(AsstCallback callback, void* callback_arg);
virtual ~StartUpTask() = default;
bool set_params(const json::value& params) override;
static constexpr const char* TaskType = "StartUp";
private: