esphome/components/esp32_presense/QueryReport.h

18 lines
460 B
C
Raw Normal View History

2023-12-07 23:51:43 +03:00
#pragma once
#include <NimBLEAddress.h>
class QueryReport {
public:
QueryReport(const std::string& id, const std::string& payload) : id(id), payload(payload) {}
std::string getId() const { return id; }
std::string getPayload() const { return payload; }
void setId(const std::string& id) { this->id = id; }
void setPayload(const std::string& payload) { this->payload = payload; }
private:
std::string id;
std::string payload;
};