| 601 | } |
| 602 | |
| 603 | void NetworkService::incDownloadCounter(std::string const& simId) |
| 604 | { |
| 605 | try { |
| 606 | log(Priority::Important, "network: increment download counter for resource with id=" + simId); |
| 607 | |
| 608 | httplib::SSLClient client(_serverAddress); |
| 609 | configureClient(client); |
| 610 | |
| 611 | httplib::Params params; |
| 612 | params.emplace("id", simId); |
| 613 | executeRequest([&] { return client.Get("/alien-server/incdownloadcount.php", params, {}); }); |
| 614 | } |
| 615 | catch(...) { |
| 616 | //do nothing |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | bool NetworkService::editResource(std::string const& simId, std::string const& newName, std::string const& newDescription) |
| 621 | { |
no test coverage detected