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 #ifndef OHOS_MEDIA_BACKUP_REPORT_DATA_TYPE_H 16 #define OHOS_MEDIA_BACKUP_REPORT_DATA_TYPE_H 17 18 #include <string> 19 20 namespace OHOS::Media { 21 struct AlbumMediaStatisticInfo { 22 int32_t sceneCode; 23 std::string taskId; 24 std::string albumName; 25 int32_t totalCount; 26 int32_t imageCount; 27 int32_t videoCount; 28 int32_t hiddenCount; 29 int32_t trashedCount; 30 int32_t cloudCount; 31 int32_t favoriteCount; 32 int32_t burstCoverCount; 33 int32_t burstTotalCount; 34 }; 35 struct MediaRestoreResultInfo { 36 int32_t sceneCode; 37 std::string taskId; 38 std::string errorCode; 39 std::string errorInfo; 40 std::string type; 41 std::string backupInfo; 42 int duplicateCount; 43 int failedCount; 44 int successCount; 45 }; 46 } // namespace OHOS::Media 47 #endif // OHOS_MEDIA_BACKUP_REPORT_DATA_TYPE_H