| 18 | } |
| 19 | |
| 20 | MaaResId RemoteResource::post_bundle(const std::filesystem::path& path) |
| 21 | { |
| 22 | ResourcePostBundleReverseRequest req { |
| 23 | .resource_id = resource_id_, |
| 24 | .path = path_to_utf8_string(path), |
| 25 | }; |
| 26 | auto resp_opt = server_.send_and_recv<ResourcePostBundleReverseResponse>(req); |
| 27 | if (!resp_opt) { |
| 28 | return MaaInvalidId; |
| 29 | } |
| 30 | return resp_opt->res_id; |
| 31 | } |
| 32 | |
| 33 | MaaResId RemoteResource::post_ocr_model(const std::filesystem::path& path) |
| 34 | { |
no outgoing calls
no test coverage detected