Compare commits

...

2 Commits

Author SHA1 Message Date
sdk-team
2f7735992b Generated 2016-11-01 for live. 2021-01-15 01:37:20 +00:00
sdk-team
c97337aa82 Add function. 2021-01-14 11:04:54 +00:00
32 changed files with 2384 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2021-01-15 Version: patch
- Generated 2016-11-01 for `live`.
2021-01-14 Version: patch
- Add function.
2021-01-14 Version: patch
- Add BillingDate support in QueryAccontBill.
- Add SplitAccountId, SplitAccountName, SplitBillingCycle, SplitProductDetail, SplitCommodityCode, ServicePeriodUnit support in QuerySplitItemBill.

View File

@@ -27,10 +27,14 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/BindDeviceResult.h
include/alibabacloud/cdrs/model/CreateProjectRequest.h
include/alibabacloud/cdrs/model/CreateProjectResult.h
include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h
include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h
include/alibabacloud/cdrs/model/GetCdrsMonitorListRequest.h
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h
include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
@@ -103,6 +107,14 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/PaginateDeviceResult.h
include/alibabacloud/cdrs/model/PaginateProjectRequest.h
include/alibabacloud/cdrs/model/PaginateProjectResult.h
include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h
include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h
include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h
include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h
include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h
include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h
include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h
include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
include/alibabacloud/cdrs/model/RecognizeImageResult.h
include/alibabacloud/cdrs/model/SearchObjectRequest.h
@@ -114,7 +126,9 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/UpdateCdrsMonitorRequest.h
include/alibabacloud/cdrs/model/UpdateCdrsMonitorResult.h
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
include/alibabacloud/cdrs/model/UpdateProjectResult.h
include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h
include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h )
set(cdrs_src
src/CDRSClient.cc
@@ -124,10 +138,14 @@ set(cdrs_src
src/model/BindDeviceResult.cc
src/model/CreateProjectRequest.cc
src/model/CreateProjectResult.cc
src/model/DetectTrajectoryRegularPatternRequest.cc
src/model/DetectTrajectoryRegularPatternResult.cc
src/model/GetCdrsMonitorListRequest.cc
src/model/GetCdrsMonitorListResult.cc
src/model/GetCdrsMonitorResultRequest.cc
src/model/GetCdrsMonitorResultResult.cc
src/model/IntersectTrajectoryRequest.cc
src/model/IntersectTrajectoryResult.cc
src/model/ListAreaHotSpotMetricsRequest.cc
src/model/ListAreaHotSpotMetricsResult.cc
src/model/ListCityMapAoisRequest.cc
@@ -200,6 +218,14 @@ set(cdrs_src
src/model/PaginateDeviceResult.cc
src/model/PaginateProjectRequest.cc
src/model/PaginateProjectResult.cc
src/model/PredictTrajectoryDestinationRequest.cc
src/model/PredictTrajectoryDestinationResult.cc
src/model/QueryTrajectoryByIdRequest.cc
src/model/QueryTrajectoryByIdResult.cc
src/model/RecallTrajectoryByCoordinateRequest.cc
src/model/RecallTrajectoryByCoordinateResult.cc
src/model/RecallTrajectoryByIdRequest.cc
src/model/RecallTrajectoryByIdResult.cc
src/model/RecognizeImageRequest.cc
src/model/RecognizeImageResult.cc
src/model/SearchObjectRequest.cc
@@ -211,7 +237,9 @@ set(cdrs_src
src/model/UpdateCdrsMonitorRequest.cc
src/model/UpdateCdrsMonitorResult.cc
src/model/UpdateProjectRequest.cc
src/model/UpdateProjectResult.cc )
src/model/UpdateProjectResult.cc
src/model/ValidateTrajectoryRequest.cc
src/model/ValidateTrajectoryResult.cc )
add_library(cdrs ${LIB_TYPE}
${cdrs_public_header}

View File

@@ -28,10 +28,14 @@
#include "model/BindDeviceResult.h"
#include "model/CreateProjectRequest.h"
#include "model/CreateProjectResult.h"
#include "model/DetectTrajectoryRegularPatternRequest.h"
#include "model/DetectTrajectoryRegularPatternResult.h"
#include "model/GetCdrsMonitorListRequest.h"
#include "model/GetCdrsMonitorListResult.h"
#include "model/GetCdrsMonitorResultRequest.h"
#include "model/GetCdrsMonitorResultResult.h"
#include "model/IntersectTrajectoryRequest.h"
#include "model/IntersectTrajectoryResult.h"
#include "model/ListAreaHotSpotMetricsRequest.h"
#include "model/ListAreaHotSpotMetricsResult.h"
#include "model/ListCityMapAoisRequest.h"
@@ -104,6 +108,14 @@
#include "model/PaginateDeviceResult.h"
#include "model/PaginateProjectRequest.h"
#include "model/PaginateProjectResult.h"
#include "model/PredictTrajectoryDestinationRequest.h"
#include "model/PredictTrajectoryDestinationResult.h"
#include "model/QueryTrajectoryByIdRequest.h"
#include "model/QueryTrajectoryByIdResult.h"
#include "model/RecallTrajectoryByCoordinateRequest.h"
#include "model/RecallTrajectoryByCoordinateResult.h"
#include "model/RecallTrajectoryByIdRequest.h"
#include "model/RecallTrajectoryByIdResult.h"
#include "model/RecognizeImageRequest.h"
#include "model/RecognizeImageResult.h"
#include "model/SearchObjectRequest.h"
@@ -116,6 +128,8 @@
#include "model/UpdateCdrsMonitorResult.h"
#include "model/UpdateProjectRequest.h"
#include "model/UpdateProjectResult.h"
#include "model/ValidateTrajectoryRequest.h"
#include "model/ValidateTrajectoryResult.h"
namespace AlibabaCloud
@@ -134,12 +148,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
typedef Outcome<Error, Model::DetectTrajectoryRegularPatternResult> DetectTrajectoryRegularPatternOutcome;
typedef std::future<DetectTrajectoryRegularPatternOutcome> DetectTrajectoryRegularPatternOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::DetectTrajectoryRegularPatternRequest&, const DetectTrajectoryRegularPatternOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectTrajectoryRegularPatternAsyncHandler;
typedef Outcome<Error, Model::GetCdrsMonitorListResult> GetCdrsMonitorListOutcome;
typedef std::future<GetCdrsMonitorListOutcome> GetCdrsMonitorListOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorListRequest&, const GetCdrsMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorListAsyncHandler;
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
typedef Outcome<Error, Model::IntersectTrajectoryResult> IntersectTrajectoryOutcome;
typedef std::future<IntersectTrajectoryOutcome> IntersectTrajectoryOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::IntersectTrajectoryRequest&, const IntersectTrajectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IntersectTrajectoryAsyncHandler;
typedef Outcome<Error, Model::ListAreaHotSpotMetricsResult> ListAreaHotSpotMetricsOutcome;
typedef std::future<ListAreaHotSpotMetricsOutcome> ListAreaHotSpotMetricsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListAreaHotSpotMetricsRequest&, const ListAreaHotSpotMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAreaHotSpotMetricsAsyncHandler;
@@ -248,6 +268,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::PaginateProjectResult> PaginateProjectOutcome;
typedef std::future<PaginateProjectOutcome> PaginateProjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::PaginateProjectRequest&, const PaginateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateProjectAsyncHandler;
typedef Outcome<Error, Model::PredictTrajectoryDestinationResult> PredictTrajectoryDestinationOutcome;
typedef std::future<PredictTrajectoryDestinationOutcome> PredictTrajectoryDestinationOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::PredictTrajectoryDestinationRequest&, const PredictTrajectoryDestinationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictTrajectoryDestinationAsyncHandler;
typedef Outcome<Error, Model::QueryTrajectoryByIdResult> QueryTrajectoryByIdOutcome;
typedef std::future<QueryTrajectoryByIdOutcome> QueryTrajectoryByIdOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::QueryTrajectoryByIdRequest&, const QueryTrajectoryByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTrajectoryByIdAsyncHandler;
typedef Outcome<Error, Model::RecallTrajectoryByCoordinateResult> RecallTrajectoryByCoordinateOutcome;
typedef std::future<RecallTrajectoryByCoordinateOutcome> RecallTrajectoryByCoordinateOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::RecallTrajectoryByCoordinateRequest&, const RecallTrajectoryByCoordinateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecallTrajectoryByCoordinateAsyncHandler;
typedef Outcome<Error, Model::RecallTrajectoryByIdResult> RecallTrajectoryByIdOutcome;
typedef std::future<RecallTrajectoryByIdOutcome> RecallTrajectoryByIdOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::RecallTrajectoryByIdRequest&, const RecallTrajectoryByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecallTrajectoryByIdAsyncHandler;
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
@@ -266,6 +298,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
typedef Outcome<Error, Model::ValidateTrajectoryResult> ValidateTrajectoryOutcome;
typedef std::future<ValidateTrajectoryOutcome> ValidateTrajectoryOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ValidateTrajectoryRequest&, const ValidateTrajectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ValidateTrajectoryAsyncHandler;
CDRSClient(const Credentials &credentials, const ClientConfiguration &configuration);
CDRSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -280,12 +315,18 @@ namespace AlibabaCloud
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
DetectTrajectoryRegularPatternOutcome detectTrajectoryRegularPattern(const Model::DetectTrajectoryRegularPatternRequest &request)const;
void detectTrajectoryRegularPatternAsync(const Model::DetectTrajectoryRegularPatternRequest& request, const DetectTrajectoryRegularPatternAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectTrajectoryRegularPatternOutcomeCallable detectTrajectoryRegularPatternCallable(const Model::DetectTrajectoryRegularPatternRequest& request) const;
GetCdrsMonitorListOutcome getCdrsMonitorList(const Model::GetCdrsMonitorListRequest &request)const;
void getCdrsMonitorListAsync(const Model::GetCdrsMonitorListRequest& request, const GetCdrsMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCdrsMonitorListOutcomeCallable getCdrsMonitorListCallable(const Model::GetCdrsMonitorListRequest& request) const;
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
IntersectTrajectoryOutcome intersectTrajectory(const Model::IntersectTrajectoryRequest &request)const;
void intersectTrajectoryAsync(const Model::IntersectTrajectoryRequest& request, const IntersectTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
IntersectTrajectoryOutcomeCallable intersectTrajectoryCallable(const Model::IntersectTrajectoryRequest& request) const;
ListAreaHotSpotMetricsOutcome listAreaHotSpotMetrics(const Model::ListAreaHotSpotMetricsRequest &request)const;
void listAreaHotSpotMetricsAsync(const Model::ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAreaHotSpotMetricsOutcomeCallable listAreaHotSpotMetricsCallable(const Model::ListAreaHotSpotMetricsRequest& request) const;
@@ -394,6 +435,18 @@ namespace AlibabaCloud
PaginateProjectOutcome paginateProject(const Model::PaginateProjectRequest &request)const;
void paginateProjectAsync(const Model::PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PaginateProjectOutcomeCallable paginateProjectCallable(const Model::PaginateProjectRequest& request) const;
PredictTrajectoryDestinationOutcome predictTrajectoryDestination(const Model::PredictTrajectoryDestinationRequest &request)const;
void predictTrajectoryDestinationAsync(const Model::PredictTrajectoryDestinationRequest& request, const PredictTrajectoryDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PredictTrajectoryDestinationOutcomeCallable predictTrajectoryDestinationCallable(const Model::PredictTrajectoryDestinationRequest& request) const;
QueryTrajectoryByIdOutcome queryTrajectoryById(const Model::QueryTrajectoryByIdRequest &request)const;
void queryTrajectoryByIdAsync(const Model::QueryTrajectoryByIdRequest& request, const QueryTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTrajectoryByIdOutcomeCallable queryTrajectoryByIdCallable(const Model::QueryTrajectoryByIdRequest& request) const;
RecallTrajectoryByCoordinateOutcome recallTrajectoryByCoordinate(const Model::RecallTrajectoryByCoordinateRequest &request)const;
void recallTrajectoryByCoordinateAsync(const Model::RecallTrajectoryByCoordinateRequest& request, const RecallTrajectoryByCoordinateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecallTrajectoryByCoordinateOutcomeCallable recallTrajectoryByCoordinateCallable(const Model::RecallTrajectoryByCoordinateRequest& request) const;
RecallTrajectoryByIdOutcome recallTrajectoryById(const Model::RecallTrajectoryByIdRequest &request)const;
void recallTrajectoryByIdAsync(const Model::RecallTrajectoryByIdRequest& request, const RecallTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecallTrajectoryByIdOutcomeCallable recallTrajectoryByIdCallable(const Model::RecallTrajectoryByIdRequest& request) const;
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
@@ -412,6 +465,9 @@ namespace AlibabaCloud
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
ValidateTrajectoryOutcome validateTrajectory(const Model::ValidateTrajectoryRequest &request)const;
void validateTrajectoryAsync(const Model::ValidateTrajectoryRequest& request, const ValidateTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ValidateTrajectoryOutcomeCallable validateTrajectoryCallable(const Model::ValidateTrajectoryRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT DetectTrajectoryRegularPatternRequest : public RpcServiceRequest
{
public:
DetectTrajectoryRegularPatternRequest();
~DetectTrajectoryRegularPatternRequest();
std::string getPredictDate()const;
void setPredictDate(const std::string& predictDate);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getIdValue()const;
void setIdValue(const std::string& idValue);
std::string getIdType()const;
void setIdType(const std::string& idType);
private:
std::string predictDate_;
std::string corpId_;
std::string idValue_;
std::string idType_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT DetectTrajectoryRegularPatternResult : public ServiceResult
{
public:
DetectTrajectoryRegularPatternResult();
explicit DetectTrajectoryRegularPatternResult(const std::string &payload);
~DetectTrajectoryRegularPatternResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_DETECTTRAJECTORYREGULARPATTERNRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT IntersectTrajectoryRequest : public RpcServiceRequest
{
public:
struct IdList
{
std::string idType;
std::string idValue;
};
public:
IntersectTrajectoryRequest();
~IntersectTrajectoryRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
int getDeltaDistance()const;
void setDeltaDistance(int deltaDistance);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
int getDeltaTime()const;
void setDeltaTime(int deltaTime);
std::vector<IdList> getIdList()const;
void setIdList(const std::vector<IdList>& idList);
private:
std::string corpId_;
std::string endTime_;
int deltaDistance_;
std::string startTime_;
int deltaTime_;
std::vector<IdList> idList_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT IntersectTrajectoryResult : public ServiceResult
{
public:
IntersectTrajectoryResult();
explicit IntersectTrajectoryResult(const std::string &payload);
~IntersectTrajectoryResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PredictTrajectoryDestinationRequest : public RpcServiceRequest
{
public:
PredictTrajectoryDestinationRequest();
~PredictTrajectoryDestinationRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getIdValue()const;
void setIdValue(const std::string& idValue);
std::string getIdType()const;
void setIdType(const std::string& idType);
int getPredictTimeSpan()const;
void setPredictTimeSpan(int predictTimeSpan);
private:
std::string corpId_;
std::string idValue_;
std::string idType_;
int predictTimeSpan_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PredictTrajectoryDestinationResult : public ServiceResult
{
public:
PredictTrajectoryDestinationResult();
explicit PredictTrajectoryDestinationResult(const std::string &payload);
~PredictTrajectoryDestinationResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_PREDICTTRAJECTORYDESTINATIONRESULT_H_

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT QueryTrajectoryByIdRequest : public RpcServiceRequest
{
public:
struct DeviceList
{
std::string deviceId;
};
struct IdList
{
std::string idType;
std::string idValue;
};
public:
QueryTrajectoryByIdRequest();
~QueryTrajectoryByIdRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::vector<DeviceList> getDeviceList()const;
void setDeviceList(const std::vector<DeviceList>& deviceList);
std::vector<IdList> getIdList()const;
void setIdList(const std::vector<IdList>& idList);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::vector<DeviceList> deviceList_;
std::vector<IdList> idList_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT QueryTrajectoryByIdResult : public ServiceResult
{
public:
QueryTrajectoryByIdResult();
explicit QueryTrajectoryByIdResult(const std::string &payload);
~QueryTrajectoryByIdResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByCoordinateRequest : public RpcServiceRequest
{
public:
struct PointList
{
float latitude;
float longitude;
};
public:
RecallTrajectoryByCoordinateRequest();
~RecallTrajectoryByCoordinateRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::vector<PointList> getPointList()const;
void setPointList(const std::vector<PointList>& pointList);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
int getDeltaDistance()const;
void setDeltaDistance(int deltaDistance);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::vector<std::string> getOutputIdTypeList()const;
void setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList);
int getDeltaTime()const;
void setDeltaTime(int deltaTime);
int getOutputIdCount()const;
void setOutputIdCount(int outputIdCount);
private:
std::string corpId_;
std::vector<PointList> pointList_;
std::string endTime_;
int deltaDistance_;
std::string startTime_;
std::vector<std::string> outputIdTypeList_;
int deltaTime_;
int outputIdCount_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByCoordinateResult : public ServiceResult
{
public:
RecallTrajectoryByCoordinateResult();
explicit RecallTrajectoryByCoordinateResult(const std::string &payload);
~RecallTrajectoryByCoordinateResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATERESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByIdRequest : public RpcServiceRequest
{
public:
RecallTrajectoryByIdRequest();
~RecallTrajectoryByIdRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getIdValue()const;
void setIdValue(const std::string& idValue);
int getDeltaDistance()const;
void setDeltaDistance(int deltaDistance);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getIdType()const;
void setIdType(const std::string& idType);
std::vector<std::string> getOutputIdTypeList()const;
void setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList);
int getDeltaTime()const;
void setDeltaTime(int deltaTime);
int getOutputIdCount()const;
void setOutputIdCount(int outputIdCount);
private:
std::string corpId_;
std::string endTime_;
std::string idValue_;
int deltaDistance_;
std::string startTime_;
std::string idType_;
std::vector<std::string> outputIdTypeList_;
int deltaTime_;
int outputIdCount_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT RecallTrajectoryByIdResult : public ServiceResult
{
public:
RecallTrajectoryByIdResult();
explicit RecallTrajectoryByIdResult(const std::string &payload);
~RecallTrajectoryByIdResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ValidateTrajectoryRequest : public RpcServiceRequest
{
public:
ValidateTrajectoryRequest();
~ValidateTrajectoryRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getIdValue()const;
void setIdValue(const std::string& idValue);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getIdType()const;
void setIdType(const std::string& idType);
private:
std::string corpId_;
std::string endTime_;
std::string idValue_;
std::string startTime_;
std::string idType_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ValidateTrajectoryResult : public ServiceResult
{
public:
ValidateTrajectoryResult();
explicit ValidateTrajectoryResult(const std::string &payload);
~ValidateTrajectoryResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_VALIDATETRAJECTORYRESULT_H_

View File

@@ -159,6 +159,42 @@ CDRSClient::CreateProjectOutcomeCallable CDRSClient::createProjectCallable(const
return task->get_future();
}
CDRSClient::DetectTrajectoryRegularPatternOutcome CDRSClient::detectTrajectoryRegularPattern(const DetectTrajectoryRegularPatternRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetectTrajectoryRegularPatternOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetectTrajectoryRegularPatternOutcome(DetectTrajectoryRegularPatternResult(outcome.result()));
else
return DetectTrajectoryRegularPatternOutcome(outcome.error());
}
void CDRSClient::detectTrajectoryRegularPatternAsync(const DetectTrajectoryRegularPatternRequest& request, const DetectTrajectoryRegularPatternAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detectTrajectoryRegularPattern(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::DetectTrajectoryRegularPatternOutcomeCallable CDRSClient::detectTrajectoryRegularPatternCallable(const DetectTrajectoryRegularPatternRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetectTrajectoryRegularPatternOutcome()>>(
[this, request]()
{
return this->detectTrajectoryRegularPattern(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::GetCdrsMonitorListOutcome CDRSClient::getCdrsMonitorList(const GetCdrsMonitorListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +267,42 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
return task->get_future();
}
CDRSClient::IntersectTrajectoryOutcome CDRSClient::intersectTrajectory(const IntersectTrajectoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return IntersectTrajectoryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return IntersectTrajectoryOutcome(IntersectTrajectoryResult(outcome.result()));
else
return IntersectTrajectoryOutcome(outcome.error());
}
void CDRSClient::intersectTrajectoryAsync(const IntersectTrajectoryRequest& request, const IntersectTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, intersectTrajectory(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::IntersectTrajectoryOutcomeCallable CDRSClient::intersectTrajectoryCallable(const IntersectTrajectoryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<IntersectTrajectoryOutcome()>>(
[this, request]()
{
return this->intersectTrajectory(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1527,6 +1599,150 @@ CDRSClient::PaginateProjectOutcomeCallable CDRSClient::paginateProjectCallable(c
return task->get_future();
}
CDRSClient::PredictTrajectoryDestinationOutcome CDRSClient::predictTrajectoryDestination(const PredictTrajectoryDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PredictTrajectoryDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PredictTrajectoryDestinationOutcome(PredictTrajectoryDestinationResult(outcome.result()));
else
return PredictTrajectoryDestinationOutcome(outcome.error());
}
void CDRSClient::predictTrajectoryDestinationAsync(const PredictTrajectoryDestinationRequest& request, const PredictTrajectoryDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, predictTrajectoryDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::PredictTrajectoryDestinationOutcomeCallable CDRSClient::predictTrajectoryDestinationCallable(const PredictTrajectoryDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PredictTrajectoryDestinationOutcome()>>(
[this, request]()
{
return this->predictTrajectoryDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::QueryTrajectoryByIdOutcome CDRSClient::queryTrajectoryById(const QueryTrajectoryByIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryTrajectoryByIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryTrajectoryByIdOutcome(QueryTrajectoryByIdResult(outcome.result()));
else
return QueryTrajectoryByIdOutcome(outcome.error());
}
void CDRSClient::queryTrajectoryByIdAsync(const QueryTrajectoryByIdRequest& request, const QueryTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryTrajectoryById(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::QueryTrajectoryByIdOutcomeCallable CDRSClient::queryTrajectoryByIdCallable(const QueryTrajectoryByIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryTrajectoryByIdOutcome()>>(
[this, request]()
{
return this->queryTrajectoryById(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::RecallTrajectoryByCoordinateOutcome CDRSClient::recallTrajectoryByCoordinate(const RecallTrajectoryByCoordinateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecallTrajectoryByCoordinateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecallTrajectoryByCoordinateOutcome(RecallTrajectoryByCoordinateResult(outcome.result()));
else
return RecallTrajectoryByCoordinateOutcome(outcome.error());
}
void CDRSClient::recallTrajectoryByCoordinateAsync(const RecallTrajectoryByCoordinateRequest& request, const RecallTrajectoryByCoordinateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recallTrajectoryByCoordinate(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::RecallTrajectoryByCoordinateOutcomeCallable CDRSClient::recallTrajectoryByCoordinateCallable(const RecallTrajectoryByCoordinateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecallTrajectoryByCoordinateOutcome()>>(
[this, request]()
{
return this->recallTrajectoryByCoordinate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::RecallTrajectoryByIdOutcome CDRSClient::recallTrajectoryById(const RecallTrajectoryByIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecallTrajectoryByIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecallTrajectoryByIdOutcome(RecallTrajectoryByIdResult(outcome.result()));
else
return RecallTrajectoryByIdOutcome(outcome.error());
}
void CDRSClient::recallTrajectoryByIdAsync(const RecallTrajectoryByIdRequest& request, const RecallTrajectoryByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recallTrajectoryById(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::RecallTrajectoryByIdOutcomeCallable CDRSClient::recallTrajectoryByIdCallable(const RecallTrajectoryByIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecallTrajectoryByIdOutcome()>>(
[this, request]()
{
return this->recallTrajectoryById(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1743,3 +1959,39 @@ CDRSClient::UpdateProjectOutcomeCallable CDRSClient::updateProjectCallable(const
return task->get_future();
}
CDRSClient::ValidateTrajectoryOutcome CDRSClient::validateTrajectory(const ValidateTrajectoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ValidateTrajectoryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ValidateTrajectoryOutcome(ValidateTrajectoryResult(outcome.result()));
else
return ValidateTrajectoryOutcome(outcome.error());
}
void CDRSClient::validateTrajectoryAsync(const ValidateTrajectoryRequest& request, const ValidateTrajectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, validateTrajectory(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ValidateTrajectoryOutcomeCallable CDRSClient::validateTrajectoryCallable(const ValidateTrajectoryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ValidateTrajectoryOutcome()>>(
[this, request]()
{
return this->validateTrajectory(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h>
using AlibabaCloud::CDRS::Model::DetectTrajectoryRegularPatternRequest;
DetectTrajectoryRegularPatternRequest::DetectTrajectoryRegularPatternRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "DetectTrajectoryRegularPattern")
{
setMethod(HttpRequest::Method::Post);
}
DetectTrajectoryRegularPatternRequest::~DetectTrajectoryRegularPatternRequest()
{}
std::string DetectTrajectoryRegularPatternRequest::getPredictDate()const
{
return predictDate_;
}
void DetectTrajectoryRegularPatternRequest::setPredictDate(const std::string& predictDate)
{
predictDate_ = predictDate;
setBodyParameter("PredictDate", predictDate);
}
std::string DetectTrajectoryRegularPatternRequest::getCorpId()const
{
return corpId_;
}
void DetectTrajectoryRegularPatternRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string DetectTrajectoryRegularPatternRequest::getIdValue()const
{
return idValue_;
}
void DetectTrajectoryRegularPatternRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string DetectTrajectoryRegularPatternRequest::getIdType()const
{
return idType_;
}
void DetectTrajectoryRegularPatternRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
DetectTrajectoryRegularPatternResult::DetectTrajectoryRegularPatternResult() :
ServiceResult()
{}
DetectTrajectoryRegularPatternResult::DetectTrajectoryRegularPatternResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectTrajectoryRegularPatternResult::~DetectTrajectoryRegularPatternResult()
{}
void DetectTrajectoryRegularPatternResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DetectTrajectoryRegularPatternResult::getMessage()const
{
return message_;
}
std::string DetectTrajectoryRegularPatternResult::getData()const
{
return data_;
}
int DetectTrajectoryRegularPatternResult::getCode()const
{
return code_;
}
bool DetectTrajectoryRegularPatternResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/IntersectTrajectoryRequest.h>
using AlibabaCloud::CDRS::Model::IntersectTrajectoryRequest;
IntersectTrajectoryRequest::IntersectTrajectoryRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "IntersectTrajectory")
{
setMethod(HttpRequest::Method::Post);
}
IntersectTrajectoryRequest::~IntersectTrajectoryRequest()
{}
std::string IntersectTrajectoryRequest::getCorpId()const
{
return corpId_;
}
void IntersectTrajectoryRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string IntersectTrajectoryRequest::getEndTime()const
{
return endTime_;
}
void IntersectTrajectoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
int IntersectTrajectoryRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void IntersectTrajectoryRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string IntersectTrajectoryRequest::getStartTime()const
{
return startTime_;
}
void IntersectTrajectoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
int IntersectTrajectoryRequest::getDeltaTime()const
{
return deltaTime_;
}
void IntersectTrajectoryRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
std::vector<IntersectTrajectoryRequest::IdList> IntersectTrajectoryRequest::getIdList()const
{
return idList_;
}
void IntersectTrajectoryRequest::setIdList(const std::vector<IdList>& idList)
{
idList_ = idList;
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
auto idListObj = idList.at(dep1);
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
setParameter(idListObjStr + ".IdType", idListObj.idType);
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/IntersectTrajectoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
IntersectTrajectoryResult::IntersectTrajectoryResult() :
ServiceResult()
{}
IntersectTrajectoryResult::IntersectTrajectoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
IntersectTrajectoryResult::~IntersectTrajectoryResult()
{}
void IntersectTrajectoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string IntersectTrajectoryResult::getMessage()const
{
return message_;
}
std::string IntersectTrajectoryResult::getData()const
{
return data_;
}
int IntersectTrajectoryResult::getCode()const
{
return code_;
}
bool IntersectTrajectoryResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h>
using AlibabaCloud::CDRS::Model::PredictTrajectoryDestinationRequest;
PredictTrajectoryDestinationRequest::PredictTrajectoryDestinationRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "PredictTrajectoryDestination")
{
setMethod(HttpRequest::Method::Post);
}
PredictTrajectoryDestinationRequest::~PredictTrajectoryDestinationRequest()
{}
std::string PredictTrajectoryDestinationRequest::getCorpId()const
{
return corpId_;
}
void PredictTrajectoryDestinationRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string PredictTrajectoryDestinationRequest::getIdValue()const
{
return idValue_;
}
void PredictTrajectoryDestinationRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string PredictTrajectoryDestinationRequest::getIdType()const
{
return idType_;
}
void PredictTrajectoryDestinationRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}
int PredictTrajectoryDestinationRequest::getPredictTimeSpan()const
{
return predictTimeSpan_;
}
void PredictTrajectoryDestinationRequest::setPredictTimeSpan(int predictTimeSpan)
{
predictTimeSpan_ = predictTimeSpan;
setBodyParameter("PredictTimeSpan", std::to_string(predictTimeSpan));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
PredictTrajectoryDestinationResult::PredictTrajectoryDestinationResult() :
ServiceResult()
{}
PredictTrajectoryDestinationResult::PredictTrajectoryDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PredictTrajectoryDestinationResult::~PredictTrajectoryDestinationResult()
{}
void PredictTrajectoryDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string PredictTrajectoryDestinationResult::getMessage()const
{
return message_;
}
std::string PredictTrajectoryDestinationResult::getData()const
{
return data_;
}
int PredictTrajectoryDestinationResult::getCode()const
{
return code_;
}
bool PredictTrajectoryDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h>
using AlibabaCloud::CDRS::Model::QueryTrajectoryByIdRequest;
QueryTrajectoryByIdRequest::QueryTrajectoryByIdRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "QueryTrajectoryById")
{
setMethod(HttpRequest::Method::Post);
}
QueryTrajectoryByIdRequest::~QueryTrajectoryByIdRequest()
{}
std::string QueryTrajectoryByIdRequest::getCorpId()const
{
return corpId_;
}
void QueryTrajectoryByIdRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string QueryTrajectoryByIdRequest::getEndTime()const
{
return endTime_;
}
void QueryTrajectoryByIdRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string QueryTrajectoryByIdRequest::getStartTime()const
{
return startTime_;
}
void QueryTrajectoryByIdRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::vector<QueryTrajectoryByIdRequest::DeviceList> QueryTrajectoryByIdRequest::getDeviceList()const
{
return deviceList_;
}
void QueryTrajectoryByIdRequest::setDeviceList(const std::vector<DeviceList>& deviceList)
{
deviceList_ = deviceList;
for(int dep1 = 0; dep1!= deviceList.size(); dep1++) {
auto deviceListObj = deviceList.at(dep1);
std::string deviceListObjStr = "DeviceList." + std::to_string(dep1 + 1);
setParameter(deviceListObjStr + ".DeviceId", deviceListObj.deviceId);
}
}
std::vector<QueryTrajectoryByIdRequest::IdList> QueryTrajectoryByIdRequest::getIdList()const
{
return idList_;
}
void QueryTrajectoryByIdRequest::setIdList(const std::vector<IdList>& idList)
{
idList_ = idList;
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
auto idListObj = idList.at(dep1);
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
setParameter(idListObjStr + ".IdType", idListObj.idType);
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
QueryTrajectoryByIdResult::QueryTrajectoryByIdResult() :
ServiceResult()
{}
QueryTrajectoryByIdResult::QueryTrajectoryByIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryTrajectoryByIdResult::~QueryTrajectoryByIdResult()
{}
void QueryTrajectoryByIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryTrajectoryByIdResult::getMessage()const
{
return message_;
}
std::string QueryTrajectoryByIdResult::getData()const
{
return data_;
}
int QueryTrajectoryByIdResult::getCode()const
{
return code_;
}
bool QueryTrajectoryByIdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,124 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h>
using AlibabaCloud::CDRS::Model::RecallTrajectoryByCoordinateRequest;
RecallTrajectoryByCoordinateRequest::RecallTrajectoryByCoordinateRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryByCoordinate")
{
setMethod(HttpRequest::Method::Post);
}
RecallTrajectoryByCoordinateRequest::~RecallTrajectoryByCoordinateRequest()
{}
std::string RecallTrajectoryByCoordinateRequest::getCorpId()const
{
return corpId_;
}
void RecallTrajectoryByCoordinateRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::vector<RecallTrajectoryByCoordinateRequest::PointList> RecallTrajectoryByCoordinateRequest::getPointList()const
{
return pointList_;
}
void RecallTrajectoryByCoordinateRequest::setPointList(const std::vector<PointList>& pointList)
{
pointList_ = pointList;
for(int dep1 = 0; dep1!= pointList.size(); dep1++) {
auto pointListObj = pointList.at(dep1);
std::string pointListObjStr = "PointList." + std::to_string(dep1 + 1);
setParameter(pointListObjStr + ".Latitude", std::to_string(pointListObj.latitude));
setParameter(pointListObjStr + ".Longitude", std::to_string(pointListObj.longitude));
}
}
std::string RecallTrajectoryByCoordinateRequest::getEndTime()const
{
return endTime_;
}
void RecallTrajectoryByCoordinateRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
int RecallTrajectoryByCoordinateRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void RecallTrajectoryByCoordinateRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string RecallTrajectoryByCoordinateRequest::getStartTime()const
{
return startTime_;
}
void RecallTrajectoryByCoordinateRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::vector<std::string> RecallTrajectoryByCoordinateRequest::getOutputIdTypeList()const
{
return outputIdTypeList_;
}
void RecallTrajectoryByCoordinateRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
{
outputIdTypeList_ = outputIdTypeList;
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
}
}
int RecallTrajectoryByCoordinateRequest::getDeltaTime()const
{
return deltaTime_;
}
void RecallTrajectoryByCoordinateRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
int RecallTrajectoryByCoordinateRequest::getOutputIdCount()const
{
return outputIdCount_;
}
void RecallTrajectoryByCoordinateRequest::setOutputIdCount(int outputIdCount)
{
outputIdCount_ = outputIdCount;
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
RecallTrajectoryByCoordinateResult::RecallTrajectoryByCoordinateResult() :
ServiceResult()
{}
RecallTrajectoryByCoordinateResult::RecallTrajectoryByCoordinateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecallTrajectoryByCoordinateResult::~RecallTrajectoryByCoordinateResult()
{}
void RecallTrajectoryByCoordinateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RecallTrajectoryByCoordinateResult::getMessage()const
{
return message_;
}
std::string RecallTrajectoryByCoordinateResult::getData()const
{
return data_;
}
int RecallTrajectoryByCoordinateResult::getCode()const
{
return code_;
}
bool RecallTrajectoryByCoordinateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h>
using AlibabaCloud::CDRS::Model::RecallTrajectoryByIdRequest;
RecallTrajectoryByIdRequest::RecallTrajectoryByIdRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryById")
{
setMethod(HttpRequest::Method::Post);
}
RecallTrajectoryByIdRequest::~RecallTrajectoryByIdRequest()
{}
std::string RecallTrajectoryByIdRequest::getCorpId()const
{
return corpId_;
}
void RecallTrajectoryByIdRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string RecallTrajectoryByIdRequest::getEndTime()const
{
return endTime_;
}
void RecallTrajectoryByIdRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string RecallTrajectoryByIdRequest::getIdValue()const
{
return idValue_;
}
void RecallTrajectoryByIdRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
int RecallTrajectoryByIdRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void RecallTrajectoryByIdRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string RecallTrajectoryByIdRequest::getStartTime()const
{
return startTime_;
}
void RecallTrajectoryByIdRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string RecallTrajectoryByIdRequest::getIdType()const
{
return idType_;
}
void RecallTrajectoryByIdRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}
std::vector<std::string> RecallTrajectoryByIdRequest::getOutputIdTypeList()const
{
return outputIdTypeList_;
}
void RecallTrajectoryByIdRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
{
outputIdTypeList_ = outputIdTypeList;
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
}
}
int RecallTrajectoryByIdRequest::getDeltaTime()const
{
return deltaTime_;
}
void RecallTrajectoryByIdRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
int RecallTrajectoryByIdRequest::getOutputIdCount()const
{
return outputIdCount_;
}
void RecallTrajectoryByIdRequest::setOutputIdCount(int outputIdCount)
{
outputIdCount_ = outputIdCount;
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
RecallTrajectoryByIdResult::RecallTrajectoryByIdResult() :
ServiceResult()
{}
RecallTrajectoryByIdResult::RecallTrajectoryByIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecallTrajectoryByIdResult::~RecallTrajectoryByIdResult()
{}
void RecallTrajectoryByIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RecallTrajectoryByIdResult::getMessage()const
{
return message_;
}
std::string RecallTrajectoryByIdResult::getData()const
{
return data_;
}
int RecallTrajectoryByIdResult::getCode()const
{
return code_;
}
bool RecallTrajectoryByIdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/ValidateTrajectoryRequest.h>
using AlibabaCloud::CDRS::Model::ValidateTrajectoryRequest;
ValidateTrajectoryRequest::ValidateTrajectoryRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ValidateTrajectory")
{
setMethod(HttpRequest::Method::Post);
}
ValidateTrajectoryRequest::~ValidateTrajectoryRequest()
{}
std::string ValidateTrajectoryRequest::getCorpId()const
{
return corpId_;
}
void ValidateTrajectoryRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ValidateTrajectoryRequest::getEndTime()const
{
return endTime_;
}
void ValidateTrajectoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ValidateTrajectoryRequest::getIdValue()const
{
return idValue_;
}
void ValidateTrajectoryRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string ValidateTrajectoryRequest::getStartTime()const
{
return startTime_;
}
void ValidateTrajectoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ValidateTrajectoryRequest::getIdType()const
{
return idType_;
}
void ValidateTrajectoryRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/ValidateTrajectoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ValidateTrajectoryResult::ValidateTrajectoryResult() :
ServiceResult()
{}
ValidateTrajectoryResult::ValidateTrajectoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ValidateTrajectoryResult::~ValidateTrajectoryResult()
{}
void ValidateTrajectoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ValidateTrajectoryResult::getMessage()const
{
return message_;
}
std::string ValidateTrajectoryResult::getData()const
{
return data_;
}
int ValidateTrajectoryResult::getCode()const
{
return code_;
}
bool ValidateTrajectoryResult::getSuccess()const
{
return success_;
}