1 /*
2  * Copyright (c) 2024 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 COMMUNICATION_NETMANAGER_BASE_NET_STATS_NETWORK_H
17 #define COMMUNICATION_NETMANAGER_BASE_NET_STATS_NETWORK_H
18 
19 #include "parcel.h"
20 
21 namespace OHOS {
22 namespace NetManagerStandard {
23 #define NET_SYMBOL_VISIBLE_NETWORK __attribute__((visibility("default")))
24 struct NET_SYMBOL_VISIBLE_NETWORK NetStatsNetwork final : public Parcelable {
25     uint32_t type_ = 0;
26     uint64_t startTime_ = 0;
27     uint64_t endTime_ = 0;
28     uint32_t simId_ = UINT32_MAX;
29 
30     bool Marshalling(Parcel &parcel) const override;
31     static bool Marshalling(Parcel &parcel, const sptr<NetStatsNetwork> &object);
32     static sptr<NetStatsNetwork> Unmarshalling(Parcel &parcel);
33 };
34 } // namespace NetManagerStandard
35 } // namespace OHOS
36 
37 #endif // COMMUNICATION_NETMANAGER_BASE_NET_STATS_NETWORK_H