~aleteoryx/muditaos

ref: 09bab001d0d0479d6dc773b1ccc785277f4fd402 muditaos/module-services/service-cellular/src/volte/OperatorInfo.hpp -rw-r--r-- 583 bytes
09bab001 — Mateusz Piesta [MOS-807] Update scripts 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <string>

namespace cellular::service
{
    struct OperatorInfo
    {
        OperatorInfo(const std::string &mcc, const std::string &mnc) : MCC(mcc), MNC(mnc)
        {}
        std::string MCC;
        std::string MNC;

        friend bool operator==(const OperatorInfo &lhs, const OperatorInfo &rhs)
        {
            return lhs.MCC == rhs.MCC && lhs.MNC == rhs.MNC;
        }
    };
} // namespace cellular::service