Newer
Older
ZXSSCJ / DeviceHub / protocol / dto / TimeReplicatorCmdRepDto.cpp
tanyue on 23 Dec 2021 437 bytes 20211223 timeReplicator command
#include "TimeReplicatorCmdRepDto.h"

TimeReplicatorCmdRepDto::TimeReplicatorCmdRepDto(QObject *parent) : DeviceFrameBaseDto(parent)
{

}

QJsonObject TimeReplicatorCmdRepDto::toJSON()
{
    QJsonObject jsonObj;

    jsonObj.insert("status", QString::number(this->cmdStatus));
    jsonObj.insert("commandId", this->commandId);
    if (this->cmdStatus != 1)
    {
        jsonObj.insert("remarks", "failed");
    }

    return jsonObj;
}