#ifndef FREQSWITCHERSTATUSDTO_H
#define FREQSWITCHERSTATUSDTO_H

#include <QObject>

#include "protocol/dto/DeviceFrameBaseDto.h"

class FreqSwitcherStatusDto : public DeviceFrameBaseDto
{
    Q_OBJECT
public:
    FreqSwitcherStatusDto(QObject *parent = nullptr);

    QString lockPhaseType; // <1>
    QString digitalLockPhaseStatus; // <2>
    QString refSelectType; // <3>
    QString refFreqSrc; // <4>
    QList<QString> freqRefStatusList; // <5>
    QList<qlonglong> localFreqDiffList; // <6-10>
    qlonglong freqAdjustAcc; // <11> 频率调整累计值，单位1pHz
    qlonglong phaseAdjustAcc; // <12> 相位调整累计值，单位0.1fs
    QList<float> freqRefWeightList; // <13-17>
    QString devStatus; // <18>
    QList<QString> inputFreqTypeList; // <19>
    QList<QString> outTenStatusList; // <20>
    QList<QString> outFiveStatusList; // <21>

    QJsonObject toJSON();
};

#endif // FREQSWITCHERSTATUSDTO_H
