diff --git a/CHANGELOG b/CHANGELOG index 4422cab4a..8517c484c 100644 --- a/CHANGELOG +++ b/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`. diff --git a/VERSION b/VERSION index 1282a0739..939b34948 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.112 \ No newline at end of file +1.36.113 \ No newline at end of file diff --git a/dypnsapi/CMakeLists.txt b/dypnsapi/CMakeLists.txt new file mode 100644 index 000000000..ee6aff989 --- /dev/null +++ b/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} + ) \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h new file mode 100644 index 000000000..2d0bdbeb8 --- /dev/null +++ b/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 +#include +#include +#include +#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 CreateVerifySchemeOutcome; + typedef std::future CreateVerifySchemeOutcomeCallable; + typedef std::function&)> CreateVerifySchemeAsyncHandler; + typedef Outcome TwiceTelVerifyOutcome; + typedef std::future TwiceTelVerifyOutcomeCallable; + typedef std::function&)> TwiceTelVerifyAsyncHandler; + typedef Outcome GetMobileOutcome; + typedef std::future GetMobileOutcomeCallable; + typedef std::function&)> GetMobileAsyncHandler; + typedef Outcome VerifyMobileOutcome; + typedef std::future VerifyMobileOutcomeCallable; + typedef std::function&)> VerifyMobileAsyncHandler; + + DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); + DypnsapiClient(const std::shared_ptr &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& 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& 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& 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& context = nullptr) const; + VerifyMobileOutcomeCallable verifyMobileCallable(const Model::VerifyMobileRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DYPNSAPI_DYPNSAPICLIENT_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h index e621a9583..fe17c9854 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h +++ b/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 - -#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 + +#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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h index f57bc864d..6cc247d01 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h +++ b/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 -#include -#include -#include - -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 +#include +#include +#include + +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 getAppName()const; - void setAppName(const std::string& appName); - 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 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 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 appName_; - std::string resourceOwnerAccount_; - std::string schemeName_; std::string bundleId_; + std::string accessKeyId_; + std::string appName_; + std::string packSign_; + std::string packName_; + std::string resourceOwnerAccount_; std::string osType_; long ownerId_; - std::string accessKeyId_; - std::string packSign_; - - }; - } - } -} + std::string schemeName_; + + }; + } + } +} #endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h index 112fe13c8..88ed57019 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h +++ b/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 -#include -#include -#include -#include - -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h index b31721890..493d9d400 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h +++ b/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 -#include -#include -#include - -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h index c0b009095..fee0818b3 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h +++ b/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 -#include -#include -#include -#include - -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h index c97c0c5f5..cefb0fe46 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h +++ b/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 -#include -#include -#include - -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h index 2b7632543..482a54a04 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h +++ b/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 -#include -#include -#include -#include - -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h index de3b7893e..d7474a63d 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h +++ b/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 -#include -#include -#include - -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h index d96f79439..bdc9c24d7 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h +++ b/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 -#include -#include -#include -#include - -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dypnsapi/src/DypnsapiClient.cc b/dypnsapi/src/DypnsapiClient.cc new file mode 100644 index 000000000..fa0cb32df --- /dev/null +++ b/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 +#include + +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(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi"); +} + +DypnsapiClient::DypnsapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(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(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->verifyMobile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dypnsapi/src/model/CreateVerifySchemeRequest.cc b/dypnsapi/src/model/CreateVerifySchemeRequest.cc index 2110ce8dc..6bf03bff1 100644 --- a/dypnsapi/src/model/CreateVerifySchemeRequest.cc +++ b/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 - -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 + +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,6 +69,28 @@ void CreateVerifySchemeRequest::setAppName(const std::string& appName) setCoreParameter("AppName", appName); } +std::string CreateVerifySchemeRequest::getPackSign()const +{ + return packSign_; +} + +void CreateVerifySchemeRequest::setPackSign(const std::string& packSign) +{ + packSign_ = packSign; + setCoreParameter("PackSign", packSign); +} + +std::string CreateVerifySchemeRequest::getPackName()const +{ + return packName_; +} + +void CreateVerifySchemeRequest::setPackName(const std::string& packName) +{ + packName_ = packName; + setCoreParameter("PackName", packName); +} + std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -69,28 +102,6 @@ void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resou setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string CreateVerifySchemeRequest::getSchemeName()const -{ - return schemeName_; -} - -void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName) -{ - schemeName_ = schemeName; - setCoreParameter("SchemeName", schemeName); -} - -std::string CreateVerifySchemeRequest::getBundleId()const -{ - return bundleId_; -} - -void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId) -{ - bundleId_ = bundleId; - setCoreParameter("BundleId", bundleId); -} - std::string CreateVerifySchemeRequest::getOsType()const { return osType_; @@ -113,25 +124,14 @@ void CreateVerifySchemeRequest::setOwnerId(long ownerId) setCoreParameter("OwnerId", std::to_string(ownerId)); } -std::string CreateVerifySchemeRequest::getAccessKeyId()const +std::string CreateVerifySchemeRequest::getSchemeName()const { - return accessKeyId_; + return schemeName_; } -void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId) +void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName) { - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string CreateVerifySchemeRequest::getPackSign()const -{ - return packSign_; -} - -void CreateVerifySchemeRequest::setPackSign(const std::string& packSign) -{ - packSign_ = packSign; - setCoreParameter("PackSign", packSign); + schemeName_ = schemeName; + setCoreParameter("SchemeName", schemeName); } diff --git a/dypnsapi/src/model/CreateVerifySchemeResult.cc b/dypnsapi/src/model/CreateVerifySchemeResult.cc index a70de99b9..816a1ad96 100644 --- a/dypnsapi/src/model/CreateVerifySchemeResult.cc +++ b/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 -#include - -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 +#include + +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_; diff --git a/dypnsapi/src/model/GetMobileRequest.cc b/dypnsapi/src/model/GetMobileRequest.cc index f07d1e3e0..05ca787fa 100644 --- a/dypnsapi/src/model/GetMobileRequest.cc +++ b/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 - -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 + +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); +} + diff --git a/dypnsapi/src/model/GetMobileResult.cc b/dypnsapi/src/model/GetMobileResult.cc index db0cbdeb0..174eeae2f 100644 --- a/dypnsapi/src/model/GetMobileResult.cc +++ b/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 -#include - -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 +#include + +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_; diff --git a/dypnsapi/src/model/TwiceTelVerifyRequest.cc b/dypnsapi/src/model/TwiceTelVerifyRequest.cc index 363aab7a0..bc333eac0 100644 --- a/dypnsapi/src/model/TwiceTelVerifyRequest.cc +++ b/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 - -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 + +using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest; + +TwiceTelVerifyRequest::TwiceTelVerifyRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify") +{} + +TwiceTelVerifyRequest::~TwiceTelVerifyRequest() +{} + long TwiceTelVerifyRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/dypnsapi/src/model/TwiceTelVerifyResult.cc b/dypnsapi/src/model/TwiceTelVerifyResult.cc index d7fd2c30b..bfaf49ead 100644 --- a/dypnsapi/src/model/TwiceTelVerifyResult.cc +++ b/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 -#include - -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 +#include + +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_; diff --git a/dypnsapi/src/model/VerifyMobileRequest.cc b/dypnsapi/src/model/VerifyMobileRequest.cc index 58cb9466f..f80ac3356 100644 --- a/dypnsapi/src/model/VerifyMobileRequest.cc +++ b/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 - -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 + +using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest; + +VerifyMobileRequest::VerifyMobileRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile") +{} + +VerifyMobileRequest::~VerifyMobileRequest() +{} + long VerifyMobileRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -36,6 +36,28 @@ void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId) setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string VerifyMobileRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setCoreParameter("PhoneNumber", phoneNumber); +} + +std::string VerifyMobileRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + std::string VerifyMobileRequest::getAccessCode()const { return accessCode_; @@ -58,15 +80,15 @@ void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwn setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string VerifyMobileRequest::getPhoneNumber()const +long VerifyMobileRequest::getOwnerId()const { - return phoneNumber_; + return ownerId_; } -void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber) +void VerifyMobileRequest::setOwnerId(long ownerId) { - phoneNumber_ = phoneNumber; - setCoreParameter("PhoneNumber", phoneNumber); + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); } std::string VerifyMobileRequest::getOutId()const @@ -80,25 +102,3 @@ void VerifyMobileRequest::setOutId(const std::string& outId) setCoreParameter("OutId", outId); } -long VerifyMobileRequest::getOwnerId()const -{ - return ownerId_; -} - -void VerifyMobileRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string VerifyMobileRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - diff --git a/dypnsapi/src/model/VerifyMobileResult.cc b/dypnsapi/src/model/VerifyMobileResult.cc index 0d83f860f..44a1d7441 100644 --- a/dypnsapi/src/model/VerifyMobileResult.cc +++ b/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 -#include - -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 +#include + +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_;