mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-13 16:48:25 +00:00
18 lines
No EOL
745 B
C++
18 lines
No EOL
745 B
C++
#include "mqttcommands/downloadLatestConfigFileRevision.h"
|
|
|
|
MqttCommand_DownloadLatestConfigFileRevision::MqttCommand_DownloadLatestConfigFileRevision(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredIntFields << "node";
|
|
}
|
|
MqttCommand* MqttCommand_DownloadLatestConfigFileRevision::Create(QObject *parent) {
|
|
return new MqttCommand_DownloadLatestConfigFileRevision(parent);
|
|
}
|
|
|
|
bool MqttCommand_DownloadLatestConfigFileRevision::processMessage(rapidjson::Document &msg) {
|
|
if (!this->checkNode(msg, "node")) {
|
|
return this->sendSimpleStatus(false, "Invalid Node Number");
|
|
}
|
|
QTOZWManager *mgr = getOZWManager();
|
|
return this->sendSimpleStatus(mgr->downloadLatestConfigFileRevision(msg["node"].GetUint()));
|
|
} |