| 45 | } |
| 46 | |
| 47 | MaaTaskId RemoteTasker::post_task(const std::string& entry, const json::value& pipeline_override) |
| 48 | { |
| 49 | TaskerPostTaskReverseRequest req { |
| 50 | .tasker_id = tasker_id_, |
| 51 | .entry = entry, |
| 52 | .pipeline_override = pipeline_override, |
| 53 | }; |
| 54 | |
| 55 | auto resp_opt = server_.send_and_recv<TaskerPostTaskReverseResponse>(req); |
| 56 | if (!resp_opt) { |
| 57 | return MaaInvalidId; |
| 58 | } |
| 59 | |
| 60 | return resp_opt->task_id; |
| 61 | } |
| 62 | |
| 63 | MaaTaskId RemoteTasker::post_recognition(const std::string& reco_type, const json::value& reco_param, const cv::Mat& image) |
| 64 | { |
no outgoing calls
no test coverage detected