/*! * * 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 MPowerOff.cpp * \date 3/9/2020 * \author Behrouz NematiPour * */ #include "MPowerOff.h" using namespace Model; QVariantList MPowerOff::parameters() const { return { _data.mStatus .value }; } bool MPowerOff::fromByteArray(const QByteArray &vByteArray, int *vIndex) { int index = 0; // message data start position if (GetValue(vByteArray, index, _data.mStatus )) return true ; else { if(vIndex) *vIndex = index; return false; } } MPowerOff::Data MPowerOff::data() const { Data data; data.mStatus = _data.mStatus.value; return data; }