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 "cloud/cloud_report.h"
17 
18 namespace OHOS::DistributedData {
19 CloudReport *CloudReport::instance_ = nullptr;
20 
GetInstance()21 CloudReport *CloudReport::GetInstance()
22 {
23     return instance_;
24 }
25 
RegisterCloudReportInstance(CloudReport * instance)26 bool CloudReport::RegisterCloudReportInstance(CloudReport *instance)
27 {
28     if (instance_ != nullptr) {
29         return false;
30     }
31     instance_ = instance;
32     return true;
33 }
34 
GetPrepareTraceId(int32_t userId)35 std::string CloudReport::GetPrepareTraceId(int32_t userId)
36 {
37     return "";
38 }
39 
GetRequestTraceId(int32_t userId)40 std::string CloudReport::GetRequestTraceId(int32_t userId)
41 {
42     return "";
43 }
44 
Report(const ReportParam & reportParam)45 bool CloudReport::Report(const ReportParam &reportParam)
46 {
47     return true;
48 }
49 } // namespace OHOS::DistributedData