mcu_hi3321_watch/application/wearable/nativeapp/nativeui/bloodoxygen/src/BloodOxygenModel.cpp
2025-05-26 20:15:20 +08:00

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;
}
}