diff options
Diffstat (limited to 'src/web_service/telemetry_json.cpp')
| -rw-r--r-- | src/web_service/telemetry_json.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/web_service/telemetry_json.cpp b/src/web_service/telemetry_json.cpp index 7a480e33c..6215c914f 100644 --- a/src/web_service/telemetry_json.cpp +++ b/src/web_service/telemetry_json.cpp | |||
| @@ -4,12 +4,14 @@ | |||
| 4 | 4 | ||
| 5 | #include <nlohmann/json.hpp> | 5 | #include <nlohmann/json.hpp> |
| 6 | #include "common/detached_tasks.h" | 6 | #include "common/detached_tasks.h" |
| 7 | #include "common/web_result.h" | ||
| 8 | #include "web_service/telemetry_json.h" | 7 | #include "web_service/telemetry_json.h" |
| 9 | #include "web_service/web_backend.h" | 8 | #include "web_service/web_backend.h" |
| 9 | #include "web_service/web_result.h" | ||
| 10 | 10 | ||
| 11 | namespace WebService { | 11 | namespace WebService { |
| 12 | 12 | ||
| 13 | namespace Telemetry = Common::Telemetry; | ||
| 14 | |||
| 13 | struct TelemetryJson::Impl { | 15 | struct TelemetryJson::Impl { |
| 14 | Impl(std::string host, std::string username, std::string token) | 16 | Impl(std::string host, std::string username, std::string token) |
| 15 | : host{std::move(host)}, username{std::move(username)}, token{std::move(token)} {} | 17 | : host{std::move(host)}, username{std::move(username)}, token{std::move(token)} {} |
| @@ -123,7 +125,7 @@ bool TelemetryJson::SubmitTestcase() { | |||
| 123 | Client client(impl->host, impl->username, impl->token); | 125 | Client client(impl->host, impl->username, impl->token); |
| 124 | auto value = client.PostJson("/gamedb/testcase", content, false); | 126 | auto value = client.PostJson("/gamedb/testcase", content, false); |
| 125 | 127 | ||
| 126 | return value.result_code == Common::WebResult::Code::Success; | 128 | return value.result_code == WebResult::Code::Success; |
| 127 | } | 129 | } |
| 128 | 130 | ||
| 129 | } // namespace WebService | 131 | } // namespace WebService |