From c97337aa82768225670cbb564e0db6f37540bfd2 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 14 Jan 2021 11:04:54 +0000 Subject: [PATCH] Add function. --- CHANGELOG | 3 + cdrs/CMakeLists.txt | 32 ++- cdrs/include/alibabacloud/cdrs/CDRSClient.h | 56 ++++ .../DetectTrajectoryRegularPatternRequest.h | 57 ++++ .../DetectTrajectoryRegularPatternResult.h | 57 ++++ .../cdrs/model/IntersectTrajectoryRequest.h | 69 +++++ .../cdrs/model/IntersectTrajectoryResult.h | 57 ++++ .../PredictTrajectoryDestinationRequest.h | 57 ++++ .../PredictTrajectoryDestinationResult.h | 57 ++++ .../cdrs/model/QueryTrajectoryByIdRequest.h | 70 +++++ .../cdrs/model/QueryTrajectoryByIdResult.h | 57 ++++ .../RecallTrajectoryByCoordinateRequest.h | 75 ++++++ .../RecallTrajectoryByCoordinateResult.h | 57 ++++ .../cdrs/model/RecallTrajectoryByIdRequest.h | 72 +++++ .../cdrs/model/RecallTrajectoryByIdResult.h | 57 ++++ .../cdrs/model/ValidateTrajectoryRequest.h | 60 +++++ .../cdrs/model/ValidateTrajectoryResult.h | 57 ++++ cdrs/src/CDRSClient.cc | 252 ++++++++++++++++++ .../DetectTrajectoryRegularPatternRequest.cc | 73 +++++ .../DetectTrajectoryRegularPatternResult.cc | 72 +++++ cdrs/src/model/IntersectTrajectoryRequest.cc | 100 +++++++ cdrs/src/model/IntersectTrajectoryResult.cc | 72 +++++ .../PredictTrajectoryDestinationRequest.cc | 73 +++++ .../PredictTrajectoryDestinationResult.cc | 72 +++++ cdrs/src/model/QueryTrajectoryByIdRequest.cc | 93 +++++++ cdrs/src/model/QueryTrajectoryByIdResult.cc | 72 +++++ .../RecallTrajectoryByCoordinateRequest.cc | 124 +++++++++ .../RecallTrajectoryByCoordinateResult.cc | 72 +++++ cdrs/src/model/RecallTrajectoryByIdRequest.cc | 130 +++++++++ cdrs/src/model/RecallTrajectoryByIdResult.cc | 72 +++++ cdrs/src/model/ValidateTrajectoryRequest.cc | 84 ++++++ cdrs/src/model/ValidateTrajectoryResult.cc | 72 +++++ 32 files changed, 2381 insertions(+), 2 deletions(-) create mode 100644 cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h create mode 100644 cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h create mode 100644 cdrs/src/model/DetectTrajectoryRegularPatternRequest.cc create mode 100644 cdrs/src/model/DetectTrajectoryRegularPatternResult.cc create mode 100644 cdrs/src/model/IntersectTrajectoryRequest.cc create mode 100644 cdrs/src/model/IntersectTrajectoryResult.cc create mode 100644 cdrs/src/model/PredictTrajectoryDestinationRequest.cc create mode 100644 cdrs/src/model/PredictTrajectoryDestinationResult.cc create mode 100644 cdrs/src/model/QueryTrajectoryByIdRequest.cc create mode 100644 cdrs/src/model/QueryTrajectoryByIdResult.cc create mode 100644 cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc create mode 100644 cdrs/src/model/RecallTrajectoryByCoordinateResult.cc create mode 100644 cdrs/src/model/RecallTrajectoryByIdRequest.cc create mode 100644 cdrs/src/model/RecallTrajectoryByIdResult.cc create mode 100644 cdrs/src/model/ValidateTrajectoryRequest.cc create mode 100644 cdrs/src/model/ValidateTrajectoryResult.cc diff --git a/CHANGELOG b/CHANGELOG index 94f787a57..b39600007 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +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. diff --git a/cdrs/CMakeLists.txt b/cdrs/CMakeLists.txt index 984c3aa88..836031fd2 100644 --- a/cdrs/CMakeLists.txt +++ b/cdrs/CMakeLists.txt @@ -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} diff --git a/cdrs/include/alibabacloud/cdrs/CDRSClient.h b/cdrs/include/alibabacloud/cdrs/CDRSClient.h index 36286987a..4b2905b2d 100644 --- a/cdrs/include/alibabacloud/cdrs/CDRSClient.h +++ b/cdrs/include/alibabacloud/cdrs/CDRSClient.h @@ -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 CreateProjectOutcome; typedef std::future CreateProjectOutcomeCallable; typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome DetectTrajectoryRegularPatternOutcome; + typedef std::future DetectTrajectoryRegularPatternOutcomeCallable; + typedef std::function&)> DetectTrajectoryRegularPatternAsyncHandler; typedef Outcome GetCdrsMonitorListOutcome; typedef std::future GetCdrsMonitorListOutcomeCallable; typedef std::function&)> GetCdrsMonitorListAsyncHandler; typedef Outcome GetCdrsMonitorResultOutcome; typedef std::future GetCdrsMonitorResultOutcomeCallable; typedef std::function&)> GetCdrsMonitorResultAsyncHandler; + typedef Outcome IntersectTrajectoryOutcome; + typedef std::future IntersectTrajectoryOutcomeCallable; + typedef std::function&)> IntersectTrajectoryAsyncHandler; typedef Outcome ListAreaHotSpotMetricsOutcome; typedef std::future ListAreaHotSpotMetricsOutcomeCallable; typedef std::function&)> ListAreaHotSpotMetricsAsyncHandler; @@ -248,6 +268,18 @@ namespace AlibabaCloud typedef Outcome PaginateProjectOutcome; typedef std::future PaginateProjectOutcomeCallable; typedef std::function&)> PaginateProjectAsyncHandler; + typedef Outcome PredictTrajectoryDestinationOutcome; + typedef std::future PredictTrajectoryDestinationOutcomeCallable; + typedef std::function&)> PredictTrajectoryDestinationAsyncHandler; + typedef Outcome QueryTrajectoryByIdOutcome; + typedef std::future QueryTrajectoryByIdOutcomeCallable; + typedef std::function&)> QueryTrajectoryByIdAsyncHandler; + typedef Outcome RecallTrajectoryByCoordinateOutcome; + typedef std::future RecallTrajectoryByCoordinateOutcomeCallable; + typedef std::function&)> RecallTrajectoryByCoordinateAsyncHandler; + typedef Outcome RecallTrajectoryByIdOutcome; + typedef std::future RecallTrajectoryByIdOutcomeCallable; + typedef std::function&)> RecallTrajectoryByIdAsyncHandler; typedef Outcome RecognizeImageOutcome; typedef std::future RecognizeImageOutcomeCallable; typedef std::function&)> RecognizeImageAsyncHandler; @@ -266,6 +298,9 @@ namespace AlibabaCloud typedef Outcome UpdateProjectOutcome; typedef std::future UpdateProjectOutcomeCallable; typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome ValidateTrajectoryOutcome; + typedef std::future ValidateTrajectoryOutcomeCallable; + typedef std::function&)> ValidateTrajectoryAsyncHandler; CDRSClient(const Credentials &credentials, const ClientConfiguration &configuration); CDRSClient(const std::shared_ptr &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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; + ValidateTrajectoryOutcomeCallable validateTrajectoryCallable(const Model::ValidateTrajectoryRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h b/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h new file mode 100644 index 000000000..47ccb01d1 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h b/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h new file mode 100644 index 000000000..197766c84 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/DetectTrajectoryRegularPatternResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h b/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h new file mode 100644 index 000000000..34a181b19 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryRequest.h @@ -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 +#include +#include +#include + +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 getIdList()const; + void setIdList(const std::vector& idList); + + private: + std::string corpId_; + std::string endTime_; + int deltaDistance_; + std::string startTime_; + int deltaTime_; + std::vector idList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CDRS_MODEL_INTERSECTTRAJECTORYREQUEST_H_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h b/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h new file mode 100644 index 000000000..c0e02a5fa --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/IntersectTrajectoryResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h b/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h new file mode 100644 index 000000000..ee83e0ca7 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h b/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h new file mode 100644 index 000000000..d14b0bddf --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/PredictTrajectoryDestinationResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h b/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h new file mode 100644 index 000000000..b15dfc951 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdRequest.h @@ -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 +#include +#include +#include + +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 getDeviceList()const; + void setDeviceList(const std::vector& deviceList); + std::vector getIdList()const; + void setIdList(const std::vector& idList); + + private: + std::string corpId_; + std::string endTime_; + std::string startTime_; + std::vector deviceList_; + std::vector idList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CDRS_MODEL_QUERYTRAJECTORYBYIDREQUEST_H_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h b/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h new file mode 100644 index 000000000..a955c15a6 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/QueryTrajectoryByIdResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h new file mode 100644 index 000000000..89728284f --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateRequest.h @@ -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 +#include +#include +#include + +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 getPointList()const; + void setPointList(const std::vector& 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 getOutputIdTypeList()const; + void setOutputIdTypeList(const std::vector& outputIdTypeList); + int getDeltaTime()const; + void setDeltaTime(int deltaTime); + int getOutputIdCount()const; + void setOutputIdCount(int outputIdCount); + + private: + std::string corpId_; + std::vector pointList_; + std::string endTime_; + int deltaDistance_; + std::string startTime_; + std::vector outputIdTypeList_; + int deltaTime_; + int outputIdCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYCOORDINATEREQUEST_H_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h new file mode 100644 index 000000000..eff2c9df4 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByCoordinateResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h new file mode 100644 index 000000000..404f12316 --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdRequest.h @@ -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 +#include +#include +#include + +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 getOutputIdTypeList()const; + void setOutputIdTypeList(const std::vector& 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 outputIdTypeList_; + int deltaTime_; + int outputIdCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CDRS_MODEL_RECALLTRAJECTORYBYIDREQUEST_H_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h new file mode 100644 index 000000000..18bf8021c --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/RecallTrajectoryByIdResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h b/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h new file mode 100644 index 000000000..df05c089e --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h b/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h new file mode 100644 index 000000000..9dfc700ed --- /dev/null +++ b/cdrs/include/alibabacloud/cdrs/model/ValidateTrajectoryResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cdrs/src/CDRSClient.cc b/cdrs/src/CDRSClient.cc index 60451d01b..0a1244e2a 100644 --- a/cdrs/src/CDRSClient.cc +++ b/cdrs/src/CDRSClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->validateTrajectory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cdrs/src/model/DetectTrajectoryRegularPatternRequest.cc b/cdrs/src/model/DetectTrajectoryRegularPatternRequest.cc new file mode 100644 index 000000000..5584dfb12 --- /dev/null +++ b/cdrs/src/model/DetectTrajectoryRegularPatternRequest.cc @@ -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 + +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); +} + diff --git a/cdrs/src/model/DetectTrajectoryRegularPatternResult.cc b/cdrs/src/model/DetectTrajectoryRegularPatternResult.cc new file mode 100644 index 000000000..1724b662b --- /dev/null +++ b/cdrs/src/model/DetectTrajectoryRegularPatternResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/IntersectTrajectoryRequest.cc b/cdrs/src/model/IntersectTrajectoryRequest.cc new file mode 100644 index 000000000..9d7153225 --- /dev/null +++ b/cdrs/src/model/IntersectTrajectoryRequest.cc @@ -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 + +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::getIdList()const +{ + return idList_; +} + +void IntersectTrajectoryRequest::setIdList(const std::vector& 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); + } +} + diff --git a/cdrs/src/model/IntersectTrajectoryResult.cc b/cdrs/src/model/IntersectTrajectoryResult.cc new file mode 100644 index 000000000..0e4153331 --- /dev/null +++ b/cdrs/src/model/IntersectTrajectoryResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/PredictTrajectoryDestinationRequest.cc b/cdrs/src/model/PredictTrajectoryDestinationRequest.cc new file mode 100644 index 000000000..4f90cf213 --- /dev/null +++ b/cdrs/src/model/PredictTrajectoryDestinationRequest.cc @@ -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 + +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)); +} + diff --git a/cdrs/src/model/PredictTrajectoryDestinationResult.cc b/cdrs/src/model/PredictTrajectoryDestinationResult.cc new file mode 100644 index 000000000..dbe470a92 --- /dev/null +++ b/cdrs/src/model/PredictTrajectoryDestinationResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/QueryTrajectoryByIdRequest.cc b/cdrs/src/model/QueryTrajectoryByIdRequest.cc new file mode 100644 index 000000000..d20da793e --- /dev/null +++ b/cdrs/src/model/QueryTrajectoryByIdRequest.cc @@ -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 + +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::getDeviceList()const +{ + return deviceList_; +} + +void QueryTrajectoryByIdRequest::setDeviceList(const std::vector& 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::getIdList()const +{ + return idList_; +} + +void QueryTrajectoryByIdRequest::setIdList(const std::vector& 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); + } +} + diff --git a/cdrs/src/model/QueryTrajectoryByIdResult.cc b/cdrs/src/model/QueryTrajectoryByIdResult.cc new file mode 100644 index 000000000..3b6401dfa --- /dev/null +++ b/cdrs/src/model/QueryTrajectoryByIdResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc b/cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc new file mode 100644 index 000000000..3a8576db0 --- /dev/null +++ b/cdrs/src/model/RecallTrajectoryByCoordinateRequest.cc @@ -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 + +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::getPointList()const +{ + return pointList_; +} + +void RecallTrajectoryByCoordinateRequest::setPointList(const std::vector& 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 RecallTrajectoryByCoordinateRequest::getOutputIdTypeList()const +{ + return outputIdTypeList_; +} + +void RecallTrajectoryByCoordinateRequest::setOutputIdTypeList(const std::vector& 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)); +} + diff --git a/cdrs/src/model/RecallTrajectoryByCoordinateResult.cc b/cdrs/src/model/RecallTrajectoryByCoordinateResult.cc new file mode 100644 index 000000000..96ccf1662 --- /dev/null +++ b/cdrs/src/model/RecallTrajectoryByCoordinateResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/RecallTrajectoryByIdRequest.cc b/cdrs/src/model/RecallTrajectoryByIdRequest.cc new file mode 100644 index 000000000..f8b6b60c9 --- /dev/null +++ b/cdrs/src/model/RecallTrajectoryByIdRequest.cc @@ -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 + +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 RecallTrajectoryByIdRequest::getOutputIdTypeList()const +{ + return outputIdTypeList_; +} + +void RecallTrajectoryByIdRequest::setOutputIdTypeList(const std::vector& 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)); +} + diff --git a/cdrs/src/model/RecallTrajectoryByIdResult.cc b/cdrs/src/model/RecallTrajectoryByIdResult.cc new file mode 100644 index 000000000..6c30a0dfb --- /dev/null +++ b/cdrs/src/model/RecallTrajectoryByIdResult.cc @@ -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 +#include + +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_; +} + diff --git a/cdrs/src/model/ValidateTrajectoryRequest.cc b/cdrs/src/model/ValidateTrajectoryRequest.cc new file mode 100644 index 000000000..11dee5c88 --- /dev/null +++ b/cdrs/src/model/ValidateTrajectoryRequest.cc @@ -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 + +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); +} + diff --git a/cdrs/src/model/ValidateTrajectoryResult.cc b/cdrs/src/model/ValidateTrajectoryResult.cc new file mode 100644 index 000000000..56c1486a3 --- /dev/null +++ b/cdrs/src/model/ValidateTrajectoryResult.cc @@ -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 +#include + +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_; +} +