#ifndef PHASEDATADTO_H
#define PHASEDATADTO_H

#include <QObject>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>

class PhaseDataDto : public QObject
{
    Q_OBJECT
public:
    explicit PhaseDataDto(QObject *parent = nullptr);

    QString frameId; // 帧id
    QString timestamp; // 时间戳字符串
    qlonglong milisecond; // 毫秒计数
    QByteArray rawFrame; // 原始帧字节数组

    QString devCode;
    QString devStatus;
    QList<QString> channelActive;
    QList<double> channelData;
    QList<QString> channelRawDataStr;
    QList<QString> channelDataStr;

    QJsonObject toJSON(int i);
    QJsonObject toStatusJSON();

signals:

};

#endif // PHASEDATADTO_H
