Address a bunch of review comments
This commit is contained in:
parent
1de63f9b16
commit
b0aed19823
10 changed files with 21 additions and 14 deletions
|
@ -10,6 +10,11 @@
|
|||
|
||||
namespace WebService {
|
||||
|
||||
TelemetryJson::TelemetryJson(const std::string& host, const std::string& username,
|
||||
const std::string& token)
|
||||
: host(std::move(host)), username(std::move(username)), token(std::move(token)) {}
|
||||
TelemetryJson::~TelemetryJson() = default;
|
||||
|
||||
template <class T>
|
||||
void TelemetryJson::Serialize(Telemetry::FieldType type, const std::string& name, T value) {
|
||||
sections[static_cast<u8>(type)][name] = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue