| 57 | } |
| 58 | |
| 59 | MaaResId RemoteResource::post_image(const std::filesystem::path& path) |
| 60 | { |
| 61 | ResourcePostImageReverseRequest req { |
| 62 | .resource_id = resource_id_, |
| 63 | .path = path_to_utf8_string(path), |
| 64 | }; |
| 65 | auto resp_opt = server_.send_and_recv<ResourcePostImageReverseResponse>(req); |
| 66 | if (!resp_opt) { |
| 67 | return MaaInvalidId; |
| 68 | } |
| 69 | return resp_opt->res_id; |
| 70 | } |
| 71 | |
| 72 | MaaStatus RemoteResource::status(MaaResId res_id) const |
| 73 | { |
no outgoing calls
no test coverage detected