From 1908e64fa62496ad34ddef0643d10eec4d29359d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 23 Oct 2020 09:52:11 +0000 Subject: [PATCH] Change Configuration. --- CHANGELOG | 3 + vcs/CMakeLists.txt | 20 ++ vcs/include/alibabacloud/vcs/VcsClient.h | 40 ++++ .../vcs/model/ListPersonTraceDetailsRequest.h | 3 + .../vcs/model/ListPersonTraceDetailsResult.h | 16 +- .../vcs/model/ListSubscribeDeviceRequest.h | 51 +++++ .../vcs/model/ListSubscribeDeviceResult.h | 68 +++++++ .../vcs/model/SubscribeDeviceEventRequest.h | 51 +++++ .../vcs/model/SubscribeDeviceEventResult.h | 53 ++++++ .../vcs/model/SubscribeSpaceEventRequest.h | 51 +++++ .../vcs/model/SubscribeSpaceEventResult.h | 53 ++++++ .../vcs/model/UnsubscribeDeviceEventRequest.h | 48 +++++ .../vcs/model/UnsubscribeDeviceEventResult.h | 53 ++++++ .../vcs/model/UnsubscribeSpaceEventRequest.h | 48 +++++ .../vcs/model/UnsubscribeSpaceEventResult.h | 53 ++++++ vcs/src/VcsClient.cc | 180 ++++++++++++++++++ .../model/ListPersonTraceDetailsRequest.cc | 11 ++ vcs/src/model/ListPersonTraceDetailsResult.cc | 29 ++- vcs/src/model/ListSubscribeDeviceRequest.cc | 51 +++++ vcs/src/model/ListSubscribeDeviceResult.cc | 82 ++++++++ vcs/src/model/SubscribeDeviceEventRequest.cc | 51 +++++ vcs/src/model/SubscribeDeviceEventResult.cc | 58 ++++++ vcs/src/model/SubscribeSpaceEventRequest.cc | 51 +++++ vcs/src/model/SubscribeSpaceEventResult.cc | 58 ++++++ .../model/UnsubscribeDeviceEventRequest.cc | 40 ++++ vcs/src/model/UnsubscribeDeviceEventResult.cc | 58 ++++++ vcs/src/model/UnsubscribeSpaceEventRequest.cc | 40 ++++ vcs/src/model/UnsubscribeSpaceEventResult.cc | 58 ++++++ 28 files changed, 1363 insertions(+), 15 deletions(-) create mode 100644 vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h create mode 100644 vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h create mode 100644 vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h create mode 100644 vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h create mode 100644 vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h create mode 100644 vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h create mode 100644 vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h create mode 100644 vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h create mode 100644 vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h create mode 100644 vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h create mode 100644 vcs/src/model/ListSubscribeDeviceRequest.cc create mode 100644 vcs/src/model/ListSubscribeDeviceResult.cc create mode 100644 vcs/src/model/SubscribeDeviceEventRequest.cc create mode 100644 vcs/src/model/SubscribeDeviceEventResult.cc create mode 100644 vcs/src/model/SubscribeSpaceEventRequest.cc create mode 100644 vcs/src/model/SubscribeSpaceEventResult.cc create mode 100644 vcs/src/model/UnsubscribeDeviceEventRequest.cc create mode 100644 vcs/src/model/UnsubscribeDeviceEventResult.cc create mode 100644 vcs/src/model/UnsubscribeSpaceEventRequest.cc create mode 100644 vcs/src/model/UnsubscribeSpaceEventResult.cc diff --git a/CHANGELOG b/CHANGELOG index 93ed22332..3ff1758ae 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-23 Version: patch +- Change Configuration. + 2020-10-23 Version: patch - Update DetectLungNodule. diff --git a/vcs/CMakeLists.txt b/vcs/CMakeLists.txt index ea8911523..55dfc78cb 100644 --- a/vcs/CMakeLists.txt +++ b/vcs/CMakeLists.txt @@ -137,6 +137,8 @@ set(vcs_public_header_model include/alibabacloud/vcs/model/ListPersonVisitCountResult.h include/alibabacloud/vcs/model/ListPersonsRequest.h include/alibabacloud/vcs/model/ListPersonsResult.h + include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h + include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h include/alibabacloud/vcs/model/ListUserGroupsRequest.h include/alibabacloud/vcs/model/ListUserGroupsResult.h include/alibabacloud/vcs/model/ListUsersRequest.h @@ -159,6 +161,10 @@ set(vcs_public_header_model include/alibabacloud/vcs/model/SearchObjectResult.h include/alibabacloud/vcs/model/StopMonitorRequest.h include/alibabacloud/vcs/model/StopMonitorResult.h + include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h + include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h + include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h + include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h include/alibabacloud/vcs/model/SyncDeviceTimeRequest.h include/alibabacloud/vcs/model/SyncDeviceTimeResult.h include/alibabacloud/vcs/model/UnbindCorpGroupRequest.h @@ -167,6 +173,10 @@ set(vcs_public_header_model include/alibabacloud/vcs/model/UnbindPersonResult.h include/alibabacloud/vcs/model/UnbindUserRequest.h include/alibabacloud/vcs/model/UnbindUserResult.h + include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h + include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h + include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h + include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h include/alibabacloud/vcs/model/UpdateCorpRequest.h include/alibabacloud/vcs/model/UpdateCorpResult.h include/alibabacloud/vcs/model/UpdateDeviceRequest.h @@ -304,6 +314,8 @@ set(vcs_src src/model/ListPersonVisitCountResult.cc src/model/ListPersonsRequest.cc src/model/ListPersonsResult.cc + src/model/ListSubscribeDeviceRequest.cc + src/model/ListSubscribeDeviceResult.cc src/model/ListUserGroupsRequest.cc src/model/ListUserGroupsResult.cc src/model/ListUsersRequest.cc @@ -326,6 +338,10 @@ set(vcs_src src/model/SearchObjectResult.cc src/model/StopMonitorRequest.cc src/model/StopMonitorResult.cc + src/model/SubscribeDeviceEventRequest.cc + src/model/SubscribeDeviceEventResult.cc + src/model/SubscribeSpaceEventRequest.cc + src/model/SubscribeSpaceEventResult.cc src/model/SyncDeviceTimeRequest.cc src/model/SyncDeviceTimeResult.cc src/model/UnbindCorpGroupRequest.cc @@ -334,6 +350,10 @@ set(vcs_src src/model/UnbindPersonResult.cc src/model/UnbindUserRequest.cc src/model/UnbindUserResult.cc + src/model/UnsubscribeDeviceEventRequest.cc + src/model/UnsubscribeDeviceEventResult.cc + src/model/UnsubscribeSpaceEventRequest.cc + src/model/UnsubscribeSpaceEventResult.cc src/model/UpdateCorpRequest.cc src/model/UpdateCorpResult.cc src/model/UpdateDeviceRequest.cc diff --git a/vcs/include/alibabacloud/vcs/VcsClient.h b/vcs/include/alibabacloud/vcs/VcsClient.h index 5573fb224..97a738eb1 100644 --- a/vcs/include/alibabacloud/vcs/VcsClient.h +++ b/vcs/include/alibabacloud/vcs/VcsClient.h @@ -138,6 +138,8 @@ #include "model/ListPersonVisitCountResult.h" #include "model/ListPersonsRequest.h" #include "model/ListPersonsResult.h" +#include "model/ListSubscribeDeviceRequest.h" +#include "model/ListSubscribeDeviceResult.h" #include "model/ListUserGroupsRequest.h" #include "model/ListUserGroupsResult.h" #include "model/ListUsersRequest.h" @@ -160,6 +162,10 @@ #include "model/SearchObjectResult.h" #include "model/StopMonitorRequest.h" #include "model/StopMonitorResult.h" +#include "model/SubscribeDeviceEventRequest.h" +#include "model/SubscribeDeviceEventResult.h" +#include "model/SubscribeSpaceEventRequest.h" +#include "model/SubscribeSpaceEventResult.h" #include "model/SyncDeviceTimeRequest.h" #include "model/SyncDeviceTimeResult.h" #include "model/UnbindCorpGroupRequest.h" @@ -168,6 +174,10 @@ #include "model/UnbindPersonResult.h" #include "model/UnbindUserRequest.h" #include "model/UnbindUserResult.h" +#include "model/UnsubscribeDeviceEventRequest.h" +#include "model/UnsubscribeDeviceEventResult.h" +#include "model/UnsubscribeSpaceEventRequest.h" +#include "model/UnsubscribeSpaceEventResult.h" #include "model/UpdateCorpRequest.h" #include "model/UpdateCorpResult.h" #include "model/UpdateDeviceRequest.h" @@ -369,6 +379,9 @@ namespace AlibabaCloud typedef Outcome ListPersonsOutcome; typedef std::future ListPersonsOutcomeCallable; typedef std::function&)> ListPersonsAsyncHandler; + typedef Outcome ListSubscribeDeviceOutcome; + typedef std::future ListSubscribeDeviceOutcomeCallable; + typedef std::function&)> ListSubscribeDeviceAsyncHandler; typedef Outcome ListUserGroupsOutcome; typedef std::future ListUserGroupsOutcomeCallable; typedef std::function&)> ListUserGroupsAsyncHandler; @@ -402,6 +415,12 @@ namespace AlibabaCloud typedef Outcome StopMonitorOutcome; typedef std::future StopMonitorOutcomeCallable; typedef std::function&)> StopMonitorAsyncHandler; + typedef Outcome SubscribeDeviceEventOutcome; + typedef std::future SubscribeDeviceEventOutcomeCallable; + typedef std::function&)> SubscribeDeviceEventAsyncHandler; + typedef Outcome SubscribeSpaceEventOutcome; + typedef std::future SubscribeSpaceEventOutcomeCallable; + typedef std::function&)> SubscribeSpaceEventAsyncHandler; typedef Outcome SyncDeviceTimeOutcome; typedef std::future SyncDeviceTimeOutcomeCallable; typedef std::function&)> SyncDeviceTimeAsyncHandler; @@ -414,6 +433,12 @@ namespace AlibabaCloud typedef Outcome UnbindUserOutcome; typedef std::future UnbindUserOutcomeCallable; typedef std::function&)> UnbindUserAsyncHandler; + typedef Outcome UnsubscribeDeviceEventOutcome; + typedef std::future UnsubscribeDeviceEventOutcomeCallable; + typedef std::function&)> UnsubscribeDeviceEventAsyncHandler; + typedef Outcome UnsubscribeSpaceEventOutcome; + typedef std::future UnsubscribeSpaceEventOutcomeCallable; + typedef std::function&)> UnsubscribeSpaceEventAsyncHandler; typedef Outcome UpdateCorpOutcome; typedef std::future UpdateCorpOutcomeCallable; typedef std::function&)> UpdateCorpAsyncHandler; @@ -620,6 +645,9 @@ namespace AlibabaCloud ListPersonsOutcome listPersons(const Model::ListPersonsRequest &request)const; void listPersonsAsync(const Model::ListPersonsRequest& request, const ListPersonsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPersonsOutcomeCallable listPersonsCallable(const Model::ListPersonsRequest& request) const; + ListSubscribeDeviceOutcome listSubscribeDevice(const Model::ListSubscribeDeviceRequest &request)const; + void listSubscribeDeviceAsync(const Model::ListSubscribeDeviceRequest& request, const ListSubscribeDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSubscribeDeviceOutcomeCallable listSubscribeDeviceCallable(const Model::ListSubscribeDeviceRequest& request) const; ListUserGroupsOutcome listUserGroups(const Model::ListUserGroupsRequest &request)const; void listUserGroupsAsync(const Model::ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUserGroupsOutcomeCallable listUserGroupsCallable(const Model::ListUserGroupsRequest& request) const; @@ -653,6 +681,12 @@ namespace AlibabaCloud StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const; void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const; + SubscribeDeviceEventOutcome subscribeDeviceEvent(const Model::SubscribeDeviceEventRequest &request)const; + void subscribeDeviceEventAsync(const Model::SubscribeDeviceEventRequest& request, const SubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeDeviceEventOutcomeCallable subscribeDeviceEventCallable(const Model::SubscribeDeviceEventRequest& request) const; + SubscribeSpaceEventOutcome subscribeSpaceEvent(const Model::SubscribeSpaceEventRequest &request)const; + void subscribeSpaceEventAsync(const Model::SubscribeSpaceEventRequest& request, const SubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubscribeSpaceEventOutcomeCallable subscribeSpaceEventCallable(const Model::SubscribeSpaceEventRequest& request) const; SyncDeviceTimeOutcome syncDeviceTime(const Model::SyncDeviceTimeRequest &request)const; void syncDeviceTimeAsync(const Model::SyncDeviceTimeRequest& request, const SyncDeviceTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncDeviceTimeOutcomeCallable syncDeviceTimeCallable(const Model::SyncDeviceTimeRequest& request) const; @@ -665,6 +699,12 @@ namespace AlibabaCloud UnbindUserOutcome unbindUser(const Model::UnbindUserRequest &request)const; void unbindUserAsync(const Model::UnbindUserRequest& request, const UnbindUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindUserOutcomeCallable unbindUserCallable(const Model::UnbindUserRequest& request) const; + UnsubscribeDeviceEventOutcome unsubscribeDeviceEvent(const Model::UnsubscribeDeviceEventRequest &request)const; + void unsubscribeDeviceEventAsync(const Model::UnsubscribeDeviceEventRequest& request, const UnsubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnsubscribeDeviceEventOutcomeCallable unsubscribeDeviceEventCallable(const Model::UnsubscribeDeviceEventRequest& request) const; + UnsubscribeSpaceEventOutcome unsubscribeSpaceEvent(const Model::UnsubscribeSpaceEventRequest &request)const; + void unsubscribeSpaceEventAsync(const Model::UnsubscribeSpaceEventRequest& request, const UnsubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnsubscribeSpaceEventOutcomeCallable unsubscribeSpaceEventCallable(const Model::UnsubscribeSpaceEventRequest& request) const; UpdateCorpOutcome updateCorp(const Model::UpdateCorpRequest &request)const; void updateCorpAsync(const Model::UpdateCorpRequest& request, const UpdateCorpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCorpOutcomeCallable updateCorpCallable(const Model::UpdateCorpRequest& request) const; diff --git a/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsRequest.h b/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsRequest.h index f4632c119..45c6ed5f4 100644 --- a/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsRequest.h +++ b/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setSubId(const std::string& subId); long getPageSize()const; void setPageSize(long pageSize); + std::string getDataSourceId()const; + void setDataSourceId(const std::string& dataSourceId); std::string getPersonId()const; void setPersonId(const std::string& personId); @@ -57,6 +59,7 @@ namespace AlibabaCloud long pageNumber_; std::string subId_; long pageSize_; + std::string dataSourceId_; std::string personId_; }; diff --git a/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsResult.h b/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsResult.h index 8a93924f6..9b53f5e34 100644 --- a/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsResult.h +++ b/vcs/include/alibabacloud/vcs/model/ListPersonTraceDetailsResult.h @@ -36,18 +36,14 @@ namespace AlibabaCloud { std::string picUrlPath; std::string corpId; - long pageSize; + std::string subId; + std::string personId; std::string rightBottomX; std::string targetPicUrlPath; std::string rightBottomY; + std::string shotTime; std::string leftTopY; std::string leftTopX; - long totalCount; - std::string subId; - long totalPage; - std::string personId; - long pageNumber; - std::string shotTime; std::string dataSourceId; }; @@ -55,14 +51,20 @@ namespace AlibabaCloud ListPersonTraceDetailsResult(); explicit ListPersonTraceDetailsResult(const std::string &payload); ~ListPersonTraceDetailsResult(); + long getTotalCount()const; std::string getMessage()const; + long getPageSize()const; + long getPageNumber()const; std::vector getData()const; std::string getCode()const; protected: void parse(const std::string &payload); private: + long totalCount_; std::string message_; + long pageSize_; + long pageNumber_; std::vector data_; std::string code_; diff --git a/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h b/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h new file mode 100644 index 000000000..c19ffaec7 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h @@ -0,0 +1,51 @@ +/* + * 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_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_ +#define ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT ListSubscribeDeviceRequest : public RpcServiceRequest + { + + public: + ListSubscribeDeviceRequest(); + ~ListSubscribeDeviceRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + int pageSize_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h b/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h new file mode 100644 index 000000000..1858c0f26 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h @@ -0,0 +1,68 @@ +/* + * 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_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_ +#define ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT ListSubscribeDeviceResult : public ServiceResult + { + public: + struct Data + { + struct SubscribeListItem + { + std::string pushConfig; + std::string userId; + std::string deviceId; + std::string createTime; + std::string updateTime; + }; + int totalCount; + std::vector subscribeList; + }; + + + ListSubscribeDeviceResult(); + explicit ListSubscribeDeviceResult(const std::string &payload); + ~ListSubscribeDeviceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h b/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h new file mode 100644 index 000000000..bc3fcb437 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h @@ -0,0 +1,51 @@ +/* + * 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_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_ +#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT SubscribeDeviceEventRequest : public RpcServiceRequest + { + + public: + SubscribeDeviceEventRequest(); + ~SubscribeDeviceEventRequest(); + + std::string getPushConfig()const; + void setPushConfig(const std::string& pushConfig); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + std::string pushConfig_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h b/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h new file mode 100644 index 000000000..fd82b9094 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h @@ -0,0 +1,53 @@ +/* + * 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_VCS_MODEL_SUBSCRIBEDEVICEEVENTRESULT_H_ +#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT SubscribeDeviceEventResult : public ServiceResult + { + public: + + + SubscribeDeviceEventResult(); + explicit SubscribeDeviceEventResult(const std::string &payload); + ~SubscribeDeviceEventResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTRESULT_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h b/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h new file mode 100644 index 000000000..058415c0c --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h @@ -0,0 +1,51 @@ +/* + * 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_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_ +#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT SubscribeSpaceEventRequest : public RpcServiceRequest + { + + public: + SubscribeSpaceEventRequest(); + ~SubscribeSpaceEventRequest(); + + std::string getSpaceId()const; + void setSpaceId(const std::string& spaceId); + std::string getPushConfig()const; + void setPushConfig(const std::string& pushConfig); + + private: + std::string spaceId_; + std::string pushConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h b/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h new file mode 100644 index 000000000..757134b56 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h @@ -0,0 +1,53 @@ +/* + * 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_VCS_MODEL_SUBSCRIBESPACEEVENTRESULT_H_ +#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT SubscribeSpaceEventResult : public ServiceResult + { + public: + + + SubscribeSpaceEventResult(); + explicit SubscribeSpaceEventResult(const std::string &payload); + ~SubscribeSpaceEventResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTRESULT_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h b/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h new file mode 100644 index 000000000..3ef056f43 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h @@ -0,0 +1,48 @@ +/* + * 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_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTREQUEST_H_ +#define ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT UnsubscribeDeviceEventRequest : public RpcServiceRequest + { + + public: + UnsubscribeDeviceEventRequest(); + ~UnsubscribeDeviceEventRequest(); + + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTREQUEST_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h b/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h new file mode 100644 index 000000000..30685c160 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h @@ -0,0 +1,53 @@ +/* + * 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_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTRESULT_H_ +#define ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT UnsubscribeDeviceEventResult : public ServiceResult + { + public: + + + UnsubscribeDeviceEventResult(); + explicit UnsubscribeDeviceEventResult(const std::string &payload); + ~UnsubscribeDeviceEventResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBEDEVICEEVENTRESULT_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h b/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h new file mode 100644 index 000000000..e82204e84 --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h @@ -0,0 +1,48 @@ +/* + * 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_VCS_MODEL_UNSUBSCRIBESPACEEVENTREQUEST_H_ +#define ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBESPACEEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT UnsubscribeSpaceEventRequest : public RpcServiceRequest + { + + public: + UnsubscribeSpaceEventRequest(); + ~UnsubscribeSpaceEventRequest(); + + std::string getSpaceId()const; + void setSpaceId(const std::string& spaceId); + + private: + std::string spaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBESPACEEVENTREQUEST_H_ \ No newline at end of file diff --git a/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h b/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h new file mode 100644 index 000000000..7ca6eed9e --- /dev/null +++ b/vcs/include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h @@ -0,0 +1,53 @@ +/* + * 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_VCS_MODEL_UNSUBSCRIBESPACEEVENTRESULT_H_ +#define ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBESPACEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vcs + { + namespace Model + { + class ALIBABACLOUD_VCS_EXPORT UnsubscribeSpaceEventResult : public ServiceResult + { + public: + + + UnsubscribeSpaceEventResult(); + explicit UnsubscribeSpaceEventResult(const std::string &payload); + ~UnsubscribeSpaceEventResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VCS_MODEL_UNSUBSCRIBESPACEEVENTRESULT_H_ \ No newline at end of file diff --git a/vcs/src/VcsClient.cc b/vcs/src/VcsClient.cc index 52400e1b6..badb5b0b3 100644 --- a/vcs/src/VcsClient.cc +++ b/vcs/src/VcsClient.cc @@ -2139,6 +2139,42 @@ VcsClient::ListPersonsOutcomeCallable VcsClient::listPersonsCallable(const ListP return task->get_future(); } +VcsClient::ListSubscribeDeviceOutcome VcsClient::listSubscribeDevice(const ListSubscribeDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSubscribeDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSubscribeDeviceOutcome(ListSubscribeDeviceResult(outcome.result())); + else + return ListSubscribeDeviceOutcome(outcome.error()); +} + +void VcsClient::listSubscribeDeviceAsync(const ListSubscribeDeviceRequest& request, const ListSubscribeDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSubscribeDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VcsClient::ListSubscribeDeviceOutcomeCallable VcsClient::listSubscribeDeviceCallable(const ListSubscribeDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSubscribeDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VcsClient::ListUserGroupsOutcome VcsClient::listUserGroups(const ListUserGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,6 +2571,78 @@ VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopM return task->get_future(); } +VcsClient::SubscribeDeviceEventOutcome VcsClient::subscribeDeviceEvent(const SubscribeDeviceEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeDeviceEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeDeviceEventOutcome(SubscribeDeviceEventResult(outcome.result())); + else + return SubscribeDeviceEventOutcome(outcome.error()); +} + +void VcsClient::subscribeDeviceEventAsync(const SubscribeDeviceEventRequest& request, const SubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeDeviceEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VcsClient::SubscribeDeviceEventOutcomeCallable VcsClient::subscribeDeviceEventCallable(const SubscribeDeviceEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeDeviceEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VcsClient::SubscribeSpaceEventOutcome VcsClient::subscribeSpaceEvent(const SubscribeSpaceEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubscribeSpaceEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubscribeSpaceEventOutcome(SubscribeSpaceEventResult(outcome.result())); + else + return SubscribeSpaceEventOutcome(outcome.error()); +} + +void VcsClient::subscribeSpaceEventAsync(const SubscribeSpaceEventRequest& request, const SubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, subscribeSpaceEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VcsClient::SubscribeSpaceEventOutcomeCallable VcsClient::subscribeSpaceEventCallable(const SubscribeSpaceEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->subscribeSpaceEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VcsClient::SyncDeviceTimeOutcome VcsClient::syncDeviceTime(const SyncDeviceTimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2787,78 @@ VcsClient::UnbindUserOutcomeCallable VcsClient::unbindUserCallable(const UnbindU return task->get_future(); } +VcsClient::UnsubscribeDeviceEventOutcome VcsClient::unsubscribeDeviceEvent(const UnsubscribeDeviceEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnsubscribeDeviceEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnsubscribeDeviceEventOutcome(UnsubscribeDeviceEventResult(outcome.result())); + else + return UnsubscribeDeviceEventOutcome(outcome.error()); +} + +void VcsClient::unsubscribeDeviceEventAsync(const UnsubscribeDeviceEventRequest& request, const UnsubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unsubscribeDeviceEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VcsClient::UnsubscribeDeviceEventOutcomeCallable VcsClient::unsubscribeDeviceEventCallable(const UnsubscribeDeviceEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unsubscribeDeviceEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VcsClient::UnsubscribeSpaceEventOutcome VcsClient::unsubscribeSpaceEvent(const UnsubscribeSpaceEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnsubscribeSpaceEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnsubscribeSpaceEventOutcome(UnsubscribeSpaceEventResult(outcome.result())); + else + return UnsubscribeSpaceEventOutcome(outcome.error()); +} + +void VcsClient::unsubscribeSpaceEventAsync(const UnsubscribeSpaceEventRequest& request, const UnsubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unsubscribeSpaceEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VcsClient::UnsubscribeSpaceEventOutcomeCallable VcsClient::unsubscribeSpaceEventCallable(const UnsubscribeSpaceEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unsubscribeSpaceEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vcs/src/model/ListPersonTraceDetailsRequest.cc b/vcs/src/model/ListPersonTraceDetailsRequest.cc index 07a7cf508..59392e61e 100644 --- a/vcs/src/model/ListPersonTraceDetailsRequest.cc +++ b/vcs/src/model/ListPersonTraceDetailsRequest.cc @@ -93,6 +93,17 @@ void ListPersonTraceDetailsRequest::setPageSize(long pageSize) setBodyParameter("PageSize", std::to_string(pageSize)); } +std::string ListPersonTraceDetailsRequest::getDataSourceId()const +{ + return dataSourceId_; +} + +void ListPersonTraceDetailsRequest::setDataSourceId(const std::string& dataSourceId) +{ + dataSourceId_ = dataSourceId; + setBodyParameter("DataSourceId", dataSourceId); +} + std::string ListPersonTraceDetailsRequest::getPersonId()const { return personId_; diff --git a/vcs/src/model/ListPersonTraceDetailsResult.cc b/vcs/src/model/ListPersonTraceDetailsResult.cc index 15bf5f1ba..b3686e51d 100644 --- a/vcs/src/model/ListPersonTraceDetailsResult.cc +++ b/vcs/src/model/ListPersonTraceDetailsResult.cc @@ -43,14 +43,6 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload) for (auto valueDataDatas : allDataNode) { Datas dataObject; - if(!valueDataDatas["PageNumber"].isNull()) - dataObject.pageNumber = std::stol(valueDataDatas["PageNumber"].asString()); - if(!valueDataDatas["PageSize"].isNull()) - dataObject.pageSize = std::stol(valueDataDatas["PageSize"].asString()); - if(!valueDataDatas["TotalCount"].isNull()) - dataObject.totalCount = std::stol(valueDataDatas["TotalCount"].asString()); - if(!valueDataDatas["TotalPage"].isNull()) - dataObject.totalPage = std::stol(valueDataDatas["TotalPage"].asString()); if(!valueDataDatas["TargetPicUrlPath"].isNull()) dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString(); if(!valueDataDatas["DataSourceId"].isNull()) @@ -79,14 +71,35 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } +long ListPersonTraceDetailsResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListPersonTraceDetailsResult::getMessage()const { return message_; } +long ListPersonTraceDetailsResult::getPageSize()const +{ + return pageSize_; +} + +long ListPersonTraceDetailsResult::getPageNumber()const +{ + return pageNumber_; +} + std::vector ListPersonTraceDetailsResult::getData()const { return data_; diff --git a/vcs/src/model/ListSubscribeDeviceRequest.cc b/vcs/src/model/ListSubscribeDeviceRequest.cc new file mode 100644 index 000000000..2d4b44850 --- /dev/null +++ b/vcs/src/model/ListSubscribeDeviceRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::Vcs::Model::ListSubscribeDeviceRequest; + +ListSubscribeDeviceRequest::ListSubscribeDeviceRequest() : + RpcServiceRequest("vcs", "2020-05-15", "ListSubscribeDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSubscribeDeviceRequest::~ListSubscribeDeviceRequest() +{} + +int ListSubscribeDeviceRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSubscribeDeviceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListSubscribeDeviceRequest::getPageNum()const +{ + return pageNum_; +} + +void ListSubscribeDeviceRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/vcs/src/model/ListSubscribeDeviceResult.cc b/vcs/src/model/ListSubscribeDeviceResult.cc new file mode 100644 index 000000000..9c4ff9c36 --- /dev/null +++ b/vcs/src/model/ListSubscribeDeviceResult.cc @@ -0,0 +1,82 @@ +/* + * 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::Vcs; +using namespace AlibabaCloud::Vcs::Model; + +ListSubscribeDeviceResult::ListSubscribeDeviceResult() : + ServiceResult() +{} + +ListSubscribeDeviceResult::ListSubscribeDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSubscribeDeviceResult::~ListSubscribeDeviceResult() +{} + +void ListSubscribeDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allSubscribeListNode = dataNode["SubscribeList"]["SubscribeListItem"]; + for (auto dataNodeSubscribeListSubscribeListItem : allSubscribeListNode) + { + Data::SubscribeListItem subscribeListItemObject; + if(!dataNodeSubscribeListSubscribeListItem["UserId"].isNull()) + subscribeListItemObject.userId = dataNodeSubscribeListSubscribeListItem["UserId"].asString(); + if(!dataNodeSubscribeListSubscribeListItem["DeviceId"].isNull()) + subscribeListItemObject.deviceId = dataNodeSubscribeListSubscribeListItem["DeviceId"].asString(); + if(!dataNodeSubscribeListSubscribeListItem["PushConfig"].isNull()) + subscribeListItemObject.pushConfig = dataNodeSubscribeListSubscribeListItem["PushConfig"].asString(); + if(!dataNodeSubscribeListSubscribeListItem["CreateTime"].isNull()) + subscribeListItemObject.createTime = dataNodeSubscribeListSubscribeListItem["CreateTime"].asString(); + if(!dataNodeSubscribeListSubscribeListItem["UpdateTime"].isNull()) + subscribeListItemObject.updateTime = dataNodeSubscribeListSubscribeListItem["UpdateTime"].asString(); + data_.subscribeList.push_back(subscribeListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ListSubscribeDeviceResult::getMessage()const +{ + return message_; +} + +ListSubscribeDeviceResult::Data ListSubscribeDeviceResult::getData()const +{ + return data_; +} + +std::string ListSubscribeDeviceResult::getCode()const +{ + return code_; +} + diff --git a/vcs/src/model/SubscribeDeviceEventRequest.cc b/vcs/src/model/SubscribeDeviceEventRequest.cc new file mode 100644 index 000000000..a7eb145fd --- /dev/null +++ b/vcs/src/model/SubscribeDeviceEventRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::Vcs::Model::SubscribeDeviceEventRequest; + +SubscribeDeviceEventRequest::SubscribeDeviceEventRequest() : + RpcServiceRequest("vcs", "2020-05-15", "SubscribeDeviceEvent") +{ + setMethod(HttpRequest::Method::Post); +} + +SubscribeDeviceEventRequest::~SubscribeDeviceEventRequest() +{} + +std::string SubscribeDeviceEventRequest::getPushConfig()const +{ + return pushConfig_; +} + +void SubscribeDeviceEventRequest::setPushConfig(const std::string& pushConfig) +{ + pushConfig_ = pushConfig; + setParameter("PushConfig", pushConfig); +} + +std::string SubscribeDeviceEventRequest::getDeviceId()const +{ + return deviceId_; +} + +void SubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vcs/src/model/SubscribeDeviceEventResult.cc b/vcs/src/model/SubscribeDeviceEventResult.cc new file mode 100644 index 000000000..5e5c2d0e4 --- /dev/null +++ b/vcs/src/model/SubscribeDeviceEventResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Vcs; +using namespace AlibabaCloud::Vcs::Model; + +SubscribeDeviceEventResult::SubscribeDeviceEventResult() : + ServiceResult() +{} + +SubscribeDeviceEventResult::SubscribeDeviceEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubscribeDeviceEventResult::~SubscribeDeviceEventResult() +{} + +void SubscribeDeviceEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SubscribeDeviceEventResult::getMessage()const +{ + return message_; +} + +std::string SubscribeDeviceEventResult::getCode()const +{ + return code_; +} + diff --git a/vcs/src/model/SubscribeSpaceEventRequest.cc b/vcs/src/model/SubscribeSpaceEventRequest.cc new file mode 100644 index 000000000..671e106ef --- /dev/null +++ b/vcs/src/model/SubscribeSpaceEventRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::Vcs::Model::SubscribeSpaceEventRequest; + +SubscribeSpaceEventRequest::SubscribeSpaceEventRequest() : + RpcServiceRequest("vcs", "2020-05-15", "SubscribeSpaceEvent") +{ + setMethod(HttpRequest::Method::Post); +} + +SubscribeSpaceEventRequest::~SubscribeSpaceEventRequest() +{} + +std::string SubscribeSpaceEventRequest::getSpaceId()const +{ + return spaceId_; +} + +void SubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId) +{ + spaceId_ = spaceId; + setParameter("SpaceId", spaceId); +} + +std::string SubscribeSpaceEventRequest::getPushConfig()const +{ + return pushConfig_; +} + +void SubscribeSpaceEventRequest::setPushConfig(const std::string& pushConfig) +{ + pushConfig_ = pushConfig; + setParameter("PushConfig", pushConfig); +} + diff --git a/vcs/src/model/SubscribeSpaceEventResult.cc b/vcs/src/model/SubscribeSpaceEventResult.cc new file mode 100644 index 000000000..26e11b4cc --- /dev/null +++ b/vcs/src/model/SubscribeSpaceEventResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Vcs; +using namespace AlibabaCloud::Vcs::Model; + +SubscribeSpaceEventResult::SubscribeSpaceEventResult() : + ServiceResult() +{} + +SubscribeSpaceEventResult::SubscribeSpaceEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubscribeSpaceEventResult::~SubscribeSpaceEventResult() +{} + +void SubscribeSpaceEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SubscribeSpaceEventResult::getMessage()const +{ + return message_; +} + +std::string SubscribeSpaceEventResult::getCode()const +{ + return code_; +} + diff --git a/vcs/src/model/UnsubscribeDeviceEventRequest.cc b/vcs/src/model/UnsubscribeDeviceEventRequest.cc new file mode 100644 index 000000000..f4ab9647a --- /dev/null +++ b/vcs/src/model/UnsubscribeDeviceEventRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::Vcs::Model::UnsubscribeDeviceEventRequest; + +UnsubscribeDeviceEventRequest::UnsubscribeDeviceEventRequest() : + RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeDeviceEvent") +{ + setMethod(HttpRequest::Method::Post); +} + +UnsubscribeDeviceEventRequest::~UnsubscribeDeviceEventRequest() +{} + +std::string UnsubscribeDeviceEventRequest::getDeviceId()const +{ + return deviceId_; +} + +void UnsubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vcs/src/model/UnsubscribeDeviceEventResult.cc b/vcs/src/model/UnsubscribeDeviceEventResult.cc new file mode 100644 index 000000000..27b3e67b1 --- /dev/null +++ b/vcs/src/model/UnsubscribeDeviceEventResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Vcs; +using namespace AlibabaCloud::Vcs::Model; + +UnsubscribeDeviceEventResult::UnsubscribeDeviceEventResult() : + ServiceResult() +{} + +UnsubscribeDeviceEventResult::UnsubscribeDeviceEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnsubscribeDeviceEventResult::~UnsubscribeDeviceEventResult() +{} + +void UnsubscribeDeviceEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UnsubscribeDeviceEventResult::getMessage()const +{ + return message_; +} + +std::string UnsubscribeDeviceEventResult::getCode()const +{ + return code_; +} + diff --git a/vcs/src/model/UnsubscribeSpaceEventRequest.cc b/vcs/src/model/UnsubscribeSpaceEventRequest.cc new file mode 100644 index 000000000..2117261c5 --- /dev/null +++ b/vcs/src/model/UnsubscribeSpaceEventRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::Vcs::Model::UnsubscribeSpaceEventRequest; + +UnsubscribeSpaceEventRequest::UnsubscribeSpaceEventRequest() : + RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeSpaceEvent") +{ + setMethod(HttpRequest::Method::Post); +} + +UnsubscribeSpaceEventRequest::~UnsubscribeSpaceEventRequest() +{} + +std::string UnsubscribeSpaceEventRequest::getSpaceId()const +{ + return spaceId_; +} + +void UnsubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId) +{ + spaceId_ = spaceId; + setParameter("SpaceId", spaceId); +} + diff --git a/vcs/src/model/UnsubscribeSpaceEventResult.cc b/vcs/src/model/UnsubscribeSpaceEventResult.cc new file mode 100644 index 000000000..313efdfe4 --- /dev/null +++ b/vcs/src/model/UnsubscribeSpaceEventResult.cc @@ -0,0 +1,58 @@ +/* + * 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::Vcs; +using namespace AlibabaCloud::Vcs::Model; + +UnsubscribeSpaceEventResult::UnsubscribeSpaceEventResult() : + ServiceResult() +{} + +UnsubscribeSpaceEventResult::UnsubscribeSpaceEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnsubscribeSpaceEventResult::~UnsubscribeSpaceEventResult() +{} + +void UnsubscribeSpaceEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UnsubscribeSpaceEventResult::getMessage()const +{ + return message_; +} + +std::string UnsubscribeSpaceEventResult::getCode()const +{ + return code_; +} +