sdk-team пре 6 година
родитељ
комит
cff8cc2fce

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2020-08-17 Version: 1.36.588
+- Public beta version.
+- Add Api Overseas.
+
 2020-08-17 Version: 1.36.587
 - Add new tags for corp group.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.587
+1.36.588

+ 4 - 0
aliyuncvc/CMakeLists.txt

@@ -73,6 +73,8 @@ set(aliyuncvc_public_header_model
 	include/alibabacloud/aliyuncvc/model/GetMembersResult.h
 	include/alibabacloud/aliyuncvc/model/GetUserRequest.h
 	include/alibabacloud/aliyuncvc/model/GetUserResult.h
+	include/alibabacloud/aliyuncvc/model/InviteUserRequest.h
+	include/alibabacloud/aliyuncvc/model/InviteUserResult.h
 	include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingRequest.h
 	include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingResult.h
 	include/alibabacloud/aliyuncvc/model/JoinLiveRequest.h
@@ -164,6 +166,8 @@ set(aliyuncvc_src
 	src/model/GetMembersResult.cc
 	src/model/GetUserRequest.cc
 	src/model/GetUserResult.cc
+	src/model/InviteUserRequest.cc
+	src/model/InviteUserResult.cc
 	src/model/JoinDeviceMeetingRequest.cc
 	src/model/JoinDeviceMeetingResult.cc
 	src/model/JoinLiveRequest.cc

+ 8 - 0
aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h

@@ -74,6 +74,8 @@
 #include "model/GetMembersResult.h"
 #include "model/GetUserRequest.h"
 #include "model/GetUserResult.h"
+#include "model/InviteUserRequest.h"
+#include "model/InviteUserResult.h"
 #include "model/JoinDeviceMeetingRequest.h"
 #include "model/JoinDeviceMeetingResult.h"
 #include "model/JoinLiveRequest.h"
@@ -197,6 +199,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
 			typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
 			typedef std::function<void(const AliyuncvcClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
+			typedef Outcome<Error, Model::InviteUserResult> InviteUserOutcome;
+			typedef std::future<InviteUserOutcome> InviteUserOutcomeCallable;
+			typedef std::function<void(const AliyuncvcClient*, const Model::InviteUserRequest&, const InviteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InviteUserAsyncHandler;
 			typedef Outcome<Error, Model::JoinDeviceMeetingResult> JoinDeviceMeetingOutcome;
 			typedef std::future<JoinDeviceMeetingOutcome> JoinDeviceMeetingOutcomeCallable;
 			typedef std::function<void(const AliyuncvcClient*, const Model::JoinDeviceMeetingRequest&, const JoinDeviceMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JoinDeviceMeetingAsyncHandler;
@@ -334,6 +339,9 @@ namespace AlibabaCloud
 			GetUserOutcome getUser(const Model::GetUserRequest &request)const;
 			void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
+			InviteUserOutcome inviteUser(const Model::InviteUserRequest &request)const;
+			void inviteUserAsync(const Model::InviteUserRequest& request, const InviteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			InviteUserOutcomeCallable inviteUserCallable(const Model::InviteUserRequest& request) const;
 			JoinDeviceMeetingOutcome joinDeviceMeeting(const Model::JoinDeviceMeetingRequest &request)const;
 			void joinDeviceMeetingAsync(const Model::JoinDeviceMeetingRequest& request, const JoinDeviceMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			JoinDeviceMeetingOutcomeCallable joinDeviceMeetingCallable(const Model::JoinDeviceMeetingRequest& request) const;

+ 51 - 0
aliyuncvc/include/alibabacloud/aliyuncvc/model/InviteUserRequest.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_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_
+#define ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Aliyuncvc
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_ALIYUNCVC_EXPORT InviteUserRequest : public RpcServiceRequest
+			{
+
+			public:
+				InviteUserRequest();
+				~InviteUserRequest();
+
+				std::string getMeetingUUID()const;
+				void setMeetingUUID(const std::string& meetingUUID);
+				std::string getUserIds()const;
+				void setUserIds(const std::string& userIds);
+
+            private:
+				std::string meetingUUID_;
+				std::string userIds_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_

+ 55 - 0
aliyuncvc/include/alibabacloud/aliyuncvc/model/InviteUserResult.h

@@ -0,0 +1,55 @@
+/*
+ * 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_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_
+#define ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Aliyuncvc
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_ALIYUNCVC_EXPORT InviteUserResult : public ServiceResult
+			{
+			public:
+
+
+				InviteUserResult();
+				explicit InviteUserResult(const std::string &payload);
+				~InviteUserResult();
+				std::string getMessage()const;
+				int getErrorCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				int errorCode_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_

+ 36 - 0
aliyuncvc/src/AliyuncvcClient.cc

@@ -987,6 +987,42 @@ AliyuncvcClient::GetUserOutcomeCallable AliyuncvcClient::getUserCallable(const G
 	return task->get_future();
 }
 
+AliyuncvcClient::InviteUserOutcome AliyuncvcClient::inviteUser(const InviteUserRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return InviteUserOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return InviteUserOutcome(InviteUserResult(outcome.result()));
+	else
+		return InviteUserOutcome(outcome.error());
+}
+
+void AliyuncvcClient::inviteUserAsync(const InviteUserRequest& request, const InviteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, inviteUser(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AliyuncvcClient::InviteUserOutcomeCallable AliyuncvcClient::inviteUserCallable(const InviteUserRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<InviteUserOutcome()>>(
+			[this, request]()
+			{
+			return this->inviteUser(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 AliyuncvcClient::JoinDeviceMeetingOutcome AliyuncvcClient::joinDeviceMeeting(const JoinDeviceMeetingRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 51 - 0
aliyuncvc/src/model/InviteUserRequest.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 <alibabacloud/aliyuncvc/model/InviteUserRequest.h>
+
+using AlibabaCloud::Aliyuncvc::Model::InviteUserRequest;
+
+InviteUserRequest::InviteUserRequest() :
+	RpcServiceRequest("aliyuncvc", "2019-10-30", "InviteUser")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+InviteUserRequest::~InviteUserRequest()
+{}
+
+std::string InviteUserRequest::getMeetingUUID()const
+{
+	return meetingUUID_;
+}
+
+void InviteUserRequest::setMeetingUUID(const std::string& meetingUUID)
+{
+	meetingUUID_ = meetingUUID;
+	setBodyParameter("MeetingUUID", meetingUUID);
+}
+
+std::string InviteUserRequest::getUserIds()const
+{
+	return userIds_;
+}
+
+void InviteUserRequest::setUserIds(const std::string& userIds)
+{
+	userIds_ = userIds;
+	setBodyParameter("UserIds", userIds);
+}
+

+ 65 - 0
aliyuncvc/src/model/InviteUserResult.cc

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