1 /* 2 * Copyright (c) 2025 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_MEDIA_CLOUD_SYNC_ON_DENTRY_FILE_INSERT_VO_H 17 #define OHOS_MEDIA_CLOUD_SYNC_ON_DENTRY_FILE_INSERT_VO_H 18 19 #include <string> 20 #include <vector> 21 22 #include "i_media_parcelable.h" 23 #include "photos_po.h" 24 #include "on_fetch_photos_vo.h" 25 #include "media_itypes_utils.h" 26 #include "cloud_media_define.h" 27 28 namespace OHOS::Media::CloudSync { 29 30 class EXPORT OnDentryFileReqBody : public IPC::IMediaParcelable { 31 public: 32 std::vector<OnFetchPhotosVo> records; 33 34 public: // functions of Parcelable. 35 virtual ~OnDentryFileReqBody() = default; 36 bool Unmarshalling(MessageParcel &parcel) override; 37 bool Marshalling(MessageParcel &parcel) const override; 38 39 public: 40 int32_t AddOnDentryFileRecord(const OnFetchPhotosVo &record); 41 std::vector<OnFetchPhotosVo> GetOnDentryFileRecord(); 42 43 public: // basic functions 44 std::string ToString() const; 45 }; 46 47 class EXPORT OnDentryFileRespBody : public IPC::IMediaParcelable { 48 public: 49 std::vector<std::string> failedRecords; 50 51 public: 52 virtual ~OnDentryFileRespBody() = default; 53 bool Unmarshalling(MessageParcel &parcel) override; 54 bool Marshalling(MessageParcel &parcel) const override; 55 56 public: // basic functions 57 std::string ToString() const; 58 }; 59 } // namespace OHOS::Media::CloudSync 60 #endif // OHOS_MEDIA_CLOUD_SYNC_ON_DENTRY_FILE_INSERT_VO_H 61