/*! * * Copyright (c) 2021-2025 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MTreatmentAdjustDialysateFlowRateResponse.cpp * \author (last) Stephen Quong * \date (last) 18-Nov-2025 * \author (original) Stephen Quong * \date (original) 18-Nov-2025 * */ #include "MTreatmentAdjustDialysateFlowRateResponse.h" using namespace Model; QVariantList MAdjustDialysateFlowRateResponse::parameters() const { return { _data.mAccepted .value, _data.mReason .value, _data.mDialysateFlowRate .value, }; } bool MAdjustDialysateFlowRateResponse::fromByteArray(const QByteArray &vByteArray, int *vIndex) { int index = 0; // message data start position if ( ! GetValue(vByteArray, index, _data.mAccepted )) goto lError; if ( ! GetValue(vByteArray, index, _data.mReason )) goto lError; if ( ! GetValue(vByteArray, index, _data.mDialysateFlowRate )) goto lError; return true ; lError: if(vIndex) { *vIndex = index; } return false ; } /*! * \brief MAdjustDialysateFlowRateResponse::data * \details Provides model's Data from the received messages data values * \return Data */ AdjustDialysateFlowRateResponseData MAdjustDialysateFlowRateResponse::data() const { Data data; data.mAccepted = _data.mAccepted .value; data.mReason = _data.mReason .value; data.mDialysateFlowRate = _data.mDialysateFlowRate .value; return data; }