| 31 | } |
| 32 | |
| 33 | MaaResId RemoteResource::post_ocr_model(const std::filesystem::path& path) |
| 34 | { |
| 35 | ResourcePostOcrModelReverseRequest req { |
| 36 | .resource_id = resource_id_, |
| 37 | .path = path_to_utf8_string(path), |
| 38 | }; |
| 39 | auto resp_opt = server_.send_and_recv<ResourcePostOcrModelReverseResponse>(req); |
| 40 | if (!resp_opt) { |
| 41 | return MaaInvalidId; |
| 42 | } |
| 43 | return resp_opt->res_id; |
| 44 | } |
| 45 | |
| 46 | MaaResId RemoteResource::post_pipeline(const std::filesystem::path& path) |
| 47 | { |
no outgoing calls
no test coverage detected