42 lines
834 B
C++
42 lines
834 B
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: bloodOxygen view
|
|
* Author:
|
|
* Create: 2021-08-01
|
|
*/
|
|
|
|
#include "BloodOxygenModel.h"
|
|
|
|
namespace OHOS {
|
|
BloodOxygenModel::BloodOxygenModel()
|
|
{
|
|
OxygenView = false;
|
|
BandoffView = false;
|
|
}
|
|
|
|
bool BloodOxygenModel::GetBloodOxygenViewStatus(void)
|
|
{
|
|
return OxygenView;
|
|
}
|
|
|
|
bool BloodOxygenModel::GetBloodBandoffViewStatus(void)
|
|
{
|
|
return BandoffView;
|
|
}
|
|
|
|
void BloodOxygenModel::SetBloodBandoffViewStatus(bool bandoffViewStatus)
|
|
{
|
|
BandoffView = bandoffViewStatus;
|
|
}
|
|
|
|
void BloodOxygenModel::SetBloodOxygenViewStatus(bool oxygenViewStatus)
|
|
{
|
|
OxygenView = oxygenViewStatus;
|
|
}
|
|
|
|
BloodOxygenModel *BloodOxygenModel::GetInstance(void)
|
|
{
|
|
static BloodOxygenModel instance;
|
|
return &instance;
|
|
}
|
|
} |