MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / post_image

Method post_image

source/MaaAgentServer/RemoteInstance/RemoteResource.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59MaaResId 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
72MaaStatus RemoteResource::status(MaaResId res_id) const
73{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected