FemaLocalSoftware/getsensors_p.h

28 lines
495 B
C
Raw Normal View History

2024-12-16 08:38:04 +00:00
#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