~aleteoryx/muditaos

ref: de84e4d1b952dfd56c4a11b98709cd9ea9ec8695 muditaos/module-db/queries/alarms/QueryAlarmsTurnOffAll.cpp -rw-r--r-- 698 bytes
de84e4d1 — Pawel Olejniczak [CP-83] Update tests for unlocking phone and usb 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "QueryAlarmsTurnOffAll.hpp"

namespace db::query::alarms
{
    TurnOffAll::TurnOffAll() : Query(Query::Type::Update)
    {}

    auto TurnOffAll::debugInfo() const -> std::string
    {
        return std::string{"TurnOffAll"};
    }

    TurnOffAllResult::TurnOffAllResult(bool ret) : ret(ret)
    {}

    auto TurnOffAllResult::succeed() const -> bool
    {
        return ret;
    }

    [[nodiscard]] auto TurnOffAllResult::debugInfo() const -> std::string
    {
        return std::string{"TurnOffAllResult"};
    }
} // namespace db::query::alarms