1 /*
2  * Copyright (c) 2023 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 "snapshot/snapshot.h"
17 namespace OHOS::DistributedData {
18 
Upload(OHOS::DistributedData::Asset & asset)19 int32_t Snapshot::Upload(OHOS::DistributedData::Asset& asset)
20 {
21     return E_OK;
22 }
23 
Download(OHOS::DistributedData::Asset & asset)24 int32_t Snapshot::Download(OHOS::DistributedData::Asset& asset)
25 {
26     return E_OK;
27 }
Uploaded(Asset & asset)28 int32_t Snapshot::Uploaded(Asset& asset)
29 {
30     return E_OK;
31 }
Downloaded(Asset & asset)32 int32_t Snapshot::Downloaded(Asset& asset)
33 {
34     return E_OK;
35 }
36 
Transferred(Asset & asset)37 int32_t Snapshot::Transferred(Asset& asset)
38 {
39     return E_OK;
40 }
41 
GetAssetStatus(Asset & asset)42 TransferStatus Snapshot::GetAssetStatus(Asset& asset)
43 {
44     return STATUS_BUTT;
45 }
46 
BindAsset(const Asset & asset,const AssetBindInfo & bindInfo,const StoreInfo & storeInfo)47 int32_t Snapshot::BindAsset(const Asset& asset, const AssetBindInfo& bindInfo, const StoreInfo& storeInfo)
48 {
49     return E_OK;
50 }
51 
OnDataChanged(Asset & asset,const std::string & deviceId)52 int32_t Snapshot::OnDataChanged(Asset& asset, const std::string &deviceId)
53 {
54     return E_OK;
55 }
56 
IsBoundAsset(const Asset & asset)57 bool Snapshot::IsBoundAsset(const Asset& asset)
58 {
59     return false;
60 }
61 } // namespace OHOS::DistributedData
62