Просмотр исходного кода

Supported for setEndpoint method.

sdk-team 7 лет назад
Родитель
Сommit
44bbd797e7

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2019-09-05 Version 1.36.113
+- Supported for setEndpoint method.
+
 2019-09-05 Version 1.36.112
 - Generated 2014-05-15 for `Slb`.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.112
+1.36.113

+ 98 - 0
dypnsapi/CMakeLists.txt

@@ -0,0 +1,98 @@
+#
+# 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.
+#
+
+set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
+
+set(dypnsapi_public_header 
+	include/alibabacloud/dypnsapi/DypnsapiClient.h
+	include/alibabacloud/dypnsapi/DypnsapiExport.h )
+
+set(dypnsapi_public_header_model 
+	include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h
+	include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h
+	include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h
+	include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h
+	include/alibabacloud/dypnsapi/model/GetMobileRequest.h
+	include/alibabacloud/dypnsapi/model/GetMobileResult.h
+	include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h
+	include/alibabacloud/dypnsapi/model/VerifyMobileResult.h )
+
+set(dypnsapi_src 
+	src/com.aliyun.pop.sdk.domain.Product@28f2a10fClient.cc
+	src/model/CreateVerifySchemeRequest.cc
+	src/model/CreateVerifySchemeResult.cc
+	src/model/TwiceTelVerifyRequest.cc
+	src/model/TwiceTelVerifyResult.cc
+	src/model/GetMobileRequest.cc
+	src/model/GetMobileResult.cc
+	src/model/VerifyMobileRequest.cc
+	src/model/VerifyMobileResult.cc )
+
+add_library(dypnsapi ${LIB_TYPE}
+	${dypnsapi_public_header}
+	${dypnsapi_public_header_model}
+	${dypnsapi_src})
+
+set_target_properties(dypnsapi
+	PROPERTIES
+	LINKER_LANGUAGE CXX
+	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
+	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
+	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
+	OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dypnsapi
+	)
+
+if(${LIB_TYPE} STREQUAL "SHARED")
+	set_target_properties(dypnsapi
+		PROPERTIES
+		DEFINE_SYMBOL ALIBABACLOUD_DYPNSAPI_LIBRARY)
+endif()
+
+target_include_directories(dypnsapi
+	PRIVATE include
+		${CMAKE_SOURCE_DIR}/core/include
+	)
+target_link_libraries(dypnsapi
+	core)
+
+if(CMAKE_HOST_WIN32)
+	ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
+	set(jsoncpp_install_dir ${INSTALL_DIR})
+	add_dependencies(dypnsapi
+		jsoncpp)
+	target_include_directories(dypnsapi
+		PRIVATE	${jsoncpp_install_dir}/include)
+	target_link_libraries(dypnsapi
+		${jsoncpp_install_dir}/lib/jsoncpp.lib)
+	set_target_properties(dypnsapi
+    	PROPERTIES
+    		COMPILE_OPTIONS "/bigobj")
+else()
+	target_include_directories(dypnsapi
+		PRIVATE /usr/include/jsoncpp)
+	target_link_libraries(dypnsapi
+		jsoncpp)
+endif()
+
+install(FILES ${dypnsapi_public_header}
+	DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dypnsapi)
+install(FILES ${dypnsapi_public_header_model}
+	DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dypnsapi/model)
+install(TARGETS dypnsapi
+	ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+	LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+	RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+	)

+ 78 - 0
dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h

@@ -0,0 +1,78 @@
+/*
+ * 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_DYPNSAPI_DYPNSAPICLIENT_H_
+#define ALIBABACLOUD_DYPNSAPI_DYPNSAPICLIENT_H_
+
+#include <future>
+#include <alibabacloud/core/AsyncCallerContext.h>
+#include <alibabacloud/core/EndpointProvider.h>
+#include <alibabacloud/core/RpcServiceClient.h>
+#include "DypnsapiExport.h"
+#include "model/CreateVerifySchemeRequest.h"
+#include "model/CreateVerifySchemeResult.h"
+#include "model/TwiceTelVerifyRequest.h"
+#include "model/TwiceTelVerifyResult.h"
+#include "model/GetMobileRequest.h"
+#include "model/GetMobileResult.h"
+#include "model/VerifyMobileRequest.h"
+#include "model/VerifyMobileResult.h"
+
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		class ALIBABACLOUD_DYPNSAPI_EXPORT DypnsapiClient : public RpcServiceClient
+		{
+		public:
+			typedef Outcome<Error, Model::CreateVerifySchemeResult> CreateVerifySchemeOutcome;
+			typedef std::future<CreateVerifySchemeOutcome> CreateVerifySchemeOutcomeCallable;
+			typedef std::function<void(const DypnsapiClient*, const Model::CreateVerifySchemeRequest&, const CreateVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySchemeAsyncHandler;
+			typedef Outcome<Error, Model::TwiceTelVerifyResult> TwiceTelVerifyOutcome;
+			typedef std::future<TwiceTelVerifyOutcome> TwiceTelVerifyOutcomeCallable;
+			typedef std::function<void(const DypnsapiClient*, const Model::TwiceTelVerifyRequest&, const TwiceTelVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwiceTelVerifyAsyncHandler;
+			typedef Outcome<Error, Model::GetMobileResult> GetMobileOutcome;
+			typedef std::future<GetMobileOutcome> GetMobileOutcomeCallable;
+			typedef std::function<void(const DypnsapiClient*, const Model::GetMobileRequest&, const GetMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMobileAsyncHandler;
+			typedef Outcome<Error, Model::VerifyMobileResult> VerifyMobileOutcome;
+			typedef std::future<VerifyMobileOutcome> VerifyMobileOutcomeCallable;
+			typedef std::function<void(const DypnsapiClient*, const Model::VerifyMobileRequest&, const VerifyMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMobileAsyncHandler;
+
+			DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
+			DypnsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
+			DypnsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
+			~DypnsapiClient();
+			CreateVerifySchemeOutcome createVerifyScheme(const Model::CreateVerifySchemeRequest &request)const;
+			void createVerifySchemeAsync(const Model::CreateVerifySchemeRequest& request, const CreateVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			CreateVerifySchemeOutcomeCallable createVerifySchemeCallable(const Model::CreateVerifySchemeRequest& request) const;
+			TwiceTelVerifyOutcome twiceTelVerify(const Model::TwiceTelVerifyRequest &request)const;
+			void twiceTelVerifyAsync(const Model::TwiceTelVerifyRequest& request, const TwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			TwiceTelVerifyOutcomeCallable twiceTelVerifyCallable(const Model::TwiceTelVerifyRequest& request) const;
+			GetMobileOutcome getMobile(const Model::GetMobileRequest &request)const;
+			void getMobileAsync(const Model::GetMobileRequest& request, const GetMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetMobileOutcomeCallable getMobileCallable(const Model::GetMobileRequest& request) const;
+			VerifyMobileOutcome verifyMobile(const Model::VerifyMobileRequest &request)const;
+			void verifyMobileAsync(const Model::VerifyMobileRequest& request, const VerifyMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			VerifyMobileOutcomeCallable verifyMobileCallable(const Model::VerifyMobileRequest& request) const;
+	
+		private:
+			std::shared_ptr<EndpointProvider> endpointProvider_;
+		};
+	}
+}
+
+#endif // !ALIBABACLOUD_DYPNSAPI_DYPNSAPICLIENT_H_

+ 31 - 31
dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h

@@ -1,32 +1,32 @@
-/*
- * 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_DYPNSAPI_DYPNSAPIEXPORT_H_
-#define ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_
-
-#include <alibabacloud/core/Global.h>
-
-#if defined(ALIBABACLOUD_SHARED)
-#	if defined(ALIBABACLOUD_DYPNSAPI_LIBRARY)
-#		define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
-#	else
-#		define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
-#	endif
-#else
-#	define ALIBABACLOUD_DYPNSAPI_EXPORT
-#endif
-
+/*
+ * 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_DYPNSAPI_DYPNSAPIEXPORT_H_
+#define ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_
+
+#include <alibabacloud/core/Global.h>
+
+#if defined(ALIBABACLOUD_SHARED)
+#	if defined(ALIBABACLOUD_DYPNSAPI_LIBRARY)
+#		define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT
+#	else
+#		define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT
+#	endif
+#else
+#	define ALIBABACLOUD_DYPNSAPI_EXPORT
+#endif
+
 #endif // !ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_

+ 59 - 59
dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h

@@ -1,75 +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_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeRequest : public RpcServiceRequest
-			{
-
-			public:
-				CreateVerifySchemeRequest();
-				~CreateVerifySchemeRequest();
-
+/*
+ * 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_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeRequest : public RpcServiceRequest
+			{
+
+			public:
+				CreateVerifySchemeRequest();
+				~CreateVerifySchemeRequest();
+
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
-				std::string getPackName()const;
-				void setPackName(const std::string& packName);
+				std::string getBundleId()const;
+				void setBundleId(const std::string& bundleId);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getAppName()const;
 				void setAppName(const std::string& appName);
+				std::string getPackSign()const;
+				void setPackSign(const std::string& packSign);
+				std::string getPackName()const;
+				void setPackName(const std::string& packName);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
-				std::string getSchemeName()const;
-				void setSchemeName(const std::string& schemeName);
-				std::string getBundleId()const;
-				void setBundleId(const std::string& bundleId);
 				std::string getOsType()const;
 				void setOsType(const std::string& osType);
 				long getOwnerId()const;
 				void setOwnerId(long ownerId);
-				std::string getAccessKeyId()const;
-				void setAccessKeyId(const std::string& accessKeyId);
-				std::string getPackSign()const;
-				void setPackSign(const std::string& packSign);
-
-            private:
+				std::string getSchemeName()const;
+				void setSchemeName(const std::string& schemeName);
+
+            private:
 				long resourceOwnerId_;
-				std::string packName_;
+				std::string bundleId_;
+				std::string accessKeyId_;
 				std::string appName_;
+				std::string packSign_;
+				std::string packName_;
 				std::string resourceOwnerAccount_;
-				std::string schemeName_;
-				std::string bundleId_;
 				std::string osType_;
 				long ownerId_;
-				std::string accessKeyId_;
-				std::string packSign_;
-
-			};
-		}
-	}
-}
+				std::string schemeName_;
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_

+ 48 - 48
dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h

@@ -1,59 +1,59 @@
-/*
- * 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_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_
-
-#include <string>
-#include <vector>
-#include <utility>
-#include <alibabacloud/core/ServiceResult.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeResult : public ServiceResult
-			{
-			public:
+/*
+ * 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_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeResult : public ServiceResult
+			{
+			public:
 				struct GateVerifySchemeDTO
 				{
 					std::string schemeCode;
 				};
-
-
-				CreateVerifySchemeResult();
-				explicit CreateVerifySchemeResult(const std::string &payload);
-				~CreateVerifySchemeResult();
+
+
+				CreateVerifySchemeResult();
+				explicit CreateVerifySchemeResult(const std::string &payload);
+				~CreateVerifySchemeResult();
 				std::string getMessage()const;
 				GateVerifySchemeDTO getGateVerifySchemeDTO()const;
 				std::string getCode()const;
-
-			protected:
-				void parse(const std::string &payload);
-			private:
+
+			protected:
+				void parse(const std::string &payload);
+			private:
 				std::string message_;
 				GateVerifySchemeDTO gateVerifySchemeDTO_;
 				std::string code_;
-
-			};
-		}
-	}
-}
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_

+ 47 - 47
dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h

@@ -1,63 +1,63 @@
-/*
- * 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_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileRequest : public RpcServiceRequest
-			{
-
-			public:
-				GetMobileRequest();
-				~GetMobileRequest();
-
+/*
+ * 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_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileRequest : public RpcServiceRequest
+			{
+
+			public:
+				GetMobileRequest();
+				~GetMobileRequest();
+
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
 				std::string getAccessToken()const;
 				void setAccessToken(const std::string& accessToken);
-				std::string getOutId()const;
-				void setOutId(const std::string& outId);
 				long getOwnerId()const;
 				void setOwnerId(long ownerId);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
-
-            private:
+				std::string getOutId()const;
+				void setOutId(const std::string& outId);
+
+            private:
 				long resourceOwnerId_;
 				std::string resourceOwnerAccount_;
 				std::string accessToken_;
-				std::string outId_;
 				long ownerId_;
 				std::string accessKeyId_;
-
-			};
-		}
-	}
-}
+				std::string outId_;
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_

+ 48 - 48
dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h

@@ -1,59 +1,59 @@
-/*
- * 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_DYPNSAPI_MODEL_GETMOBILERESULT_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_
-
-#include <string>
-#include <vector>
-#include <utility>
-#include <alibabacloud/core/ServiceResult.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileResult : public ServiceResult
-			{
-			public:
+/*
+ * 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_DYPNSAPI_MODEL_GETMOBILERESULT_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileResult : public ServiceResult
+			{
+			public:
 				struct GetMobileResultDTO
 				{
 					std::string mobile;
 				};
-
-
-				GetMobileResult();
-				explicit GetMobileResult(const std::string &payload);
-				~GetMobileResult();
+
+
+				GetMobileResult();
+				explicit GetMobileResult(const std::string &payload);
+				~GetMobileResult();
 				std::string getMessage()const;
 				std::string getCode()const;
 				GetMobileResultDTO getGetMobileResultDTO()const;
-
-			protected:
-				void parse(const std::string &payload);
-			private:
+
+			protected:
+				void parse(const std::string &payload);
+			private:
 				std::string message_;
 				std::string code_;
 				GetMobileResultDTO getMobileResultDTO_;
-
-			};
-		}
-	}
-}
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_

+ 44 - 44
dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h

@@ -1,40 +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.
- */
-
-#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyRequest : public RpcServiceRequest
-			{
-
-			public:
-				TwiceTelVerifyRequest();
-				~TwiceTelVerifyRequest();
-
+/*
+ * 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_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyRequest : public RpcServiceRequest
+			{
+
+			public:
+				TwiceTelVerifyRequest();
+				~TwiceTelVerifyRequest();
+
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
 				std::string getResourceOwnerAccount()const;
@@ -47,17 +47,17 @@ namespace AlibabaCloud
 				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getSince()const;
 				void setSince(const std::string& since);
-
-            private:
+
+            private:
 				long resourceOwnerId_;
 				std::string resourceOwnerAccount_;
 				std::string phoneNumber_;
 				long ownerId_;
 				std::string accessKeyId_;
 				std::string since_;
-
-			};
-		}
-	}
-}
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_

+ 48 - 48
dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h

@@ -1,60 +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_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
-
-#include <string>
-#include <vector>
-#include <utility>
-#include <alibabacloud/core/ServiceResult.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyResult : public ServiceResult
-			{
-			public:
+/*
+ * 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_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyResult : public ServiceResult
+			{
+			public:
 				struct Result
 				{
 					std::string carrier;
 					int verifyResult;
 				};
-
-
-				TwiceTelVerifyResult();
-				explicit TwiceTelVerifyResult(const std::string &payload);
-				~TwiceTelVerifyResult();
+
+
+				TwiceTelVerifyResult();
+				explicit TwiceTelVerifyResult(const std::string &payload);
+				~TwiceTelVerifyResult();
 				std::string getMessage()const;
 				TwiceTelVerifyResult getTwiceTelVerifyResult()const;
 				std::string getCode()const;
-
-			protected:
-				void parse(const std::string &payload);
-			private:
+
+			protected:
+				void parse(const std::string &payload);
+			private:
 				std::string message_;
 				TwiceTelVerifyResult twiceTelVerifyResult_;
 				std::string code_;
-
-			};
-		}
-	}
-}
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_

+ 53 - 53
dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h

@@ -1,66 +1,66 @@
-/*
- * 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_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileRequest : public RpcServiceRequest
-			{
-
-			public:
-				VerifyMobileRequest();
-				~VerifyMobileRequest();
-
+/*
+ * 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_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileRequest : public RpcServiceRequest
+			{
+
+			public:
+				VerifyMobileRequest();
+				~VerifyMobileRequest();
+
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
+				std::string getPhoneNumber()const;
+				void setPhoneNumber(const std::string& phoneNumber);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getAccessCode()const;
 				void setAccessCode(const std::string& accessCode);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
-				std::string getPhoneNumber()const;
-				void setPhoneNumber(const std::string& phoneNumber);
-				std::string getOutId()const;
-				void setOutId(const std::string& outId);
 				long getOwnerId()const;
 				void setOwnerId(long ownerId);
-				std::string getAccessKeyId()const;
-				void setAccessKeyId(const std::string& accessKeyId);
-
-            private:
+				std::string getOutId()const;
+				void setOutId(const std::string& outId);
+
+            private:
 				long resourceOwnerId_;
+				std::string phoneNumber_;
+				std::string accessKeyId_;
 				std::string accessCode_;
 				std::string resourceOwnerAccount_;
-				std::string phoneNumber_;
-				std::string outId_;
 				long ownerId_;
-				std::string accessKeyId_;
-
-			};
-		}
-	}
-}
+				std::string outId_;
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_

+ 48 - 48
dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h

@@ -1,60 +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_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_
-#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_
-
-#include <string>
-#include <vector>
-#include <utility>
-#include <alibabacloud/core/ServiceResult.h>
-#include <alibabacloud/dypnsapi/DypnsapiExport.h>
-
-namespace AlibabaCloud
-{
-	namespace Dypnsapi
-	{
-		namespace Model
-		{
-			class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileResult : public ServiceResult
-			{
-			public:
+/*
+ * 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_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_
+#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/dypnsapi/DypnsapiExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dypnsapi
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileResult : public ServiceResult
+			{
+			public:
 				struct GateVerifyResultDTO
 				{
 					std::string verifyResult;
 					std::string verifyId;
 				};
-
-
-				VerifyMobileResult();
-				explicit VerifyMobileResult(const std::string &payload);
-				~VerifyMobileResult();
+
+
+				VerifyMobileResult();
+				explicit VerifyMobileResult(const std::string &payload);
+				~VerifyMobileResult();
 				GateVerifyResultDTO getGateVerifyResultDTO()const;
 				std::string getMessage()const;
 				std::string getCode()const;
-
-			protected:
-				void parse(const std::string &payload);
-			private:
+
+			protected:
+				void parse(const std::string &payload);
+			private:
 				GateVerifyResultDTO gateVerifyResultDTO_;
 				std::string message_;
 				std::string code_;
-
-			};
-		}
-	}
-}
+
+			};
+		}
+	}
+}
 #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_

+ 197 - 0
dypnsapi/src/DypnsapiClient.cc

@@ -0,0 +1,197 @@
+/*
+ * 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/dypnsapi/DypnsapiClient.h>
+#include <alibabacloud/core/SimpleCredentialsProvider.h>
+
+using namespace AlibabaCloud;
+using namespace AlibabaCloud::Location;
+using namespace AlibabaCloud::Dypnsapi;
+using namespace AlibabaCloud::Dypnsapi::Model;
+
+namespace
+{
+	const std::string SERVICE_NAME = "Dypnsapi";
+}
+
+DypnsapiClient::DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration) :
+	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
+{
+	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
+}
+
+DypnsapiClient::DypnsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
+	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
+{
+	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
+}
+
+DypnsapiClient::DypnsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
+	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
+{
+	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
+}
+
+DypnsapiClient::~DypnsapiClient()
+{}
+
+DypnsapiClient::CreateVerifySchemeOutcome DypnsapiClient::createVerifyScheme(const CreateVerifySchemeRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return CreateVerifySchemeOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return CreateVerifySchemeOutcome(CreateVerifySchemeResult(outcome.result()));
+	else
+		return CreateVerifySchemeOutcome(outcome.error());
+}
+
+void DypnsapiClient::createVerifySchemeAsync(const CreateVerifySchemeRequest& request, const CreateVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, createVerifyScheme(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DypnsapiClient::CreateVerifySchemeOutcomeCallable DypnsapiClient::createVerifySchemeCallable(const CreateVerifySchemeRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<CreateVerifySchemeOutcome()>>(
+			[this, request]()
+			{
+			return this->createVerifyScheme(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+DypnsapiClient::TwiceTelVerifyOutcome DypnsapiClient::twiceTelVerify(const TwiceTelVerifyRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return TwiceTelVerifyOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return TwiceTelVerifyOutcome(TwiceTelVerifyResult(outcome.result()));
+	else
+		return TwiceTelVerifyOutcome(outcome.error());
+}
+
+void DypnsapiClient::twiceTelVerifyAsync(const TwiceTelVerifyRequest& request, const TwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, twiceTelVerify(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DypnsapiClient::TwiceTelVerifyOutcomeCallable DypnsapiClient::twiceTelVerifyCallable(const TwiceTelVerifyRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<TwiceTelVerifyOutcome()>>(
+			[this, request]()
+			{
+			return this->twiceTelVerify(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+DypnsapiClient::GetMobileOutcome DypnsapiClient::getMobile(const GetMobileRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetMobileOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetMobileOutcome(GetMobileResult(outcome.result()));
+	else
+		return GetMobileOutcome(outcome.error());
+}
+
+void DypnsapiClient::getMobileAsync(const GetMobileRequest& request, const GetMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getMobile(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DypnsapiClient::GetMobileOutcomeCallable DypnsapiClient::getMobileCallable(const GetMobileRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetMobileOutcome()>>(
+			[this, request]()
+			{
+			return this->getMobile(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+DypnsapiClient::VerifyMobileOutcome DypnsapiClient::verifyMobile(const VerifyMobileRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return VerifyMobileOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return VerifyMobileOutcome(VerifyMobileResult(outcome.result()));
+	else
+		return VerifyMobileOutcome(outcome.error());
+}
+
+void DypnsapiClient::verifyMobileAsync(const VerifyMobileRequest& request, const VerifyMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, verifyMobile(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DypnsapiClient::VerifyMobileOutcomeCallable DypnsapiClient::verifyMobileCallable(const VerifyMobileRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<VerifyMobileOutcome()>>(
+			[this, request]()
+			{
+			return this->verifyMobile(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+

+ 63 - 63
dypnsapi/src/model/CreateVerifySchemeRequest.cc

@@ -1,30 +1,30 @@
-/*
- * 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/dypnsapi/model/CreateVerifySchemeRequest.h>
-
-using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
-
-CreateVerifySchemeRequest::CreateVerifySchemeRequest() :
-	RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme")
-{}
-
-CreateVerifySchemeRequest::~CreateVerifySchemeRequest()
-{}
-
+/*
+ * 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/dypnsapi/model/CreateVerifySchemeRequest.h>
+
+using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
+
+CreateVerifySchemeRequest::CreateVerifySchemeRequest() :
+	RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme")
+{}
+
+CreateVerifySchemeRequest::~CreateVerifySchemeRequest()
+{}
+
 long CreateVerifySchemeRequest::getResourceOwnerId()const
 {
 	return resourceOwnerId_;
@@ -36,15 +36,26 @@ void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
 	setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
 }
 
-std::string CreateVerifySchemeRequest::getPackName()const
+std::string CreateVerifySchemeRequest::getBundleId()const
 {
-	return packName_;
+	return bundleId_;
 }
 
-void CreateVerifySchemeRequest::setPackName(const std::string& packName)
+void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId)
 {
-	packName_ = packName;
-	setCoreParameter("PackName", packName);
+	bundleId_ = bundleId;
+	setCoreParameter("BundleId", bundleId);
+}
+
+std::string CreateVerifySchemeRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setCoreParameter("AccessKeyId", accessKeyId);
 }
 
 std::string CreateVerifySchemeRequest::getAppName()const
@@ -58,37 +69,37 @@ void CreateVerifySchemeRequest::setAppName(const std::string& appName)
 	setCoreParameter("AppName", appName);
 }
 
-std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const
+std::string CreateVerifySchemeRequest::getPackSign()const
 {
-	return resourceOwnerAccount_;
+	return packSign_;
 }
 
-void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+void CreateVerifySchemeRequest::setPackSign(const std::string& packSign)
 {
-	resourceOwnerAccount_ = resourceOwnerAccount;
-	setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
+	packSign_ = packSign;
+	setCoreParameter("PackSign", packSign);
 }
 
-std::string CreateVerifySchemeRequest::getSchemeName()const
+std::string CreateVerifySchemeRequest::getPackName()const
 {
-	return schemeName_;
+	return packName_;
 }
 
-void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName)
+void CreateVerifySchemeRequest::setPackName(const std::string& packName)
 {
-	schemeName_ = schemeName;
-	setCoreParameter("SchemeName", schemeName);
+	packName_ = packName;
+	setCoreParameter("PackName", packName);
 }
 
-std::string CreateVerifySchemeRequest::getBundleId()const
+std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const
 {
-	return bundleId_;
+	return resourceOwnerAccount_;
 }
 
-void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId)
+void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
 {
-	bundleId_ = bundleId;
-	setCoreParameter("BundleId", bundleId);
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
 }
 
 std::string CreateVerifySchemeRequest::getOsType()const
@@ -113,25 +124,14 @@ void CreateVerifySchemeRequest::setOwnerId(long ownerId)
 	setCoreParameter("OwnerId", std::to_string(ownerId));
 }
 
-std::string CreateVerifySchemeRequest::getAccessKeyId()const
-{
-	return accessKeyId_;
-}
-
-void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
-{
-	accessKeyId_ = accessKeyId;
-	setCoreParameter("AccessKeyId", accessKeyId);
-}
-
-std::string CreateVerifySchemeRequest::getPackSign()const
+std::string CreateVerifySchemeRequest::getSchemeName()const
 {
-	return packSign_;
+	return schemeName_;
 }
 
-void CreateVerifySchemeRequest::setPackSign(const std::string& packSign)
+void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName)
 {
-	packSign_ = packSign;
-	setCoreParameter("PackSign", packSign);
+	schemeName_ = schemeName;
+	setCoreParameter("SchemeName", schemeName);
 }
 

+ 44 - 45
dypnsapi/src/model/CreateVerifySchemeResult.cc

@@ -1,45 +1,44 @@
-/*
- * 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/dypnsapi/model/CreateVerifySchemeResult.h>
-#include <json/json.h>
-
-using namespace AlibabaCloud::Dypnsapi;
-using namespace AlibabaCloud::Dypnsapi::Model;
-
-CreateVerifySchemeResult::CreateVerifySchemeResult() :
-	ServiceResult()
-{}
-
-CreateVerifySchemeResult::CreateVerifySchemeResult(const std::string &payload) :
-	ServiceResult()
-{
-	parse(payload);
-}
-
-CreateVerifySchemeResult::~CreateVerifySchemeResult()
-{}
-
-void CreateVerifySchemeResult::parse(const std::string &payload)
-{
-	Json::Reader reader;
-	Json::Value value;
-	reader.parse(payload, value);
-
-	setRequestId(value["RequestId"].asString());
+/*
+ * 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/dypnsapi/model/CreateVerifySchemeResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dypnsapi;
+using namespace AlibabaCloud::Dypnsapi::Model;
+
+CreateVerifySchemeResult::CreateVerifySchemeResult() :
+	ServiceResult()
+{}
+
+CreateVerifySchemeResult::CreateVerifySchemeResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+CreateVerifySchemeResult::~CreateVerifySchemeResult()
+{}
+
+void CreateVerifySchemeResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
 	auto gateVerifySchemeDTONode = value["GateVerifySchemeDTO"];
 	if(!gateVerifySchemeDTONode["SchemeCode"].isNull())
 		gateVerifySchemeDTO_.schemeCode = gateVerifySchemeDTONode["SchemeCode"].asString();
@@ -47,9 +46,9 @@ void CreateVerifySchemeResult::parse(const std::string &payload)
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
-
-}
-
+
+}
+
 std::string CreateVerifySchemeResult::getMessage()const
 {
 	return message_;

+ 38 - 38
dypnsapi/src/model/GetMobileRequest.cc

@@ -1,30 +1,30 @@
-/*
- * 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/dypnsapi/model/GetMobileRequest.h>
-
-using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
-
-GetMobileRequest::GetMobileRequest() :
-	RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile")
-{}
-
-GetMobileRequest::~GetMobileRequest()
-{}
-
+/*
+ * 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/dypnsapi/model/GetMobileRequest.h>
+
+using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
+
+GetMobileRequest::GetMobileRequest() :
+	RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile")
+{}
+
+GetMobileRequest::~GetMobileRequest()
+{}
+
 long GetMobileRequest::getResourceOwnerId()const
 {
 	return resourceOwnerId_;
@@ -58,17 +58,6 @@ void GetMobileRequest::setAccessToken(const std::string& accessToken)
 	setCoreParameter("AccessToken", accessToken);
 }
 
-std::string GetMobileRequest::getOutId()const
-{
-	return outId_;
-}
-
-void GetMobileRequest::setOutId(const std::string& outId)
-{
-	outId_ = outId;
-	setCoreParameter("OutId", outId);
-}
-
 long GetMobileRequest::getOwnerId()const
 {
 	return ownerId_;
@@ -91,3 +80,14 @@ void GetMobileRequest::setAccessKeyId(const std::string& accessKeyId)
 	setCoreParameter("AccessKeyId", accessKeyId);
 }
 
+std::string GetMobileRequest::getOutId()const
+{
+	return outId_;
+}
+
+void GetMobileRequest::setOutId(const std::string& outId)
+{
+	outId_ = outId;
+	setCoreParameter("OutId", outId);
+}
+

+ 44 - 45
dypnsapi/src/model/GetMobileResult.cc

@@ -1,45 +1,44 @@
-/*
- * 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/dypnsapi/model/GetMobileResult.h>
-#include <json/json.h>
-
-using namespace AlibabaCloud::Dypnsapi;
-using namespace AlibabaCloud::Dypnsapi::Model;
-
-GetMobileResult::GetMobileResult() :
-	ServiceResult()
-{}
-
-GetMobileResult::GetMobileResult(const std::string &payload) :
-	ServiceResult()
-{
-	parse(payload);
-}
-
-GetMobileResult::~GetMobileResult()
-{}
-
-void GetMobileResult::parse(const std::string &payload)
-{
-	Json::Reader reader;
-	Json::Value value;
-	reader.parse(payload, value);
-
-	setRequestId(value["RequestId"].asString());
+/*
+ * 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/dypnsapi/model/GetMobileResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dypnsapi;
+using namespace AlibabaCloud::Dypnsapi::Model;
+
+GetMobileResult::GetMobileResult() :
+	ServiceResult()
+{}
+
+GetMobileResult::GetMobileResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetMobileResult::~GetMobileResult()
+{}
+
+void GetMobileResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
 	auto getMobileResultDTONode = value["GetMobileResultDTO"];
 	if(!getMobileResultDTONode["Mobile"].isNull())
 		getMobileResultDTO_.mobile = getMobileResultDTONode["Mobile"].asString();
@@ -47,9 +46,9 @@ void GetMobileResult::parse(const std::string &payload)
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
-
-}
-
+
+}
+
 std::string GetMobileResult::getMessage()const
 {
 	return message_;

+ 27 - 27
dypnsapi/src/model/TwiceTelVerifyRequest.cc

@@ -1,30 +1,30 @@
-/*
- * 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/dypnsapi/model/TwiceTelVerifyRequest.h>
-
-using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest;
-
-TwiceTelVerifyRequest::TwiceTelVerifyRequest() :
-	RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify")
-{}
-
-TwiceTelVerifyRequest::~TwiceTelVerifyRequest()
-{}
-
+/*
+ * 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/dypnsapi/model/TwiceTelVerifyRequest.h>
+
+using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest;
+
+TwiceTelVerifyRequest::TwiceTelVerifyRequest() :
+	RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify")
+{}
+
+TwiceTelVerifyRequest::~TwiceTelVerifyRequest()
+{}
+
 long TwiceTelVerifyRequest::getResourceOwnerId()const
 {
 	return resourceOwnerId_;

+ 44 - 45
dypnsapi/src/model/TwiceTelVerifyResult.cc

@@ -1,45 +1,44 @@
-/*
- * 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/dypnsapi/model/TwiceTelVerifyResult.h>
-#include <json/json.h>
-
-using namespace AlibabaCloud::Dypnsapi;
-using namespace AlibabaCloud::Dypnsapi::Model;
-
-TwiceTelVerifyResult::TwiceTelVerifyResult() :
-	ServiceResult()
-{}
-
-TwiceTelVerifyResult::TwiceTelVerifyResult(const std::string &payload) :
-	ServiceResult()
-{
-	parse(payload);
-}
-
-TwiceTelVerifyResult::~TwiceTelVerifyResult()
-{}
-
-void TwiceTelVerifyResult::parse(const std::string &payload)
-{
-	Json::Reader reader;
-	Json::Value value;
-	reader.parse(payload, value);
-
-	setRequestId(value["RequestId"].asString());
+/*
+ * 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/dypnsapi/model/TwiceTelVerifyResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dypnsapi;
+using namespace AlibabaCloud::Dypnsapi::Model;
+
+TwiceTelVerifyResult::TwiceTelVerifyResult() :
+	ServiceResult()
+{}
+
+TwiceTelVerifyResult::TwiceTelVerifyResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+TwiceTelVerifyResult::~TwiceTelVerifyResult()
+{}
+
+void TwiceTelVerifyResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
 	auto twiceTelVerifyResultNode = value["TwiceTelVerifyResult"];
 	if(!twiceTelVerifyResultNode["Carrier"].isNull())
 		twiceTelVerifyResult_.carrier = twiceTelVerifyResultNode["Carrier"].asString();
@@ -49,9 +48,9 @@ void TwiceTelVerifyResult::parse(const std::string &payload)
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
-
-}
-
+
+}
+
 std::string TwiceTelVerifyResult::getMessage()const
 {
 	return message_;

+ 52 - 52
dypnsapi/src/model/VerifyMobileRequest.cc

@@ -1,30 +1,30 @@
-/*
- * 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/dypnsapi/model/VerifyMobileRequest.h>
-
-using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
-
-VerifyMobileRequest::VerifyMobileRequest() :
-	RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile")
-{}
-
-VerifyMobileRequest::~VerifyMobileRequest()
-{}
-
+/*
+ * 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/dypnsapi/model/VerifyMobileRequest.h>
+
+using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
+
+VerifyMobileRequest::VerifyMobileRequest() :
+	RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile")
+{}
+
+VerifyMobileRequest::~VerifyMobileRequest()
+{}
+
 long VerifyMobileRequest::getResourceOwnerId()const
 {
 	return resourceOwnerId_;
@@ -36,48 +36,48 @@ void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId)
 	setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
 }
 
-std::string VerifyMobileRequest::getAccessCode()const
+std::string VerifyMobileRequest::getPhoneNumber()const
 {
-	return accessCode_;
+	return phoneNumber_;
 }
 
-void VerifyMobileRequest::setAccessCode(const std::string& accessCode)
+void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber)
 {
-	accessCode_ = accessCode;
-	setCoreParameter("AccessCode", accessCode);
+	phoneNumber_ = phoneNumber;
+	setCoreParameter("PhoneNumber", phoneNumber);
 }
 
-std::string VerifyMobileRequest::getResourceOwnerAccount()const
+std::string VerifyMobileRequest::getAccessKeyId()const
 {
-	return resourceOwnerAccount_;
+	return accessKeyId_;
 }
 
-void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId)
 {
-	resourceOwnerAccount_ = resourceOwnerAccount;
-	setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
+	accessKeyId_ = accessKeyId;
+	setCoreParameter("AccessKeyId", accessKeyId);
 }
 
-std::string VerifyMobileRequest::getPhoneNumber()const
+std::string VerifyMobileRequest::getAccessCode()const
 {
-	return phoneNumber_;
+	return accessCode_;
 }
 
-void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber)
+void VerifyMobileRequest::setAccessCode(const std::string& accessCode)
 {
-	phoneNumber_ = phoneNumber;
-	setCoreParameter("PhoneNumber", phoneNumber);
+	accessCode_ = accessCode;
+	setCoreParameter("AccessCode", accessCode);
 }
 
-std::string VerifyMobileRequest::getOutId()const
+std::string VerifyMobileRequest::getResourceOwnerAccount()const
 {
-	return outId_;
+	return resourceOwnerAccount_;
 }
 
-void VerifyMobileRequest::setOutId(const std::string& outId)
+void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
 {
-	outId_ = outId;
-	setCoreParameter("OutId", outId);
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
 }
 
 long VerifyMobileRequest::getOwnerId()const
@@ -91,14 +91,14 @@ void VerifyMobileRequest::setOwnerId(long ownerId)
 	setCoreParameter("OwnerId", std::to_string(ownerId));
 }
 
-std::string VerifyMobileRequest::getAccessKeyId()const
+std::string VerifyMobileRequest::getOutId()const
 {
-	return accessKeyId_;
+	return outId_;
 }
 
-void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId)
+void VerifyMobileRequest::setOutId(const std::string& outId)
 {
-	accessKeyId_ = accessKeyId;
-	setCoreParameter("AccessKeyId", accessKeyId);
+	outId_ = outId;
+	setCoreParameter("OutId", outId);
 }
 

+ 44 - 45
dypnsapi/src/model/VerifyMobileResult.cc

@@ -1,45 +1,44 @@
-/*
- * 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/dypnsapi/model/VerifyMobileResult.h>
-#include <json/json.h>
-
-using namespace AlibabaCloud::Dypnsapi;
-using namespace AlibabaCloud::Dypnsapi::Model;
-
-VerifyMobileResult::VerifyMobileResult() :
-	ServiceResult()
-{}
-
-VerifyMobileResult::VerifyMobileResult(const std::string &payload) :
-	ServiceResult()
-{
-	parse(payload);
-}
-
-VerifyMobileResult::~VerifyMobileResult()
-{}
-
-void VerifyMobileResult::parse(const std::string &payload)
-{
-	Json::Reader reader;
-	Json::Value value;
-	reader.parse(payload, value);
-
-	setRequestId(value["RequestId"].asString());
+/*
+ * 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/dypnsapi/model/VerifyMobileResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dypnsapi;
+using namespace AlibabaCloud::Dypnsapi::Model;
+
+VerifyMobileResult::VerifyMobileResult() :
+	ServiceResult()
+{}
+
+VerifyMobileResult::VerifyMobileResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+VerifyMobileResult::~VerifyMobileResult()
+{}
+
+void VerifyMobileResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
 	auto gateVerifyResultDTONode = value["GateVerifyResultDTO"];
 	if(!gateVerifyResultDTONode["VerifyId"].isNull())
 		gateVerifyResultDTO_.verifyId = gateVerifyResultDTONode["VerifyId"].asString();
@@ -49,9 +48,9 @@ void VerifyMobileResult::parse(const std::string &payload)
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
-
-}
-
+
+}
+
 VerifyMobileResult::GateVerifyResultDTO VerifyMobileResult::getGateVerifyResultDTO()const
 {
 	return gateVerifyResultDTO_;