/*! * * Copyright (c) 2019-2020 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 MTreatmentAdjustUltrafiltrationConfirmResponse.h * \date 6/2/2020 * \author Behrouz NematiPour * */ #pragma once // Qt #include // Project #include "types.h" // forward declarations class tst_models; namespace Model { /*! * \brief The MAdjustUltrafiltrationConfirmResponse class * \details The ultrafiltration adjustment confirm response model * * | MSG | CAN ID | M.Box | Type | Ack | Src | Dest | Description | #1 | #2 | #3 | #4 | #5 | #6 | #7 | #8 | * |:---:|:------:|:-----:|:----:|:---:|:---:|:----:|:-----------:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:| * | | | | | | | | | | | | | | | | | * * \sa Data * */ class MAdjustUltrafiltrationConfirmResponse { // friends friend class ::tst_models; public: QString stringPrefix = "AdjustUFConfirm"; struct Data { bool mAccepted = 0; /*!< Accepted value of type quint32 extracted out */ quint32 mReason = 0; /*!< Reason value of type quint32 extracted out */ float mVolume = 0; /*!< volume value of type float extracted out */ quint32 mDuration = 0; /*!< duration value of type quint32 extracted out */ float mRate = 0; /*!< rate value of type float extracted out */ }; protected: struct _Data { Types::U32 mAccepted ; Types::U32 mReason ; Types::F32 mVolume ; Types::U32 mDuration ; Types::F32 mRate ; } _data; public: MAdjustUltrafiltrationConfirmResponse () { } QString toString ( ) const ; void toVariantList ( QVariantList &vData ) const ; bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr); Data data() const; }; } typedef Model::MAdjustUltrafiltrationConfirmResponse::Data AdjustUltrafiltrationConfirmResponseData;