FemaLocalSoftware/getsensors_p.h
Lopata PC 9e459078e1 SensorTab all Done
paginationBar Done
2024-12-16 11:38:04 +03:00

28 lines
495 B
C++

#ifndef GETSENSORS_P_H
#define GETSENSORS_P_H
#include <QString>
#include <QJsonDocument>
#include <QJsonObject>
#include <QByteArray>
class GetSensorsP {
public:
GetSensorsP() = default;
void setGroup(const QString& group) {
this->group = group;
}
QByteArray createRequestJson() const {
QJsonObject obj;
obj["group"] = group;
QJsonDocument doc(obj);
return doc.toJson();
}
private:
QString group;
};
#endif // GETSENSORS_P_H