| 177 | } |
| 178 | |
| 179 | MaaTaskId RemoteContext::task_id() const |
| 180 | { |
| 181 | ContextTaskIdReverseRequest req { |
| 182 | .context_id = context_id_, |
| 183 | }; |
| 184 | |
| 185 | auto resp_opt = server_.send_and_recv<ContextTaskIdReverseResponse>(req); |
| 186 | if (!resp_opt) { |
| 187 | return MaaInvalidId; |
| 188 | } |
| 189 | |
| 190 | return resp_opt->task_id; |
| 191 | } |
| 192 | |
| 193 | MaaTasker* RemoteContext::tasker() const |
| 194 | { |
no outgoing calls
no test coverage detected