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 #include "operate_device_param_serializer.h"
17
18 #include "message_parcel_utils.h"
19
20 namespace OHOS {
21 namespace EDM {
22
Deserialize(const std::string & jsonString,OperateDeviceParam & policy)23 bool OperateDeviceParamSerializer::Deserialize(const std::string &jsonString, OperateDeviceParam &policy)
24 {
25 return true;
26 }
27
Serialize(const OperateDeviceParam & policy,std::string & jsonString)28 bool OperateDeviceParamSerializer::Serialize(const OperateDeviceParam &policy, std::string &jsonString)
29 {
30 return true;
31 }
32
GetPolicy(MessageParcel & data,OperateDeviceParam & result)33 bool OperateDeviceParamSerializer::GetPolicy(MessageParcel &data, OperateDeviceParam &result)
34 {
35 MessageParcelUtils::ReadOperateDeviceParam(data, result);
36 return true;
37 }
38
WritePolicy(MessageParcel & reply,OperateDeviceParam & result)39 bool OperateDeviceParamSerializer::WritePolicy(MessageParcel &reply, OperateDeviceParam &result)
40 {
41 MessageParcelUtils::WriteOperateDeviceParam(result, reply);
42 return true;
43 }
44
MergePolicy(std::vector<OperateDeviceParam> & data,OperateDeviceParam & result)45 bool OperateDeviceParamSerializer::MergePolicy(std::vector<OperateDeviceParam> &data, OperateDeviceParam &result)
46 {
47 return true;
48 }
49 } // namespace EDM
50 } // namespace OHOS