mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 06:30:46 -04:00
31 lines
726 B
C++
31 lines
726 B
C++
// Copyright (c) 2017-2021, 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 <at/ATFactory.hpp>
|
|
|
|
#include "service-cellular/requests/ImeiRequest.hpp"
|
|
|
|
namespace cellular
|
|
{
|
|
at::Cmd ImeiRequest::command()
|
|
{
|
|
return at::Cmd(at::factory(at::AT::GET_IMEI));
|
|
}
|
|
|
|
void ImeiRequest::handle(RequestHandler &h, at::Result &result)
|
|
{
|
|
h.handle(*this, result);
|
|
}
|
|
|
|
std::unique_ptr<ImeiRequest> ImeiRequest::create(const std::string &data, GroupMatch)
|
|
{
|
|
return std::make_unique<ImeiRequest>(data);
|
|
}
|
|
|
|
}; // namespace cellular
|