1/*
2 * Copyright (C) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef DATA_DISCONNECT_PARAMS_H
17#define DATA_DISCONNECT_PARAMS_H
18
19#include <string>
20#include <utility>
21
22#include "inner_event.h"
23
24namespace OHOS {
25namespace Telephony {
26class DataDisconnectParams {
27public:
28    DataDisconnectParams(const std::string &apnType, DisConnectionReason reason)
29        : apnType_(apnType), reason_(reason)
30    {}
31
32    ~DataDisconnectParams() = default;
33
34    const std::string &GetApnType() const
35    {
36        return apnType_;
37    }
38
39    void SetApnType(const std::string &apnType)
40    {
41        apnType_ = apnType;
42    }
43
44    DisConnectionReason GetReason() const
45    {
46        return reason_;
47    }
48
49    void SetReason(DisConnectionReason reason)
50    {
51        reason_ = reason;
52    }
53
54private:
55    DataDisconnectParams(const DataDisconnectParams &dataDisconnectParams) = default;
56    DataDisconnectParams &operator=(const DataDisconnectParams &dataDisconnectParams) = default;
57
58private:
59    std::string apnType_;
60    DisConnectionReason reason_;
61};
62} // namespace Telephony
63} // namespace OHOS
64#endif // DATA_DISCONNECT_PARAMS_H
65