~aleteoryx/muditaos

ref: 253ff8685c0102c7fc2ee1dc6e462cd16186dd19 muditaos/module-services/service-cellular/requests/Request.cpp -rw-r--r-- 706 bytes
253ff868 — Hubert Chrzaniuk [EGD-4403][EGD-4412] MMI support (#1021) 5 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
29
30
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <string>
#include <memory>

#include <at/Result.hpp>
#include <at/Commands.hpp>

#include "service-cellular/requests/Request.hpp"

namespace cellular
{
    void Request::setHandled(bool handled)
    {
        isRequestHandled = handled;
    }
    bool Request::isHandled() const noexcept
    {
        return isRequestHandled;
    }
    bool Request::checkModemResponse(const at::Result &result)
    {
        return result.code == at::Result::Code::OK;
    }
    bool Request::isValid() const noexcept
    {
        return true;
    }
}; // namespace cellular