/* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OHOS_DP_SERVICE_PROFILE_H #define OHOS_DP_SERVICE_PROFILE_H #include #include #include "dp_parcel.h" namespace OHOS { namespace DistributedDeviceProfile { class ServiceProfile : public DpParcel { public: ServiceProfile(const std::string& deviceId, const std::string& serviceName, const std::string& serviceType); ServiceProfile(); ~ServiceProfile(); std::string GetDeviceId() const; void SetDeviceId(const std::string& deviceId); std::string GetServiceName() const; void SetServiceName(const std::string& serviceName); std::string GetServiceType() const; void SetServiceType(const std::string& serviceType); bool Marshalling(MessageParcel& parcel) const override; bool UnMarshalling(MessageParcel& parcel) override; bool operator!=(const ServiceProfile& serviceProfile) const; std::string dump() const override; private: std::string deviceId_ = ""; std::string serviceName_ = ""; std::string serviceType_ = ""; }; } // namespace DistributedDeviceProfile } // namespace OHOS #endif //OHOS_DP_SERVICE_PROFILE_H