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 #ifndef OHOS_MEDIA_ASSETS_MANAGER_CREATE_ASSET_DTO_H 17 #define OHOS_MEDIA_ASSETS_MANAGER_CREATE_ASSET_DTO_H 18 19 #include <stdint.h> 20 #include <string> 21 22 #include "create_asset_vo.h" 23 24 namespace OHOS::Media { 25 class CreateAssetDto { 26 public: 27 int32_t tokenId{0}; 28 int32_t mediaType{0}; 29 int32_t photoSubtype{0}; 30 std::string title; 31 std::string extension; 32 std::string displayName; 33 std::string cameraShotKey; 34 std::string bundleName; 35 std::string packageName; 36 std::string appId; 37 std::string ownerAlbumId; 38 39 int32_t fileId{0}; 40 std::string outUri; 41 42 public: 43 CreateAssetDto(const CreateAssetReqBody &reqBody); 44 CreateAssetDto(const CreateAssetForAppReqBody &reqBody); 45 CreateAssetRespBody GetRespBody(); 46 }; 47 } // namespace OHOS::Media 48 #endif // OHOS_MEDIA_ASSETS_MANAGER_CREATE_ASSET_DTO_H