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 OHOS_DEVICE_SERVICE_PROFILE_CHARACTERISTIC_PROFILE_H
17 #define OHOS_DEVICE_SERVICE_PROFILE_CHARACTERISTIC_PROFILE_H
18 
19 #include "parcel.h"
20 
21 namespace OHOS {
22 namespace DeviceProfile {
23 class ServiceCharacteristicProfile : public Parcelable {
24 public:
25     ServiceCharacteristicProfile() = default;
26     ~ServiceCharacteristicProfile() = default;
27 
28     void SetServiceId(const std::string& serviceId);
29     void SetServiceType(const std::string& serviceType);
30     void SetServiceProfileJson(const std::string& profileJson);
31     void SetCharacteristicProfileJson(const std::string& profileJson);
32 
33     const std::string& GetServiceId() const;
34     const std::string& GetServiceType() const;
35     const std::string& GetServiceProfileJson() const;
36     const std::string& GetCharacteristicProfileJson() const;
37 
38     bool Marshalling(Parcel& parcel) const override;
39     bool Unmarshalling(Parcel& parcel);
40 
41 private:
42     std::string serviceId_;
43     std::string serviceType_;
44     // reserved, not used currently
45     std::string serviceProfileJson_;
46     std::string characteristicProfileJson_;
47 };
48 } // namespace DeviceProfile
49 } // namespace OHOS
50 #endif // OHOS_DEVICE_SERVICE_PROFILE_CHARACTERISTIC_PROFILE_H