#include "MAdjustDGServiceResponse.h" using namespace Model; QVariantList MAdjustDGServiceResponse::parameters() const { return { _data.mLastServiceDateEpoch.value, _data.mServiceIntervalSeconds.value, }; } bool MAdjustDGServiceResponse::fromByteArray(const QByteArray &vByteArray, int *vIndex) { int index = 0; // message data start position if (GetValue(vByteArray, index, _data.mLastServiceDateEpoch )) if (GetValue(vByteArray, index, _data.mServiceIntervalSeconds )) return true ; else { if(vIndex) *vIndex = index; return false; } else { if(vIndex) *vIndex = index; return false; } } /*! * \brief MAdjustHDDateTimeResponse::data * \details Provides model's Data from the received messages data values * \return Data */ AdjustDGServiceResponseData MAdjustDGServiceResponse::data() const { Data data; data.mLastServiceDateEpoch = _data.mLastServiceDateEpoch.value; data.mServiceIntervalSeconds = _data.mServiceIntervalSeconds.value; return data; }