FemaLocalSoftware/getsensors_p.h
lopata29435_NSK 3af06d02ec finish
2025-01-08 05:13:48 +07:00

28 lines
487 B
C++

#ifndef GETSENSORS_P_H
#define GETSENSORS_P_H
#include <QByteArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QString>
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