FemaLocalSoftware/getsensors_p.h

28 lines
487 B
C
Raw Permalink Normal View History

2024-12-16 08:38:04 +00:00
#ifndef GETSENSORS_P_H
#define GETSENSORS_P_H
2025-01-07 22:13:48 +00:00
#include <QByteArray>
2024-12-16 08:38:04 +00:00
#include <QJsonDocument>
#include <QJsonObject>
2025-01-07 22:13:48 +00:00
#include <QString>
2024-12-16 08:38:04 +00:00
2025-01-07 22:13:48 +00:00
class GetSensorsP
{
2024-12-16 08:38:04 +00:00
public:
GetSensorsP() = default;
2025-01-07 22:13:48 +00:00
void setGroup(const QString &group) { this->group = group; }
2024-12-16 08:38:04 +00:00
2025-01-07 22:13:48 +00:00
QByteArray createRequestJson() const
{
2024-12-16 08:38:04 +00:00
QJsonObject obj;
obj["group"] = group;
QJsonDocument doc(obj);
return doc.toJson();
}
private:
QString group;
};
#endif // GETSENSORS_P_H