From 1b0819437fd2c2dffb9026905dfcb920446aa949 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 21 Sep 2022 03:14:17 +0000 Subject: [PATCH] Automatically generate sdk tasks. --- VERSION | 2 +- dytnsapi/CMakeLists.txt | 150 ++++ .../alibabacloud/dytnsapi/DytnsapiClient.h | 182 +++++ .../alibabacloud/dytnsapi/DytnsapiExport.h | 32 + .../model/DescribeEmptyNumberDetectRequest.h | 60 ++ .../model/DescribeEmptyNumberDetectResult.h | 60 ++ .../DescribePhoneNumberAnalysisRequest.h | 69 ++ .../model/DescribePhoneNumberAnalysisResult.h | 60 ++ .../DescribePhoneNumberAttributeRequest.h | 54 ++ .../DescribePhoneNumberAttributeResult.h | 64 ++ .../DescribePhoneNumberOnlineTimeRequest.h | 66 ++ .../DescribePhoneNumberOnlineTimeResult.h | 59 ++ ...cribePhoneNumberOperatorAttributeRequest.h | 66 ++ ...scribePhoneNumberOperatorAttributeResult.h | 64 ++ .../model/DescribePhoneNumberResaleRequest.h | 57 ++ .../model/DescribePhoneNumberResaleResult.h | 60 ++ .../model/DescribePhoneNumberStatusRequest.h | 54 ++ .../model/DescribePhoneNumberStatusResult.h | 61 ++ .../DescribePhoneTwiceTelVerifyRequest.h | 72 ++ .../model/DescribePhoneTwiceTelVerifyResult.h | 60 ++ .../model/InvalidPhoneNumberFilterRequest.h | 60 ++ .../model/InvalidPhoneNumberFilterResult.h | 62 ++ .../model/PhoneNumberEncryptRequest.h | 60 ++ .../dytnsapi/model/PhoneNumberEncryptResult.h | 61 ++ .../PhoneNumberStatusForAccountRequest.h | 69 ++ .../model/PhoneNumberStatusForAccountResult.h | 60 ++ .../model/PhoneNumberStatusForRealRequest.h | 69 ++ .../model/PhoneNumberStatusForRealResult.h | 60 ++ .../model/PhoneNumberStatusForSmsRequest.h | 69 ++ .../model/PhoneNumberStatusForSmsResult.h | 60 ++ .../PhoneNumberStatusForVirtualRequest.h | 69 ++ .../model/PhoneNumberStatusForVirtualResult.h | 59 ++ .../model/PhoneNumberStatusForVoiceRequest.h | 69 ++ .../model/PhoneNumberStatusForVoiceResult.h | 60 ++ .../model/ThreeElementsVerificationRequest.h | 72 ++ .../model/ThreeElementsVerificationResult.h | 60 ++ .../model/TwoElementsVerificationRequest.h | 72 ++ .../model/TwoElementsVerificationResult.h | 60 ++ dytnsapi/src/DytnsapiClient.cc | 665 ++++++++++++++++++ .../model/DescribeEmptyNumberDetectRequest.cc | 90 +++ .../model/DescribeEmptyNumberDetectResult.cc | 73 ++ .../DescribePhoneNumberAnalysisRequest.cc | 117 +++ .../DescribePhoneNumberAnalysisResult.cc | 73 ++ .../DescribePhoneNumberAttributeRequest.cc | 72 ++ .../DescribePhoneNumberAttributeResult.cc | 76 ++ .../DescribePhoneNumberOnlineTimeRequest.cc | 108 +++ .../DescribePhoneNumberOnlineTimeResult.cc | 66 ++ ...ribePhoneNumberOperatorAttributeRequest.cc | 108 +++ ...cribePhoneNumberOperatorAttributeResult.cc | 76 ++ .../model/DescribePhoneNumberResaleRequest.cc | 81 +++ .../model/DescribePhoneNumberResaleResult.cc | 68 ++ .../model/DescribePhoneNumberStatusRequest.cc | 72 ++ .../model/DescribePhoneNumberStatusResult.cc | 70 ++ .../DescribePhoneTwiceTelVerifyRequest.cc | 126 ++++ .../DescribePhoneTwiceTelVerifyResult.cc | 68 ++ .../model/InvalidPhoneNumberFilterRequest.cc | 90 +++ .../model/InvalidPhoneNumberFilterResult.cc | 77 ++ .../src/model/PhoneNumberEncryptRequest.cc | 90 +++ .../src/model/PhoneNumberEncryptResult.cc | 75 ++ .../PhoneNumberStatusForAccountRequest.cc | 117 +++ .../PhoneNumberStatusForAccountResult.cc | 68 ++ .../model/PhoneNumberStatusForRealRequest.cc | 117 +++ .../model/PhoneNumberStatusForRealResult.cc | 68 ++ .../model/PhoneNumberStatusForSmsRequest.cc | 117 +++ .../model/PhoneNumberStatusForSmsResult.cc | 68 ++ .../PhoneNumberStatusForVirtualRequest.cc | 117 +++ .../PhoneNumberStatusForVirtualResult.cc | 66 ++ .../model/PhoneNumberStatusForVoiceRequest.cc | 117 +++ .../model/PhoneNumberStatusForVoiceResult.cc | 68 ++ .../model/ThreeElementsVerificationRequest.cc | 126 ++++ .../model/ThreeElementsVerificationResult.cc | 68 ++ .../model/TwoElementsVerificationRequest.cc | 126 ++++ .../model/TwoElementsVerificationResult.cc | 68 ++ 73 files changed, 6154 insertions(+), 1 deletion(-) create mode 100644 dytnsapi/CMakeLists.txt create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h create mode 100644 dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h create mode 100644 dytnsapi/src/DytnsapiClient.cc create mode 100644 dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc create mode 100644 dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberOperatorAttributeRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberOperatorAttributeResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberResaleResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneNumberStatusResult.cc create mode 100644 dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc create mode 100644 dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc create mode 100644 dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc create mode 100644 dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberEncryptRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberEncryptResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForRealResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc create mode 100644 dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc create mode 100644 dytnsapi/src/model/ThreeElementsVerificationRequest.cc create mode 100644 dytnsapi/src/model/ThreeElementsVerificationResult.cc create mode 100644 dytnsapi/src/model/TwoElementsVerificationRequest.cc create mode 100644 dytnsapi/src/model/TwoElementsVerificationResult.cc diff --git a/VERSION b/VERSION index 161018b15..332128b18 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1270 \ No newline at end of file +1.36.1271 \ No newline at end of file diff --git a/dytnsapi/CMakeLists.txt b/dytnsapi/CMakeLists.txt new file mode 100644 index 000000000..5c0babc37 --- /dev/null +++ b/dytnsapi/CMakeLists.txt @@ -0,0 +1,150 @@ +# +# 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(dytnsapi_public_header + include/alibabacloud/dytnsapi/DytnsapiClient.h + include/alibabacloud/dytnsapi/DytnsapiExport.h ) + +set(dytnsapi_public_header_model + include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h + include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h + include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h + include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h + include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h + include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h + include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h + include/alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h + include/alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h + include/alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h + include/alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h ) + +set(dytnsapi_src + src/DytnsapiClient.cc + src/model/DescribeEmptyNumberDetectRequest.cc + src/model/DescribeEmptyNumberDetectResult.cc + src/model/DescribePhoneNumberAnalysisRequest.cc + src/model/DescribePhoneNumberAnalysisResult.cc + src/model/DescribePhoneNumberAttributeRequest.cc + src/model/DescribePhoneNumberAttributeResult.cc + src/model/DescribePhoneNumberOnlineTimeRequest.cc + src/model/DescribePhoneNumberOnlineTimeResult.cc + src/model/DescribePhoneNumberOperatorAttributeRequest.cc + src/model/DescribePhoneNumberOperatorAttributeResult.cc + src/model/DescribePhoneNumberResaleRequest.cc + src/model/DescribePhoneNumberResaleResult.cc + src/model/DescribePhoneNumberStatusRequest.cc + src/model/DescribePhoneNumberStatusResult.cc + src/model/DescribePhoneTwiceTelVerifyRequest.cc + src/model/DescribePhoneTwiceTelVerifyResult.cc + src/model/InvalidPhoneNumberFilterRequest.cc + src/model/InvalidPhoneNumberFilterResult.cc + src/model/PhoneNumberEncryptRequest.cc + src/model/PhoneNumberEncryptResult.cc + src/model/PhoneNumberStatusForAccountRequest.cc + src/model/PhoneNumberStatusForAccountResult.cc + src/model/PhoneNumberStatusForRealRequest.cc + src/model/PhoneNumberStatusForRealResult.cc + src/model/PhoneNumberStatusForSmsRequest.cc + src/model/PhoneNumberStatusForSmsResult.cc + src/model/PhoneNumberStatusForVirtualRequest.cc + src/model/PhoneNumberStatusForVirtualResult.cc + src/model/PhoneNumberStatusForVoiceRequest.cc + src/model/PhoneNumberStatusForVoiceResult.cc + src/model/ThreeElementsVerificationRequest.cc + src/model/ThreeElementsVerificationResult.cc + src/model/TwoElementsVerificationRequest.cc + src/model/TwoElementsVerificationResult.cc ) + +add_library(dytnsapi ${LIB_TYPE} + ${dytnsapi_public_header} + ${dytnsapi_public_header_model} + ${dytnsapi_src}) + +set_target_properties(dytnsapi + 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}dytnsapi + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(dytnsapi + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DYTNSAPI_LIBRARY) +endif() + +target_include_directories(dytnsapi + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(dytnsapi + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(dytnsapi + jsoncpp) + target_include_directories(dytnsapi + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(dytnsapi + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(dytnsapi + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(dytnsapi + PRIVATE /usr/include/jsoncpp) + target_link_libraries(dytnsapi + jsoncpp) +endif() + +install(FILES ${dytnsapi_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dytnsapi) +install(FILES ${dytnsapi_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dytnsapi/model) +install(TARGETS dytnsapi + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h b/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h new file mode 100644 index 000000000..a643312fa --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h @@ -0,0 +1,182 @@ +/* + * 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_DYTNSAPI_DYTNSAPICLIENT_H_ +#define ALIBABACLOUD_DYTNSAPI_DYTNSAPICLIENT_H_ + +#include +#include +#include +#include +#include "DytnsapiExport.h" +#include "model/DescribeEmptyNumberDetectRequest.h" +#include "model/DescribeEmptyNumberDetectResult.h" +#include "model/DescribePhoneNumberAnalysisRequest.h" +#include "model/DescribePhoneNumberAnalysisResult.h" +#include "model/DescribePhoneNumberAttributeRequest.h" +#include "model/DescribePhoneNumberAttributeResult.h" +#include "model/DescribePhoneNumberOnlineTimeRequest.h" +#include "model/DescribePhoneNumberOnlineTimeResult.h" +#include "model/DescribePhoneNumberOperatorAttributeRequest.h" +#include "model/DescribePhoneNumberOperatorAttributeResult.h" +#include "model/DescribePhoneNumberResaleRequest.h" +#include "model/DescribePhoneNumberResaleResult.h" +#include "model/DescribePhoneNumberStatusRequest.h" +#include "model/DescribePhoneNumberStatusResult.h" +#include "model/DescribePhoneTwiceTelVerifyRequest.h" +#include "model/DescribePhoneTwiceTelVerifyResult.h" +#include "model/InvalidPhoneNumberFilterRequest.h" +#include "model/InvalidPhoneNumberFilterResult.h" +#include "model/PhoneNumberEncryptRequest.h" +#include "model/PhoneNumberEncryptResult.h" +#include "model/PhoneNumberStatusForAccountRequest.h" +#include "model/PhoneNumberStatusForAccountResult.h" +#include "model/PhoneNumberStatusForRealRequest.h" +#include "model/PhoneNumberStatusForRealResult.h" +#include "model/PhoneNumberStatusForSmsRequest.h" +#include "model/PhoneNumberStatusForSmsResult.h" +#include "model/PhoneNumberStatusForVirtualRequest.h" +#include "model/PhoneNumberStatusForVirtualResult.h" +#include "model/PhoneNumberStatusForVoiceRequest.h" +#include "model/PhoneNumberStatusForVoiceResult.h" +#include "model/ThreeElementsVerificationRequest.h" +#include "model/ThreeElementsVerificationResult.h" +#include "model/TwoElementsVerificationRequest.h" +#include "model/TwoElementsVerificationResult.h" + + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DytnsapiClient : public RpcServiceClient + { + public: + typedef Outcome DescribeEmptyNumberDetectOutcome; + typedef std::future DescribeEmptyNumberDetectOutcomeCallable; + typedef std::function&)> DescribeEmptyNumberDetectAsyncHandler; + typedef Outcome DescribePhoneNumberAnalysisOutcome; + typedef std::future DescribePhoneNumberAnalysisOutcomeCallable; + typedef std::function&)> DescribePhoneNumberAnalysisAsyncHandler; + typedef Outcome DescribePhoneNumberAttributeOutcome; + typedef std::future DescribePhoneNumberAttributeOutcomeCallable; + typedef std::function&)> DescribePhoneNumberAttributeAsyncHandler; + typedef Outcome DescribePhoneNumberOnlineTimeOutcome; + typedef std::future DescribePhoneNumberOnlineTimeOutcomeCallable; + typedef std::function&)> DescribePhoneNumberOnlineTimeAsyncHandler; + typedef Outcome DescribePhoneNumberOperatorAttributeOutcome; + typedef std::future DescribePhoneNumberOperatorAttributeOutcomeCallable; + typedef std::function&)> DescribePhoneNumberOperatorAttributeAsyncHandler; + typedef Outcome DescribePhoneNumberResaleOutcome; + typedef std::future DescribePhoneNumberResaleOutcomeCallable; + typedef std::function&)> DescribePhoneNumberResaleAsyncHandler; + typedef Outcome DescribePhoneNumberStatusOutcome; + typedef std::future DescribePhoneNumberStatusOutcomeCallable; + typedef std::function&)> DescribePhoneNumberStatusAsyncHandler; + typedef Outcome DescribePhoneTwiceTelVerifyOutcome; + typedef std::future DescribePhoneTwiceTelVerifyOutcomeCallable; + typedef std::function&)> DescribePhoneTwiceTelVerifyAsyncHandler; + typedef Outcome InvalidPhoneNumberFilterOutcome; + typedef std::future InvalidPhoneNumberFilterOutcomeCallable; + typedef std::function&)> InvalidPhoneNumberFilterAsyncHandler; + typedef Outcome PhoneNumberEncryptOutcome; + typedef std::future PhoneNumberEncryptOutcomeCallable; + typedef std::function&)> PhoneNumberEncryptAsyncHandler; + typedef Outcome PhoneNumberStatusForAccountOutcome; + typedef std::future PhoneNumberStatusForAccountOutcomeCallable; + typedef std::function&)> PhoneNumberStatusForAccountAsyncHandler; + typedef Outcome PhoneNumberStatusForRealOutcome; + typedef std::future PhoneNumberStatusForRealOutcomeCallable; + typedef std::function&)> PhoneNumberStatusForRealAsyncHandler; + typedef Outcome PhoneNumberStatusForSmsOutcome; + typedef std::future PhoneNumberStatusForSmsOutcomeCallable; + typedef std::function&)> PhoneNumberStatusForSmsAsyncHandler; + typedef Outcome PhoneNumberStatusForVirtualOutcome; + typedef std::future PhoneNumberStatusForVirtualOutcomeCallable; + typedef std::function&)> PhoneNumberStatusForVirtualAsyncHandler; + typedef Outcome PhoneNumberStatusForVoiceOutcome; + typedef std::future PhoneNumberStatusForVoiceOutcomeCallable; + typedef std::function&)> PhoneNumberStatusForVoiceAsyncHandler; + typedef Outcome ThreeElementsVerificationOutcome; + typedef std::future ThreeElementsVerificationOutcomeCallable; + typedef std::function&)> ThreeElementsVerificationAsyncHandler; + typedef Outcome TwoElementsVerificationOutcome; + typedef std::future TwoElementsVerificationOutcomeCallable; + typedef std::function&)> TwoElementsVerificationAsyncHandler; + + DytnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); + DytnsapiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + DytnsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~DytnsapiClient(); + DescribeEmptyNumberDetectOutcome describeEmptyNumberDetect(const Model::DescribeEmptyNumberDetectRequest &request)const; + void describeEmptyNumberDetectAsync(const Model::DescribeEmptyNumberDetectRequest& request, const DescribeEmptyNumberDetectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEmptyNumberDetectOutcomeCallable describeEmptyNumberDetectCallable(const Model::DescribeEmptyNumberDetectRequest& request) const; + DescribePhoneNumberAnalysisOutcome describePhoneNumberAnalysis(const Model::DescribePhoneNumberAnalysisRequest &request)const; + void describePhoneNumberAnalysisAsync(const Model::DescribePhoneNumberAnalysisRequest& request, const DescribePhoneNumberAnalysisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberAnalysisOutcomeCallable describePhoneNumberAnalysisCallable(const Model::DescribePhoneNumberAnalysisRequest& request) const; + DescribePhoneNumberAttributeOutcome describePhoneNumberAttribute(const Model::DescribePhoneNumberAttributeRequest &request)const; + void describePhoneNumberAttributeAsync(const Model::DescribePhoneNumberAttributeRequest& request, const DescribePhoneNumberAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberAttributeOutcomeCallable describePhoneNumberAttributeCallable(const Model::DescribePhoneNumberAttributeRequest& request) const; + DescribePhoneNumberOnlineTimeOutcome describePhoneNumberOnlineTime(const Model::DescribePhoneNumberOnlineTimeRequest &request)const; + void describePhoneNumberOnlineTimeAsync(const Model::DescribePhoneNumberOnlineTimeRequest& request, const DescribePhoneNumberOnlineTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberOnlineTimeOutcomeCallable describePhoneNumberOnlineTimeCallable(const Model::DescribePhoneNumberOnlineTimeRequest& request) const; + DescribePhoneNumberOperatorAttributeOutcome describePhoneNumberOperatorAttribute(const Model::DescribePhoneNumberOperatorAttributeRequest &request)const; + void describePhoneNumberOperatorAttributeAsync(const Model::DescribePhoneNumberOperatorAttributeRequest& request, const DescribePhoneNumberOperatorAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberOperatorAttributeOutcomeCallable describePhoneNumberOperatorAttributeCallable(const Model::DescribePhoneNumberOperatorAttributeRequest& request) const; + DescribePhoneNumberResaleOutcome describePhoneNumberResale(const Model::DescribePhoneNumberResaleRequest &request)const; + void describePhoneNumberResaleAsync(const Model::DescribePhoneNumberResaleRequest& request, const DescribePhoneNumberResaleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberResaleOutcomeCallable describePhoneNumberResaleCallable(const Model::DescribePhoneNumberResaleRequest& request) const; + DescribePhoneNumberStatusOutcome describePhoneNumberStatus(const Model::DescribePhoneNumberStatusRequest &request)const; + void describePhoneNumberStatusAsync(const Model::DescribePhoneNumberStatusRequest& request, const DescribePhoneNumberStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneNumberStatusOutcomeCallable describePhoneNumberStatusCallable(const Model::DescribePhoneNumberStatusRequest& request) const; + DescribePhoneTwiceTelVerifyOutcome describePhoneTwiceTelVerify(const Model::DescribePhoneTwiceTelVerifyRequest &request)const; + void describePhoneTwiceTelVerifyAsync(const Model::DescribePhoneTwiceTelVerifyRequest& request, const DescribePhoneTwiceTelVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePhoneTwiceTelVerifyOutcomeCallable describePhoneTwiceTelVerifyCallable(const Model::DescribePhoneTwiceTelVerifyRequest& request) const; + InvalidPhoneNumberFilterOutcome invalidPhoneNumberFilter(const Model::InvalidPhoneNumberFilterRequest &request)const; + void invalidPhoneNumberFilterAsync(const Model::InvalidPhoneNumberFilterRequest& request, const InvalidPhoneNumberFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvalidPhoneNumberFilterOutcomeCallable invalidPhoneNumberFilterCallable(const Model::InvalidPhoneNumberFilterRequest& request) const; + PhoneNumberEncryptOutcome phoneNumberEncrypt(const Model::PhoneNumberEncryptRequest &request)const; + void phoneNumberEncryptAsync(const Model::PhoneNumberEncryptRequest& request, const PhoneNumberEncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberEncryptOutcomeCallable phoneNumberEncryptCallable(const Model::PhoneNumberEncryptRequest& request) const; + PhoneNumberStatusForAccountOutcome phoneNumberStatusForAccount(const Model::PhoneNumberStatusForAccountRequest &request)const; + void phoneNumberStatusForAccountAsync(const Model::PhoneNumberStatusForAccountRequest& request, const PhoneNumberStatusForAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberStatusForAccountOutcomeCallable phoneNumberStatusForAccountCallable(const Model::PhoneNumberStatusForAccountRequest& request) const; + PhoneNumberStatusForRealOutcome phoneNumberStatusForReal(const Model::PhoneNumberStatusForRealRequest &request)const; + void phoneNumberStatusForRealAsync(const Model::PhoneNumberStatusForRealRequest& request, const PhoneNumberStatusForRealAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberStatusForRealOutcomeCallable phoneNumberStatusForRealCallable(const Model::PhoneNumberStatusForRealRequest& request) const; + PhoneNumberStatusForSmsOutcome phoneNumberStatusForSms(const Model::PhoneNumberStatusForSmsRequest &request)const; + void phoneNumberStatusForSmsAsync(const Model::PhoneNumberStatusForSmsRequest& request, const PhoneNumberStatusForSmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberStatusForSmsOutcomeCallable phoneNumberStatusForSmsCallable(const Model::PhoneNumberStatusForSmsRequest& request) const; + PhoneNumberStatusForVirtualOutcome phoneNumberStatusForVirtual(const Model::PhoneNumberStatusForVirtualRequest &request)const; + void phoneNumberStatusForVirtualAsync(const Model::PhoneNumberStatusForVirtualRequest& request, const PhoneNumberStatusForVirtualAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberStatusForVirtualOutcomeCallable phoneNumberStatusForVirtualCallable(const Model::PhoneNumberStatusForVirtualRequest& request) const; + PhoneNumberStatusForVoiceOutcome phoneNumberStatusForVoice(const Model::PhoneNumberStatusForVoiceRequest &request)const; + void phoneNumberStatusForVoiceAsync(const Model::PhoneNumberStatusForVoiceRequest& request, const PhoneNumberStatusForVoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhoneNumberStatusForVoiceOutcomeCallable phoneNumberStatusForVoiceCallable(const Model::PhoneNumberStatusForVoiceRequest& request) const; + ThreeElementsVerificationOutcome threeElementsVerification(const Model::ThreeElementsVerificationRequest &request)const; + void threeElementsVerificationAsync(const Model::ThreeElementsVerificationRequest& request, const ThreeElementsVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ThreeElementsVerificationOutcomeCallable threeElementsVerificationCallable(const Model::ThreeElementsVerificationRequest& request) const; + TwoElementsVerificationOutcome twoElementsVerification(const Model::TwoElementsVerificationRequest &request)const; + void twoElementsVerificationAsync(const Model::TwoElementsVerificationRequest& request, const TwoElementsVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TwoElementsVerificationOutcomeCallable twoElementsVerificationCallable(const Model::TwoElementsVerificationRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DYTNSAPI_DYTNSAPICLIENT_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h b/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h new file mode 100644 index 000000000..973ae3dbc --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h @@ -0,0 +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_DYTNSAPI_DYTNSAPIEXPORT_H_ +#define ALIBABACLOUD_DYTNSAPI_DYTNSAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DYTNSAPI_LIBRARY) +# define ALIBABACLOUD_DYTNSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DYTNSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DYTNSAPI_EXPORT +#endif + +#endif // !ALIBABACLOUD_DYTNSAPI_DYTNSAPIEXPORT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h new file mode 100644 index 000000000..b8dce6105 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribeEmptyNumberDetectRequest : public RpcServiceRequest { +public: + DescribeEmptyNumberDetectRequest(); + ~DescribeEmptyNumberDetectRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEncryptType() const; + void setEncryptType(const std::string &encryptType); + std::string getOfferType() const; + void setOfferType(const std::string &offerType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPhone() const; + void setPhone(const std::string &phone); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string encryptType_; + std::string offerType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string phone_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h new file mode 100644 index 000000000..b213f5cf1 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribeEmptyNumberDetectResult : public ServiceResult + { + public: + struct DataList + { + std::string status; + std::string number; + }; + + + DescribeEmptyNumberDetectResult(); + explicit DescribeEmptyNumberDetectResult(const std::string &payload); + ~DescribeEmptyNumberDetectResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h new file mode 100644 index 000000000..c5a9bfdd0 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAnalysisRequest : public RpcServiceRequest { +public: + DescribePhoneNumberAnalysisRequest(); + ~DescribePhoneNumberAnalysisRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getRate() const; + void setRate(long rate); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getOfferType() const; + void setOfferType(const std::string &offerType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getNumberType() const; + void setNumberType(int numberType); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + long rate_; + std::string mask_; + std::string offerType_; + std::string resourceOwnerAccount_; + long ownerId_; + int numberType_; + std::string authCode_; + std::string inputNumber_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h new file mode 100644 index 000000000..4fe21ff93 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAnalysisResult : public ServiceResult + { + public: + struct DataList + { + std::string number; + std::string code; + }; + + + DescribePhoneNumberAnalysisResult(); + explicit DescribePhoneNumberAnalysisResult(const std::string &payload); + ~DescribePhoneNumberAnalysisResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h new file mode 100644 index 000000000..2b627711c --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAttributeRequest : public RpcServiceRequest { +public: + DescribePhoneNumberAttributeRequest(); + ~DescribePhoneNumberAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h new file mode 100644 index 000000000..90facf696 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h @@ -0,0 +1,64 @@ +/* + * 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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAttributeResult : public ServiceResult + { + public: + struct PhoneNumberAttribute + { + std::string basicCarrier; + long numberSegment; + bool isNumberPortability; + std::string carrier; + std::string city; + std::string province; + }; + + + DescribePhoneNumberAttributeResult(); + explicit DescribePhoneNumberAttributeResult(const std::string &payload); + ~DescribePhoneNumberAttributeResult(); + std::string getMessage()const; + PhoneNumberAttribute getPhoneNumberAttribute()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PhoneNumberAttribute phoneNumberAttribute_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h new file mode 100644 index 000000000..c372fde72 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h @@ -0,0 +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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMEREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberOnlineTimeRequest : public RpcServiceRequest { +public: + DescribePhoneNumberOnlineTimeRequest(); + ~DescribePhoneNumberOnlineTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getOfferType() const; + void setOfferType(const std::string &offerType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getCarrier() const; + void setCarrier(const std::string &carrier); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string offerType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string carrier_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMEREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h new file mode 100644 index 000000000..708ba1cc9 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h @@ -0,0 +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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMERESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberOnlineTimeResult : public ServiceResult + { + public: + struct Data + { + std::string verifyResult; + }; + + + DescribePhoneNumberOnlineTimeResult(); + explicit DescribePhoneNumberOnlineTimeResult(const std::string &payload); + ~DescribePhoneNumberOnlineTimeResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERONLINETIMERESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h new file mode 100644 index 000000000..686ad8621 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h @@ -0,0 +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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberOperatorAttributeRequest : public RpcServiceRequest { +public: + DescribePhoneNumberOperatorAttributeRequest(); + ~DescribePhoneNumberOperatorAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTEREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h new file mode 100644 index 000000000..3fe934e78 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h @@ -0,0 +1,64 @@ +/* + * 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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTERESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberOperatorAttributeResult : public ServiceResult + { + public: + struct Data + { + std::string basicCarrier; + long numberSegment; + bool isNumberPortability; + std::string carrier; + std::string city; + std::string province; + }; + + + DescribePhoneNumberOperatorAttributeResult(); + explicit DescribePhoneNumberOperatorAttributeResult(const std::string &payload); + ~DescribePhoneNumberOperatorAttributeResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBEROPERATORATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h new file mode 100644 index 000000000..3188b201a --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberResaleRequest : public RpcServiceRequest { +public: + DescribePhoneNumberResaleRequest(); + ~DescribePhoneNumberResaleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSince() const; + void setSince(const std::string &since); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + long ownerId_; + std::string accessKeyId_; + std::string since_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h new file mode 100644 index 000000000..9c5c4af61 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberResaleResult : public ServiceResult + { + public: + struct TwiceTelVerify + { + std::string carrier; + int verifyResult; + }; + + + DescribePhoneNumberResaleResult(); + explicit DescribePhoneNumberResaleResult(const std::string &payload); + ~DescribePhoneNumberResaleResult(); + std::string getMessage()const; + TwiceTelVerify getTwiceTelVerify()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + TwiceTelVerify twiceTelVerify_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h new file mode 100644 index 000000000..d70bd8821 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberStatusRequest : public RpcServiceRequest { +public: + DescribePhoneNumberStatusRequest(); + ~DescribePhoneNumberStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h new file mode 100644 index 000000000..9b647e273 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h @@ -0,0 +1,61 @@ +/* + * 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_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberStatusResult : public ServiceResult + { + public: + struct PhoneStatus + { + std::string status; + std::string serialId; + std::string carrier; + }; + + + DescribePhoneNumberStatusResult(); + explicit DescribePhoneNumberStatusResult(const std::string &payload); + ~DescribePhoneNumberStatusResult(); + PhoneStatus getPhoneStatus()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + PhoneStatus phoneStatus_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h new file mode 100644 index 000000000..8112c7313 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneTwiceTelVerifyRequest : public RpcServiceRequest { +public: + DescribePhoneTwiceTelVerifyRequest(); + ~DescribePhoneTwiceTelVerifyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getOfferType() const; + void setOfferType(const std::string &offerType); + int getResultCount() const; + void setResultCount(int resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string mask_; + std::string offerType_; + int resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h new file mode 100644 index 000000000..cc3cff0df --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneTwiceTelVerifyResult : public ServiceResult + { + public: + struct Data + { + std::string carrier; + std::string verifyResult; + }; + + + DescribePhoneTwiceTelVerifyResult(); + explicit DescribePhoneTwiceTelVerifyResult(const std::string &payload); + ~DescribePhoneTwiceTelVerifyResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONETWICETELVERIFYRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h new file mode 100644 index 000000000..aa1add0fd --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT InvalidPhoneNumberFilterRequest : public RpcServiceRequest { +public: + InvalidPhoneNumberFilterRequest(); + ~InvalidPhoneNumberFilterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h new file mode 100644 index 000000000..41502658d --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h @@ -0,0 +1,62 @@ +/* + * 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_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT InvalidPhoneNumberFilterResult : public ServiceResult + { + public: + struct DataItem + { + std::string originalNumber; + std::string encryptedNumber; + std::string expireTime; + std::string code; + }; + + + InvalidPhoneNumberFilterResult(); + explicit InvalidPhoneNumberFilterResult(const std::string &payload); + ~InvalidPhoneNumberFilterResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h new file mode 100644 index 000000000..5fd9a3810 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberEncryptRequest : public RpcServiceRequest { +public: + PhoneNumberEncryptRequest(); + ~PhoneNumberEncryptRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h new file mode 100644 index 000000000..00ac35027 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h @@ -0,0 +1,61 @@ +/* + * 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_DYTNSAPI_MODEL_PHONENUMBERENCRYPTRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberEncryptResult : public ServiceResult + { + public: + struct DataItem + { + std::string originalNumber; + std::string encryptedNumber; + std::string expireTime; + }; + + + PhoneNumberEncryptResult(); + explicit PhoneNumberEncryptResult(const std::string &payload); + ~PhoneNumberEncryptResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h new file mode 100644 index 000000000..75d386055 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForAccountRequest : public RpcServiceRequest { +public: + PhoneNumberStatusForAccountRequest(); + ~PhoneNumberStatusForAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + std::string getPhoneStatusSceneCode() const; + void setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; + std::string phoneStatusSceneCode_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h new file mode 100644 index 000000000..1dbfc678b --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForAccountResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string carrier; + }; + + + PhoneNumberStatusForAccountResult(); + explicit PhoneNumberStatusForAccountResult(const std::string &payload); + ~PhoneNumberStatusForAccountResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORACCOUNTRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h new file mode 100644 index 000000000..8f595eb19 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForRealRequest : public RpcServiceRequest { +public: + PhoneNumberStatusForRealRequest(); + ~PhoneNumberStatusForRealRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + std::string getPhoneStatusSceneCode() const; + void setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; + std::string phoneStatusSceneCode_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h new file mode 100644 index 000000000..8fc0c6cae --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForRealResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string carrier; + }; + + + PhoneNumberStatusForRealResult(); + explicit PhoneNumberStatusForRealResult(const std::string &payload); + ~PhoneNumberStatusForRealResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORREALRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h new file mode 100644 index 000000000..0d9edbcd7 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForSmsRequest : public RpcServiceRequest { +public: + PhoneNumberStatusForSmsRequest(); + ~PhoneNumberStatusForSmsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + std::string getPhoneStatusSceneCode() const; + void setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; + std::string phoneStatusSceneCode_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h new file mode 100644 index 000000000..fbac8fedb --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForSmsResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string carrier; + }; + + + PhoneNumberStatusForSmsResult(); + explicit PhoneNumberStatusForSmsResult(const std::string &payload); + ~PhoneNumberStatusForSmsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORSMSRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h new file mode 100644 index 000000000..e9e997756 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForVirtualRequest : public RpcServiceRequest { +public: + PhoneNumberStatusForVirtualRequest(); + ~PhoneNumberStatusForVirtualRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + std::string getPhoneStatusSceneCode() const; + void setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; + std::string phoneStatusSceneCode_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h new file mode 100644 index 000000000..35e1e091a --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h @@ -0,0 +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_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForVirtualResult : public ServiceResult + { + public: + struct Data + { + bool isPrivacyNumber; + }; + + + PhoneNumberStatusForVirtualResult(); + explicit PhoneNumberStatusForVirtualResult(const std::string &payload); + ~PhoneNumberStatusForVirtualResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVIRTUALRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h new file mode 100644 index 000000000..69a251db5 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICEREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForVoiceRequest : public RpcServiceRequest { +public: + PhoneNumberStatusForVoiceRequest(); + ~PhoneNumberStatusForVoiceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + std::string getPhoneStatusSceneCode() const; + void setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string flowName_; + std::string phoneStatusSceneCode_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICEREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h new file mode 100644 index 000000000..1a181f12a --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICERESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForVoiceResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string carrier; + }; + + + PhoneNumberStatusForVoiceResult(); + explicit PhoneNumberStatusForVoiceResult(const std::string &payload); + ~PhoneNumberStatusForVoiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORVOICERESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h new file mode 100644 index 000000000..04c322634 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT ThreeElementsVerificationRequest : public RpcServiceRequest { +public: + ThreeElementsVerificationRequest(); + ~ThreeElementsVerificationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCertCode() const; + void setCertCode(const std::string &certCode); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getName() const; + void setName(const std::string &name); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string certCode_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string authCode_; + std::string inputNumber_; + std::string name_; + std::string flowName_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h new file mode 100644 index 000000000..04c5a6217 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT ThreeElementsVerificationResult : public ServiceResult + { + public: + struct Data + { + std::string basicCarrier; + int isConsistent; + }; + + + ThreeElementsVerificationResult(); + explicit ThreeElementsVerificationResult(const std::string &payload); + ~ThreeElementsVerificationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_THREEELEMENTSVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h b/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h new file mode 100644 index 000000000..c3f7f5604 --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dytnsapi { +namespace Model { +class ALIBABACLOUD_DYTNSAPI_EXPORT TwoElementsVerificationRequest : public RpcServiceRequest { +public: + TwoElementsVerificationRequest(); + ~TwoElementsVerificationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResultCount() const; + void setResultCount(const std::string &resultCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNumberType() const; + void setNumberType(const std::string &numberType); + std::string getAuthCode() const; + void setAuthCode(const std::string &authCode); + std::string getInputNumber() const; + void setInputNumber(const std::string &inputNumber); + std::string getName() const; + void setName(const std::string &name); + std::string getFlowName() const; + void setFlowName(const std::string &flowName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mask_; + std::string resultCount_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string numberType_; + std::string authCode_; + std::string inputNumber_; + std::string name_; + std::string flowName_; +}; +} // namespace Model +} // namespace Dytnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONREQUEST_H_ diff --git a/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h b/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h new file mode 100644 index 000000000..2cf21a78d --- /dev/null +++ b/dytnsapi/include/alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dytnsapi + { + namespace Model + { + class ALIBABACLOUD_DYTNSAPI_EXPORT TwoElementsVerificationResult : public ServiceResult + { + public: + struct Data + { + std::string basicCarrier; + int isConsistent; + }; + + + TwoElementsVerificationResult(); + explicit TwoElementsVerificationResult(const std::string &payload); + ~TwoElementsVerificationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_TWOELEMENTSVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/dytnsapi/src/DytnsapiClient.cc b/dytnsapi/src/DytnsapiClient.cc new file mode 100644 index 000000000..b9162980d --- /dev/null +++ b/dytnsapi/src/DytnsapiClient.cc @@ -0,0 +1,665 @@ +/* + * 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::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +namespace +{ + const std::string SERVICE_NAME = "Dytnsapi"; +} + +DytnsapiClient::DytnsapiClient(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, ""); +} + +DytnsapiClient::DytnsapiClient(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, ""); +} + +DytnsapiClient::DytnsapiClient(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, ""); +} + +DytnsapiClient::~DytnsapiClient() +{} + +DytnsapiClient::DescribeEmptyNumberDetectOutcome DytnsapiClient::describeEmptyNumberDetect(const DescribeEmptyNumberDetectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEmptyNumberDetectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEmptyNumberDetectOutcome(DescribeEmptyNumberDetectResult(outcome.result())); + else + return DescribeEmptyNumberDetectOutcome(outcome.error()); +} + +void DytnsapiClient::describeEmptyNumberDetectAsync(const DescribeEmptyNumberDetectRequest& request, const DescribeEmptyNumberDetectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEmptyNumberDetect(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribeEmptyNumberDetectOutcomeCallable DytnsapiClient::describeEmptyNumberDetectCallable(const DescribeEmptyNumberDetectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEmptyNumberDetect(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberAnalysisOutcome DytnsapiClient::describePhoneNumberAnalysis(const DescribePhoneNumberAnalysisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberAnalysisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberAnalysisOutcome(DescribePhoneNumberAnalysisResult(outcome.result())); + else + return DescribePhoneNumberAnalysisOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberAnalysisAsync(const DescribePhoneNumberAnalysisRequest& request, const DescribePhoneNumberAnalysisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberAnalysis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberAnalysisOutcomeCallable DytnsapiClient::describePhoneNumberAnalysisCallable(const DescribePhoneNumberAnalysisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberAnalysis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberAttributeOutcome DytnsapiClient::describePhoneNumberAttribute(const DescribePhoneNumberAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberAttributeOutcome(DescribePhoneNumberAttributeResult(outcome.result())); + else + return DescribePhoneNumberAttributeOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberAttributeAsync(const DescribePhoneNumberAttributeRequest& request, const DescribePhoneNumberAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberAttributeOutcomeCallable DytnsapiClient::describePhoneNumberAttributeCallable(const DescribePhoneNumberAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberOnlineTimeOutcome DytnsapiClient::describePhoneNumberOnlineTime(const DescribePhoneNumberOnlineTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberOnlineTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberOnlineTimeOutcome(DescribePhoneNumberOnlineTimeResult(outcome.result())); + else + return DescribePhoneNumberOnlineTimeOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberOnlineTimeAsync(const DescribePhoneNumberOnlineTimeRequest& request, const DescribePhoneNumberOnlineTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberOnlineTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberOnlineTimeOutcomeCallable DytnsapiClient::describePhoneNumberOnlineTimeCallable(const DescribePhoneNumberOnlineTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberOnlineTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberOperatorAttributeOutcome DytnsapiClient::describePhoneNumberOperatorAttribute(const DescribePhoneNumberOperatorAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberOperatorAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberOperatorAttributeOutcome(DescribePhoneNumberOperatorAttributeResult(outcome.result())); + else + return DescribePhoneNumberOperatorAttributeOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberOperatorAttributeAsync(const DescribePhoneNumberOperatorAttributeRequest& request, const DescribePhoneNumberOperatorAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberOperatorAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberOperatorAttributeOutcomeCallable DytnsapiClient::describePhoneNumberOperatorAttributeCallable(const DescribePhoneNumberOperatorAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberOperatorAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberResaleOutcome DytnsapiClient::describePhoneNumberResale(const DescribePhoneNumberResaleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberResaleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberResaleOutcome(DescribePhoneNumberResaleResult(outcome.result())); + else + return DescribePhoneNumberResaleOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberResaleAsync(const DescribePhoneNumberResaleRequest& request, const DescribePhoneNumberResaleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberResale(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberResaleOutcomeCallable DytnsapiClient::describePhoneNumberResaleCallable(const DescribePhoneNumberResaleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberResale(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneNumberStatusOutcome DytnsapiClient::describePhoneNumberStatus(const DescribePhoneNumberStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneNumberStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneNumberStatusOutcome(DescribePhoneNumberStatusResult(outcome.result())); + else + return DescribePhoneNumberStatusOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneNumberStatusAsync(const DescribePhoneNumberStatusRequest& request, const DescribePhoneNumberStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneNumberStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneNumberStatusOutcomeCallable DytnsapiClient::describePhoneNumberStatusCallable(const DescribePhoneNumberStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneNumberStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::DescribePhoneTwiceTelVerifyOutcome DytnsapiClient::describePhoneTwiceTelVerify(const DescribePhoneTwiceTelVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhoneTwiceTelVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhoneTwiceTelVerifyOutcome(DescribePhoneTwiceTelVerifyResult(outcome.result())); + else + return DescribePhoneTwiceTelVerifyOutcome(outcome.error()); +} + +void DytnsapiClient::describePhoneTwiceTelVerifyAsync(const DescribePhoneTwiceTelVerifyRequest& request, const DescribePhoneTwiceTelVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhoneTwiceTelVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::DescribePhoneTwiceTelVerifyOutcomeCallable DytnsapiClient::describePhoneTwiceTelVerifyCallable(const DescribePhoneTwiceTelVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhoneTwiceTelVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::InvalidPhoneNumberFilterOutcome DytnsapiClient::invalidPhoneNumberFilter(const InvalidPhoneNumberFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InvalidPhoneNumberFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvalidPhoneNumberFilterOutcome(InvalidPhoneNumberFilterResult(outcome.result())); + else + return InvalidPhoneNumberFilterOutcome(outcome.error()); +} + +void DytnsapiClient::invalidPhoneNumberFilterAsync(const InvalidPhoneNumberFilterRequest& request, const InvalidPhoneNumberFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invalidPhoneNumberFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::InvalidPhoneNumberFilterOutcomeCallable DytnsapiClient::invalidPhoneNumberFilterCallable(const InvalidPhoneNumberFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invalidPhoneNumberFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberEncryptOutcome DytnsapiClient::phoneNumberEncrypt(const PhoneNumberEncryptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberEncryptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberEncryptOutcome(PhoneNumberEncryptResult(outcome.result())); + else + return PhoneNumberEncryptOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberEncryptAsync(const PhoneNumberEncryptRequest& request, const PhoneNumberEncryptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberEncrypt(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberEncryptOutcomeCallable DytnsapiClient::phoneNumberEncryptCallable(const PhoneNumberEncryptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberEncrypt(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberStatusForAccountOutcome DytnsapiClient::phoneNumberStatusForAccount(const PhoneNumberStatusForAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberStatusForAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberStatusForAccountOutcome(PhoneNumberStatusForAccountResult(outcome.result())); + else + return PhoneNumberStatusForAccountOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberStatusForAccountAsync(const PhoneNumberStatusForAccountRequest& request, const PhoneNumberStatusForAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberStatusForAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberStatusForAccountOutcomeCallable DytnsapiClient::phoneNumberStatusForAccountCallable(const PhoneNumberStatusForAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberStatusForAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberStatusForRealOutcome DytnsapiClient::phoneNumberStatusForReal(const PhoneNumberStatusForRealRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberStatusForRealOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberStatusForRealOutcome(PhoneNumberStatusForRealResult(outcome.result())); + else + return PhoneNumberStatusForRealOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberStatusForRealAsync(const PhoneNumberStatusForRealRequest& request, const PhoneNumberStatusForRealAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberStatusForReal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberStatusForRealOutcomeCallable DytnsapiClient::phoneNumberStatusForRealCallable(const PhoneNumberStatusForRealRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberStatusForReal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberStatusForSmsOutcome DytnsapiClient::phoneNumberStatusForSms(const PhoneNumberStatusForSmsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberStatusForSmsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberStatusForSmsOutcome(PhoneNumberStatusForSmsResult(outcome.result())); + else + return PhoneNumberStatusForSmsOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberStatusForSmsAsync(const PhoneNumberStatusForSmsRequest& request, const PhoneNumberStatusForSmsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberStatusForSms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberStatusForSmsOutcomeCallable DytnsapiClient::phoneNumberStatusForSmsCallable(const PhoneNumberStatusForSmsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberStatusForSms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberStatusForVirtualOutcome DytnsapiClient::phoneNumberStatusForVirtual(const PhoneNumberStatusForVirtualRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberStatusForVirtualOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberStatusForVirtualOutcome(PhoneNumberStatusForVirtualResult(outcome.result())); + else + return PhoneNumberStatusForVirtualOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberStatusForVirtualAsync(const PhoneNumberStatusForVirtualRequest& request, const PhoneNumberStatusForVirtualAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberStatusForVirtual(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberStatusForVirtualOutcomeCallable DytnsapiClient::phoneNumberStatusForVirtualCallable(const PhoneNumberStatusForVirtualRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberStatusForVirtual(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::PhoneNumberStatusForVoiceOutcome DytnsapiClient::phoneNumberStatusForVoice(const PhoneNumberStatusForVoiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhoneNumberStatusForVoiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhoneNumberStatusForVoiceOutcome(PhoneNumberStatusForVoiceResult(outcome.result())); + else + return PhoneNumberStatusForVoiceOutcome(outcome.error()); +} + +void DytnsapiClient::phoneNumberStatusForVoiceAsync(const PhoneNumberStatusForVoiceRequest& request, const PhoneNumberStatusForVoiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, phoneNumberStatusForVoice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::PhoneNumberStatusForVoiceOutcomeCallable DytnsapiClient::phoneNumberStatusForVoiceCallable(const PhoneNumberStatusForVoiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->phoneNumberStatusForVoice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::ThreeElementsVerificationOutcome DytnsapiClient::threeElementsVerification(const ThreeElementsVerificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ThreeElementsVerificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ThreeElementsVerificationOutcome(ThreeElementsVerificationResult(outcome.result())); + else + return ThreeElementsVerificationOutcome(outcome.error()); +} + +void DytnsapiClient::threeElementsVerificationAsync(const ThreeElementsVerificationRequest& request, const ThreeElementsVerificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, threeElementsVerification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::ThreeElementsVerificationOutcomeCallable DytnsapiClient::threeElementsVerificationCallable(const ThreeElementsVerificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->threeElementsVerification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DytnsapiClient::TwoElementsVerificationOutcome DytnsapiClient::twoElementsVerification(const TwoElementsVerificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TwoElementsVerificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TwoElementsVerificationOutcome(TwoElementsVerificationResult(outcome.result())); + else + return TwoElementsVerificationOutcome(outcome.error()); +} + +void DytnsapiClient::twoElementsVerificationAsync(const TwoElementsVerificationRequest& request, const TwoElementsVerificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, twoElementsVerification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DytnsapiClient::TwoElementsVerificationOutcomeCallable DytnsapiClient::twoElementsVerificationCallable(const TwoElementsVerificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->twoElementsVerification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc b/dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc new file mode 100644 index 000000000..c67eb130f --- /dev/null +++ b/dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc @@ -0,0 +1,90 @@ +/* + * 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::Dytnsapi::Model::DescribeEmptyNumberDetectRequest; + +DescribeEmptyNumberDetectRequest::DescribeEmptyNumberDetectRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribeEmptyNumberDetect") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEmptyNumberDetectRequest::~DescribeEmptyNumberDetectRequest() {} + +long DescribeEmptyNumberDetectRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeEmptyNumberDetectRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeEmptyNumberDetectRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeEmptyNumberDetectRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeEmptyNumberDetectRequest::getEncryptType() const { + return encryptType_; +} + +void DescribeEmptyNumberDetectRequest::setEncryptType(const std::string &encryptType) { + encryptType_ = encryptType; + setParameter(std::string("EncryptType"), encryptType); +} + +std::string DescribeEmptyNumberDetectRequest::getOfferType() const { + return offerType_; +} + +void DescribeEmptyNumberDetectRequest::setOfferType(const std::string &offerType) { + offerType_ = offerType; + setParameter(std::string("OfferType"), offerType); +} + +std::string DescribeEmptyNumberDetectRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeEmptyNumberDetectRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DescribeEmptyNumberDetectRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEmptyNumberDetectRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeEmptyNumberDetectRequest::getPhone() const { + return phone_; +} + +void DescribeEmptyNumberDetectRequest::setPhone(const std::string &phone) { + phone_ = phone; + setParameter(std::string("Phone"), phone); +} + diff --git a/dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc b/dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc new file mode 100644 index 000000000..768a28e46 --- /dev/null +++ b/dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribeEmptyNumberDetectResult::DescribeEmptyNumberDetectResult() : + ServiceResult() +{} + +DescribeEmptyNumberDetectResult::DescribeEmptyNumberDetectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEmptyNumberDetectResult::~DescribeEmptyNumberDetectResult() +{} + +void DescribeEmptyNumberDetectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataList"]; + for (auto valueDataDataList : allDataNode) + { + DataList dataObject; + if(!valueDataDataList["Number"].isNull()) + dataObject.number = valueDataDataList["Number"].asString(); + if(!valueDataDataList["Status"].isNull()) + dataObject.status = valueDataDataList["Status"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeEmptyNumberDetectResult::getMessage()const +{ + return message_; +} + +std::vector DescribeEmptyNumberDetectResult::getData()const +{ + return data_; +} + +std::string DescribeEmptyNumberDetectResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc b/dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc new file mode 100644 index 000000000..fc8e3cd6a --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::DescribePhoneNumberAnalysisRequest; + +DescribePhoneNumberAnalysisRequest::DescribePhoneNumberAnalysisRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberAnalysis") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberAnalysisRequest::~DescribePhoneNumberAnalysisRequest() {} + +long DescribePhoneNumberAnalysisRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberAnalysisRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberAnalysisRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberAnalysisRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +long DescribePhoneNumberAnalysisRequest::getRate() const { + return rate_; +} + +void DescribePhoneNumberAnalysisRequest::setRate(long rate) { + rate_ = rate; + setParameter(std::string("Rate"), std::to_string(rate)); +} + +std::string DescribePhoneNumberAnalysisRequest::getMask() const { + return mask_; +} + +void DescribePhoneNumberAnalysisRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string DescribePhoneNumberAnalysisRequest::getOfferType() const { + return offerType_; +} + +void DescribePhoneNumberAnalysisRequest::setOfferType(const std::string &offerType) { + offerType_ = offerType; + setParameter(std::string("OfferType"), offerType); +} + +std::string DescribePhoneNumberAnalysisRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberAnalysisRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DescribePhoneNumberAnalysisRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberAnalysisRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int DescribePhoneNumberAnalysisRequest::getNumberType() const { + return numberType_; +} + +void DescribePhoneNumberAnalysisRequest::setNumberType(int numberType) { + numberType_ = numberType; + setParameter(std::string("NumberType"), std::to_string(numberType)); +} + +std::string DescribePhoneNumberAnalysisRequest::getAuthCode() const { + return authCode_; +} + +void DescribePhoneNumberAnalysisRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string DescribePhoneNumberAnalysisRequest::getInputNumber() const { + return inputNumber_; +} + +void DescribePhoneNumberAnalysisRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc b/dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc new file mode 100644 index 000000000..0b1bcb453 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberAnalysisResult::DescribePhoneNumberAnalysisResult() : + ServiceResult() +{} + +DescribePhoneNumberAnalysisResult::DescribePhoneNumberAnalysisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberAnalysisResult::~DescribePhoneNumberAnalysisResult() +{} + +void DescribePhoneNumberAnalysisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataList"]; + for (auto valueDataDataList : allDataNode) + { + DataList dataObject; + if(!valueDataDataList["Code"].isNull()) + dataObject.code = valueDataDataList["Code"].asString(); + if(!valueDataDataList["Number"].isNull()) + dataObject.number = valueDataDataList["Number"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneNumberAnalysisResult::getMessage()const +{ + return message_; +} + +std::vector DescribePhoneNumberAnalysisResult::getData()const +{ + return data_; +} + +std::string DescribePhoneNumberAnalysisResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc b/dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc new file mode 100644 index 000000000..3df21baf0 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dytnsapi::Model::DescribePhoneNumberAttributeRequest; + +DescribePhoneNumberAttributeRequest::DescribePhoneNumberAttributeRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberAttributeRequest::~DescribePhoneNumberAttributeRequest() {} + +long DescribePhoneNumberAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribePhoneNumberAttributeRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void DescribePhoneNumberAttributeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +long DescribePhoneNumberAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneNumberAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc b/dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc new file mode 100644 index 000000000..e296d2128 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc @@ -0,0 +1,76 @@ +/* + * 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::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberAttributeResult::DescribePhoneNumberAttributeResult() : + ServiceResult() +{} + +DescribePhoneNumberAttributeResult::DescribePhoneNumberAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberAttributeResult::~DescribePhoneNumberAttributeResult() +{} + +void DescribePhoneNumberAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto phoneNumberAttributeNode = value["PhoneNumberAttribute"]; + if(!phoneNumberAttributeNode["BasicCarrier"].isNull()) + phoneNumberAttribute_.basicCarrier = phoneNumberAttributeNode["BasicCarrier"].asString(); + if(!phoneNumberAttributeNode["Carrier"].isNull()) + phoneNumberAttribute_.carrier = phoneNumberAttributeNode["Carrier"].asString(); + if(!phoneNumberAttributeNode["IsNumberPortability"].isNull()) + phoneNumberAttribute_.isNumberPortability = phoneNumberAttributeNode["IsNumberPortability"].asString() == "true"; + if(!phoneNumberAttributeNode["NumberSegment"].isNull()) + phoneNumberAttribute_.numberSegment = std::stol(phoneNumberAttributeNode["NumberSegment"].asString()); + if(!phoneNumberAttributeNode["City"].isNull()) + phoneNumberAttribute_.city = phoneNumberAttributeNode["City"].asString(); + if(!phoneNumberAttributeNode["Province"].isNull()) + phoneNumberAttribute_.province = phoneNumberAttributeNode["Province"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneNumberAttributeResult::getMessage()const +{ + return message_; +} + +DescribePhoneNumberAttributeResult::PhoneNumberAttribute DescribePhoneNumberAttributeResult::getPhoneNumberAttribute()const +{ + return phoneNumberAttribute_; +} + +std::string DescribePhoneNumberAttributeResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc b/dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc new file mode 100644 index 000000000..f3a4e7770 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc @@ -0,0 +1,108 @@ +/* + * 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::Dytnsapi::Model::DescribePhoneNumberOnlineTimeRequest; + +DescribePhoneNumberOnlineTimeRequest::DescribePhoneNumberOnlineTimeRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberOnlineTime") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberOnlineTimeRequest::~DescribePhoneNumberOnlineTimeRequest() {} + +long DescribePhoneNumberOnlineTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberOnlineTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberOnlineTimeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getMask() const { + return mask_; +} + +void DescribePhoneNumberOnlineTimeRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getOfferType() const { + return offerType_; +} + +void DescribePhoneNumberOnlineTimeRequest::setOfferType(const std::string &offerType) { + offerType_ = offerType; + setParameter(std::string("OfferType"), offerType); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberOnlineTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DescribePhoneNumberOnlineTimeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberOnlineTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getAuthCode() const { + return authCode_; +} + +void DescribePhoneNumberOnlineTimeRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getInputNumber() const { + return inputNumber_; +} + +void DescribePhoneNumberOnlineTimeRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string DescribePhoneNumberOnlineTimeRequest::getCarrier() const { + return carrier_; +} + +void DescribePhoneNumberOnlineTimeRequest::setCarrier(const std::string &carrier) { + carrier_ = carrier; + setParameter(std::string("Carrier"), carrier); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc b/dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc new file mode 100644 index 000000000..99a1d8ac7 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberOnlineTimeResult::DescribePhoneNumberOnlineTimeResult() : + ServiceResult() +{} + +DescribePhoneNumberOnlineTimeResult::DescribePhoneNumberOnlineTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberOnlineTimeResult::~DescribePhoneNumberOnlineTimeResult() +{} + +void DescribePhoneNumberOnlineTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["VerifyResult"].isNull()) + data_.verifyResult = dataNode["VerifyResult"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneNumberOnlineTimeResult::getMessage()const +{ + return message_; +} + +DescribePhoneNumberOnlineTimeResult::Data DescribePhoneNumberOnlineTimeResult::getData()const +{ + return data_; +} + +std::string DescribePhoneNumberOnlineTimeResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeRequest.cc b/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeRequest.cc new file mode 100644 index 000000000..83b08ba6a --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeRequest.cc @@ -0,0 +1,108 @@ +/* + * 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::Dytnsapi::Model::DescribePhoneNumberOperatorAttributeRequest; + +DescribePhoneNumberOperatorAttributeRequest::DescribePhoneNumberOperatorAttributeRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberOperatorAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberOperatorAttributeRequest::~DescribePhoneNumberOperatorAttributeRequest() {} + +long DescribePhoneNumberOperatorAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getMask() const { + return mask_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getResultCount() const { + return resultCount_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DescribePhoneNumberOperatorAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getAuthCode() const { + return authCode_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getInputNumber() const { + return inputNumber_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string DescribePhoneNumberOperatorAttributeRequest::getFlowName() const { + return flowName_; +} + +void DescribePhoneNumberOperatorAttributeRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeResult.cc b/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeResult.cc new file mode 100644 index 000000000..4b9234741 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberOperatorAttributeResult.cc @@ -0,0 +1,76 @@ +/* + * 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::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberOperatorAttributeResult::DescribePhoneNumberOperatorAttributeResult() : + ServiceResult() +{} + +DescribePhoneNumberOperatorAttributeResult::DescribePhoneNumberOperatorAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberOperatorAttributeResult::~DescribePhoneNumberOperatorAttributeResult() +{} + +void DescribePhoneNumberOperatorAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BasicCarrier"].isNull()) + data_.basicCarrier = dataNode["BasicCarrier"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!dataNode["IsNumberPortability"].isNull()) + data_.isNumberPortability = dataNode["IsNumberPortability"].asString() == "true"; + if(!dataNode["NumberSegment"].isNull()) + data_.numberSegment = std::stol(dataNode["NumberSegment"].asString()); + if(!dataNode["City"].isNull()) + data_.city = dataNode["City"].asString(); + if(!dataNode["Province"].isNull()) + data_.province = dataNode["Province"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneNumberOperatorAttributeResult::getMessage()const +{ + return message_; +} + +DescribePhoneNumberOperatorAttributeResult::Data DescribePhoneNumberOperatorAttributeResult::getData()const +{ + return data_; +} + +std::string DescribePhoneNumberOperatorAttributeResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc b/dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc new file mode 100644 index 000000000..b16cfee48 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc @@ -0,0 +1,81 @@ +/* + * 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::Dytnsapi::Model::DescribePhoneNumberResaleRequest; + +DescribePhoneNumberResaleRequest::DescribePhoneNumberResaleRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberResale") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberResaleRequest::~DescribePhoneNumberResaleRequest() {} + +long DescribePhoneNumberResaleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberResaleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberResaleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberResaleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribePhoneNumberResaleRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void DescribePhoneNumberResaleRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +long DescribePhoneNumberResaleRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberResaleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneNumberResaleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberResaleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribePhoneNumberResaleRequest::getSince() const { + return since_; +} + +void DescribePhoneNumberResaleRequest::setSince(const std::string &since) { + since_ = since; + setParameter(std::string("Since"), since); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberResaleResult.cc b/dytnsapi/src/model/DescribePhoneNumberResaleResult.cc new file mode 100644 index 000000000..c277e9e1a --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberResaleResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberResaleResult::DescribePhoneNumberResaleResult() : + ServiceResult() +{} + +DescribePhoneNumberResaleResult::DescribePhoneNumberResaleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberResaleResult::~DescribePhoneNumberResaleResult() +{} + +void DescribePhoneNumberResaleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto twiceTelVerifyNode = value["TwiceTelVerify"]; + if(!twiceTelVerifyNode["Carrier"].isNull()) + twiceTelVerify_.carrier = twiceTelVerifyNode["Carrier"].asString(); + if(!twiceTelVerifyNode["VerifyResult"].isNull()) + twiceTelVerify_.verifyResult = std::stoi(twiceTelVerifyNode["VerifyResult"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneNumberResaleResult::getMessage()const +{ + return message_; +} + +DescribePhoneNumberResaleResult::TwiceTelVerify DescribePhoneNumberResaleResult::getTwiceTelVerify()const +{ + return twiceTelVerify_; +} + +std::string DescribePhoneNumberResaleResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc b/dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc new file mode 100644 index 000000000..71a131660 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dytnsapi::Model::DescribePhoneNumberStatusRequest; + +DescribePhoneNumberStatusRequest::DescribePhoneNumberStatusRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneNumberStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneNumberStatusRequest::~DescribePhoneNumberStatusRequest() {} + +long DescribePhoneNumberStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneNumberStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneNumberStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneNumberStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribePhoneNumberStatusRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void DescribePhoneNumberStatusRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +long DescribePhoneNumberStatusRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneNumberStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneNumberStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneNumberStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/dytnsapi/src/model/DescribePhoneNumberStatusResult.cc b/dytnsapi/src/model/DescribePhoneNumberStatusResult.cc new file mode 100644 index 000000000..46ba72711 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneNumberStatusResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneNumberStatusResult::DescribePhoneNumberStatusResult() : + ServiceResult() +{} + +DescribePhoneNumberStatusResult::DescribePhoneNumberStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneNumberStatusResult::~DescribePhoneNumberStatusResult() +{} + +void DescribePhoneNumberStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto phoneStatusNode = value["PhoneStatus"]; + if(!phoneStatusNode["Status"].isNull()) + phoneStatus_.status = phoneStatusNode["Status"].asString(); + if(!phoneStatusNode["SerialId"].isNull()) + phoneStatus_.serialId = phoneStatusNode["SerialId"].asString(); + if(!phoneStatusNode["Carrier"].isNull()) + phoneStatus_.carrier = phoneStatusNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +DescribePhoneNumberStatusResult::PhoneStatus DescribePhoneNumberStatusResult::getPhoneStatus()const +{ + return phoneStatus_; +} + +std::string DescribePhoneNumberStatusResult::getMessage()const +{ + return message_; +} + +std::string DescribePhoneNumberStatusResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc b/dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc new file mode 100644 index 000000000..5dda9c7e9 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::Dytnsapi::Model::DescribePhoneTwiceTelVerifyRequest; + +DescribePhoneTwiceTelVerifyRequest::DescribePhoneTwiceTelVerifyRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "DescribePhoneTwiceTelVerify") { + setMethod(HttpRequest::Method::Post); +} + +DescribePhoneTwiceTelVerifyRequest::~DescribePhoneTwiceTelVerifyRequest() {} + +long DescribePhoneTwiceTelVerifyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribePhoneTwiceTelVerifyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getStartTime() const { + return startTime_; +} + +void DescribePhoneTwiceTelVerifyRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePhoneTwiceTelVerifyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getMask() const { + return mask_; +} + +void DescribePhoneTwiceTelVerifyRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getOfferType() const { + return offerType_; +} + +void DescribePhoneTwiceTelVerifyRequest::setOfferType(const std::string &offerType) { + offerType_ = offerType; + setParameter(std::string("OfferType"), offerType); +} + +int DescribePhoneTwiceTelVerifyRequest::getResultCount() const { + return resultCount_; +} + +void DescribePhoneTwiceTelVerifyRequest::setResultCount(int resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), std::to_string(resultCount)); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribePhoneTwiceTelVerifyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long DescribePhoneTwiceTelVerifyRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePhoneTwiceTelVerifyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getAuthCode() const { + return authCode_; +} + +void DescribePhoneTwiceTelVerifyRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getInputNumber() const { + return inputNumber_; +} + +void DescribePhoneTwiceTelVerifyRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string DescribePhoneTwiceTelVerifyRequest::getFlowName() const { + return flowName_; +} + +void DescribePhoneTwiceTelVerifyRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + diff --git a/dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc b/dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc new file mode 100644 index 000000000..359e06eb7 --- /dev/null +++ b/dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +DescribePhoneTwiceTelVerifyResult::DescribePhoneTwiceTelVerifyResult() : + ServiceResult() +{} + +DescribePhoneTwiceTelVerifyResult::DescribePhoneTwiceTelVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhoneTwiceTelVerifyResult::~DescribePhoneTwiceTelVerifyResult() +{} + +void DescribePhoneTwiceTelVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["VerifyResult"].isNull()) + data_.verifyResult = dataNode["VerifyResult"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribePhoneTwiceTelVerifyResult::getMessage()const +{ + return message_; +} + +DescribePhoneTwiceTelVerifyResult::Data DescribePhoneTwiceTelVerifyResult::getData()const +{ + return data_; +} + +std::string DescribePhoneTwiceTelVerifyResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc b/dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc new file mode 100644 index 000000000..5298b1fac --- /dev/null +++ b/dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc @@ -0,0 +1,90 @@ +/* + * 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::Dytnsapi::Model::InvalidPhoneNumberFilterRequest; + +InvalidPhoneNumberFilterRequest::InvalidPhoneNumberFilterRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "InvalidPhoneNumberFilter") { + setMethod(HttpRequest::Method::Post); +} + +InvalidPhoneNumberFilterRequest::~InvalidPhoneNumberFilterRequest() {} + +long InvalidPhoneNumberFilterRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void InvalidPhoneNumberFilterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string InvalidPhoneNumberFilterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InvalidPhoneNumberFilterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string InvalidPhoneNumberFilterRequest::getMask() const { + return mask_; +} + +void InvalidPhoneNumberFilterRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string InvalidPhoneNumberFilterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void InvalidPhoneNumberFilterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long InvalidPhoneNumberFilterRequest::getOwnerId() const { + return ownerId_; +} + +void InvalidPhoneNumberFilterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string InvalidPhoneNumberFilterRequest::getAuthCode() const { + return authCode_; +} + +void InvalidPhoneNumberFilterRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string InvalidPhoneNumberFilterRequest::getInputNumber() const { + return inputNumber_; +} + +void InvalidPhoneNumberFilterRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + diff --git a/dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc b/dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc new file mode 100644 index 000000000..8c13319a7 --- /dev/null +++ b/dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc @@ -0,0 +1,77 @@ +/* + * 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::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +InvalidPhoneNumberFilterResult::InvalidPhoneNumberFilterResult() : + ServiceResult() +{} + +InvalidPhoneNumberFilterResult::InvalidPhoneNumberFilterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InvalidPhoneNumberFilterResult::~InvalidPhoneNumberFilterResult() +{} + +void InvalidPhoneNumberFilterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Code"].isNull()) + dataObject.code = valueDataDataItem["Code"].asString(); + if(!valueDataDataItem["OriginalNumber"].isNull()) + dataObject.originalNumber = valueDataDataItem["OriginalNumber"].asString(); + if(!valueDataDataItem["EncryptedNumber"].isNull()) + dataObject.encryptedNumber = valueDataDataItem["EncryptedNumber"].asString(); + if(!valueDataDataItem["ExpireTime"].isNull()) + dataObject.expireTime = valueDataDataItem["ExpireTime"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string InvalidPhoneNumberFilterResult::getMessage()const +{ + return message_; +} + +std::vector InvalidPhoneNumberFilterResult::getData()const +{ + return data_; +} + +std::string InvalidPhoneNumberFilterResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberEncryptRequest.cc b/dytnsapi/src/model/PhoneNumberEncryptRequest.cc new file mode 100644 index 000000000..5c1dc2957 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberEncryptRequest.cc @@ -0,0 +1,90 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberEncryptRequest; + +PhoneNumberEncryptRequest::PhoneNumberEncryptRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberEncrypt") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberEncryptRequest::~PhoneNumberEncryptRequest() {} + +long PhoneNumberEncryptRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberEncryptRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberEncryptRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberEncryptRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberEncryptRequest::getMask() const { + return mask_; +} + +void PhoneNumberEncryptRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberEncryptRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberEncryptRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberEncryptRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberEncryptRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberEncryptRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberEncryptRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberEncryptRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberEncryptRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + diff --git a/dytnsapi/src/model/PhoneNumberEncryptResult.cc b/dytnsapi/src/model/PhoneNumberEncryptResult.cc new file mode 100644 index 000000000..a4a7d605f --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberEncryptResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberEncryptResult::PhoneNumberEncryptResult() : + ServiceResult() +{} + +PhoneNumberEncryptResult::PhoneNumberEncryptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberEncryptResult::~PhoneNumberEncryptResult() +{} + +void PhoneNumberEncryptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["OriginalNumber"].isNull()) + dataObject.originalNumber = valueDataDataItem["OriginalNumber"].asString(); + if(!valueDataDataItem["EncryptedNumber"].isNull()) + dataObject.encryptedNumber = valueDataDataItem["EncryptedNumber"].asString(); + if(!valueDataDataItem["ExpireTime"].isNull()) + dataObject.expireTime = valueDataDataItem["ExpireTime"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberEncryptResult::getMessage()const +{ + return message_; +} + +std::vector PhoneNumberEncryptResult::getData()const +{ + return data_; +} + +std::string PhoneNumberEncryptResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc b/dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc new file mode 100644 index 000000000..e097cc1d1 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberStatusForAccountRequest; + +PhoneNumberStatusForAccountRequest::PhoneNumberStatusForAccountRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForAccount") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberStatusForAccountRequest::~PhoneNumberStatusForAccountRequest() {} + +long PhoneNumberStatusForAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberStatusForAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberStatusForAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberStatusForAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberStatusForAccountRequest::getMask() const { + return mask_; +} + +void PhoneNumberStatusForAccountRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberStatusForAccountRequest::getResultCount() const { + return resultCount_; +} + +void PhoneNumberStatusForAccountRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string PhoneNumberStatusForAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberStatusForAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberStatusForAccountRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberStatusForAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberStatusForAccountRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberStatusForAccountRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberStatusForAccountRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberStatusForAccountRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string PhoneNumberStatusForAccountRequest::getFlowName() const { + return flowName_; +} + +void PhoneNumberStatusForAccountRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + +std::string PhoneNumberStatusForAccountRequest::getPhoneStatusSceneCode() const { + return phoneStatusSceneCode_; +} + +void PhoneNumberStatusForAccountRequest::setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode) { + phoneStatusSceneCode_ = phoneStatusSceneCode; + setParameter(std::string("PhoneStatusSceneCode"), phoneStatusSceneCode); +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc b/dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc new file mode 100644 index 000000000..4d0403dc8 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberStatusForAccountResult::PhoneNumberStatusForAccountResult() : + ServiceResult() +{} + +PhoneNumberStatusForAccountResult::PhoneNumberStatusForAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberStatusForAccountResult::~PhoneNumberStatusForAccountResult() +{} + +void PhoneNumberStatusForAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberStatusForAccountResult::getMessage()const +{ + return message_; +} + +PhoneNumberStatusForAccountResult::Data PhoneNumberStatusForAccountResult::getData()const +{ + return data_; +} + +std::string PhoneNumberStatusForAccountResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc b/dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc new file mode 100644 index 000000000..2390818f7 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberStatusForRealRequest; + +PhoneNumberStatusForRealRequest::PhoneNumberStatusForRealRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForReal") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberStatusForRealRequest::~PhoneNumberStatusForRealRequest() {} + +long PhoneNumberStatusForRealRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberStatusForRealRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberStatusForRealRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberStatusForRealRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberStatusForRealRequest::getMask() const { + return mask_; +} + +void PhoneNumberStatusForRealRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberStatusForRealRequest::getResultCount() const { + return resultCount_; +} + +void PhoneNumberStatusForRealRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string PhoneNumberStatusForRealRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberStatusForRealRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberStatusForRealRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberStatusForRealRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberStatusForRealRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberStatusForRealRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberStatusForRealRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberStatusForRealRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string PhoneNumberStatusForRealRequest::getFlowName() const { + return flowName_; +} + +void PhoneNumberStatusForRealRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + +std::string PhoneNumberStatusForRealRequest::getPhoneStatusSceneCode() const { + return phoneStatusSceneCode_; +} + +void PhoneNumberStatusForRealRequest::setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode) { + phoneStatusSceneCode_ = phoneStatusSceneCode; + setParameter(std::string("PhoneStatusSceneCode"), phoneStatusSceneCode); +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForRealResult.cc b/dytnsapi/src/model/PhoneNumberStatusForRealResult.cc new file mode 100644 index 000000000..4069ff7dd --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForRealResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberStatusForRealResult::PhoneNumberStatusForRealResult() : + ServiceResult() +{} + +PhoneNumberStatusForRealResult::PhoneNumberStatusForRealResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberStatusForRealResult::~PhoneNumberStatusForRealResult() +{} + +void PhoneNumberStatusForRealResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberStatusForRealResult::getMessage()const +{ + return message_; +} + +PhoneNumberStatusForRealResult::Data PhoneNumberStatusForRealResult::getData()const +{ + return data_; +} + +std::string PhoneNumberStatusForRealResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc b/dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc new file mode 100644 index 000000000..78c676035 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberStatusForSmsRequest; + +PhoneNumberStatusForSmsRequest::PhoneNumberStatusForSmsRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForSms") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberStatusForSmsRequest::~PhoneNumberStatusForSmsRequest() {} + +long PhoneNumberStatusForSmsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberStatusForSmsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberStatusForSmsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberStatusForSmsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberStatusForSmsRequest::getMask() const { + return mask_; +} + +void PhoneNumberStatusForSmsRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberStatusForSmsRequest::getResultCount() const { + return resultCount_; +} + +void PhoneNumberStatusForSmsRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string PhoneNumberStatusForSmsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberStatusForSmsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberStatusForSmsRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberStatusForSmsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberStatusForSmsRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberStatusForSmsRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberStatusForSmsRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberStatusForSmsRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string PhoneNumberStatusForSmsRequest::getFlowName() const { + return flowName_; +} + +void PhoneNumberStatusForSmsRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + +std::string PhoneNumberStatusForSmsRequest::getPhoneStatusSceneCode() const { + return phoneStatusSceneCode_; +} + +void PhoneNumberStatusForSmsRequest::setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode) { + phoneStatusSceneCode_ = phoneStatusSceneCode; + setParameter(std::string("PhoneStatusSceneCode"), phoneStatusSceneCode); +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc b/dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc new file mode 100644 index 000000000..c01b4d980 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberStatusForSmsResult::PhoneNumberStatusForSmsResult() : + ServiceResult() +{} + +PhoneNumberStatusForSmsResult::PhoneNumberStatusForSmsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberStatusForSmsResult::~PhoneNumberStatusForSmsResult() +{} + +void PhoneNumberStatusForSmsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberStatusForSmsResult::getMessage()const +{ + return message_; +} + +PhoneNumberStatusForSmsResult::Data PhoneNumberStatusForSmsResult::getData()const +{ + return data_; +} + +std::string PhoneNumberStatusForSmsResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc b/dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc new file mode 100644 index 000000000..2339e0479 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberStatusForVirtualRequest; + +PhoneNumberStatusForVirtualRequest::PhoneNumberStatusForVirtualRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForVirtual") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberStatusForVirtualRequest::~PhoneNumberStatusForVirtualRequest() {} + +long PhoneNumberStatusForVirtualRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberStatusForVirtualRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberStatusForVirtualRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberStatusForVirtualRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberStatusForVirtualRequest::getMask() const { + return mask_; +} + +void PhoneNumberStatusForVirtualRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberStatusForVirtualRequest::getResultCount() const { + return resultCount_; +} + +void PhoneNumberStatusForVirtualRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string PhoneNumberStatusForVirtualRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberStatusForVirtualRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberStatusForVirtualRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberStatusForVirtualRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberStatusForVirtualRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberStatusForVirtualRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberStatusForVirtualRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberStatusForVirtualRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string PhoneNumberStatusForVirtualRequest::getFlowName() const { + return flowName_; +} + +void PhoneNumberStatusForVirtualRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + +std::string PhoneNumberStatusForVirtualRequest::getPhoneStatusSceneCode() const { + return phoneStatusSceneCode_; +} + +void PhoneNumberStatusForVirtualRequest::setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode) { + phoneStatusSceneCode_ = phoneStatusSceneCode; + setParameter(std::string("PhoneStatusSceneCode"), phoneStatusSceneCode); +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc b/dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc new file mode 100644 index 000000000..4f228a611 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberStatusForVirtualResult::PhoneNumberStatusForVirtualResult() : + ServiceResult() +{} + +PhoneNumberStatusForVirtualResult::PhoneNumberStatusForVirtualResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberStatusForVirtualResult::~PhoneNumberStatusForVirtualResult() +{} + +void PhoneNumberStatusForVirtualResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IsPrivacyNumber"].isNull()) + data_.isPrivacyNumber = dataNode["IsPrivacyNumber"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberStatusForVirtualResult::getMessage()const +{ + return message_; +} + +PhoneNumberStatusForVirtualResult::Data PhoneNumberStatusForVirtualResult::getData()const +{ + return data_; +} + +std::string PhoneNumberStatusForVirtualResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc b/dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc new file mode 100644 index 000000000..b5ee5ef13 --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::Dytnsapi::Model::PhoneNumberStatusForVoiceRequest; + +PhoneNumberStatusForVoiceRequest::PhoneNumberStatusForVoiceRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForVoice") { + setMethod(HttpRequest::Method::Post); +} + +PhoneNumberStatusForVoiceRequest::~PhoneNumberStatusForVoiceRequest() {} + +long PhoneNumberStatusForVoiceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PhoneNumberStatusForVoiceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PhoneNumberStatusForVoiceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PhoneNumberStatusForVoiceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PhoneNumberStatusForVoiceRequest::getMask() const { + return mask_; +} + +void PhoneNumberStatusForVoiceRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string PhoneNumberStatusForVoiceRequest::getResultCount() const { + return resultCount_; +} + +void PhoneNumberStatusForVoiceRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string PhoneNumberStatusForVoiceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PhoneNumberStatusForVoiceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long PhoneNumberStatusForVoiceRequest::getOwnerId() const { + return ownerId_; +} + +void PhoneNumberStatusForVoiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PhoneNumberStatusForVoiceRequest::getAuthCode() const { + return authCode_; +} + +void PhoneNumberStatusForVoiceRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string PhoneNumberStatusForVoiceRequest::getInputNumber() const { + return inputNumber_; +} + +void PhoneNumberStatusForVoiceRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string PhoneNumberStatusForVoiceRequest::getFlowName() const { + return flowName_; +} + +void PhoneNumberStatusForVoiceRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + +std::string PhoneNumberStatusForVoiceRequest::getPhoneStatusSceneCode() const { + return phoneStatusSceneCode_; +} + +void PhoneNumberStatusForVoiceRequest::setPhoneStatusSceneCode(const std::string &phoneStatusSceneCode) { + phoneStatusSceneCode_ = phoneStatusSceneCode; + setParameter(std::string("PhoneStatusSceneCode"), phoneStatusSceneCode); +} + diff --git a/dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc b/dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc new file mode 100644 index 000000000..9ba610fad --- /dev/null +++ b/dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +PhoneNumberStatusForVoiceResult::PhoneNumberStatusForVoiceResult() : + ServiceResult() +{} + +PhoneNumberStatusForVoiceResult::PhoneNumberStatusForVoiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhoneNumberStatusForVoiceResult::~PhoneNumberStatusForVoiceResult() +{} + +void PhoneNumberStatusForVoiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Carrier"].isNull()) + data_.carrier = dataNode["Carrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PhoneNumberStatusForVoiceResult::getMessage()const +{ + return message_; +} + +PhoneNumberStatusForVoiceResult::Data PhoneNumberStatusForVoiceResult::getData()const +{ + return data_; +} + +std::string PhoneNumberStatusForVoiceResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/ThreeElementsVerificationRequest.cc b/dytnsapi/src/model/ThreeElementsVerificationRequest.cc new file mode 100644 index 000000000..043093daa --- /dev/null +++ b/dytnsapi/src/model/ThreeElementsVerificationRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::Dytnsapi::Model::ThreeElementsVerificationRequest; + +ThreeElementsVerificationRequest::ThreeElementsVerificationRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "ThreeElementsVerification") { + setMethod(HttpRequest::Method::Post); +} + +ThreeElementsVerificationRequest::~ThreeElementsVerificationRequest() {} + +long ThreeElementsVerificationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ThreeElementsVerificationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ThreeElementsVerificationRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ThreeElementsVerificationRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ThreeElementsVerificationRequest::getCertCode() const { + return certCode_; +} + +void ThreeElementsVerificationRequest::setCertCode(const std::string &certCode) { + certCode_ = certCode; + setParameter(std::string("CertCode"), certCode); +} + +std::string ThreeElementsVerificationRequest::getMask() const { + return mask_; +} + +void ThreeElementsVerificationRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string ThreeElementsVerificationRequest::getResultCount() const { + return resultCount_; +} + +void ThreeElementsVerificationRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string ThreeElementsVerificationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ThreeElementsVerificationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long ThreeElementsVerificationRequest::getOwnerId() const { + return ownerId_; +} + +void ThreeElementsVerificationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ThreeElementsVerificationRequest::getAuthCode() const { + return authCode_; +} + +void ThreeElementsVerificationRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string ThreeElementsVerificationRequest::getInputNumber() const { + return inputNumber_; +} + +void ThreeElementsVerificationRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string ThreeElementsVerificationRequest::getName() const { + return name_; +} + +void ThreeElementsVerificationRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string ThreeElementsVerificationRequest::getFlowName() const { + return flowName_; +} + +void ThreeElementsVerificationRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + diff --git a/dytnsapi/src/model/ThreeElementsVerificationResult.cc b/dytnsapi/src/model/ThreeElementsVerificationResult.cc new file mode 100644 index 000000000..e76982d35 --- /dev/null +++ b/dytnsapi/src/model/ThreeElementsVerificationResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +ThreeElementsVerificationResult::ThreeElementsVerificationResult() : + ServiceResult() +{} + +ThreeElementsVerificationResult::ThreeElementsVerificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ThreeElementsVerificationResult::~ThreeElementsVerificationResult() +{} + +void ThreeElementsVerificationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BasicCarrier"].isNull()) + data_.basicCarrier = dataNode["BasicCarrier"].asString(); + if(!dataNode["IsConsistent"].isNull()) + data_.isConsistent = std::stoi(dataNode["IsConsistent"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ThreeElementsVerificationResult::getMessage()const +{ + return message_; +} + +ThreeElementsVerificationResult::Data ThreeElementsVerificationResult::getData()const +{ + return data_; +} + +std::string ThreeElementsVerificationResult::getCode()const +{ + return code_; +} + diff --git a/dytnsapi/src/model/TwoElementsVerificationRequest.cc b/dytnsapi/src/model/TwoElementsVerificationRequest.cc new file mode 100644 index 000000000..12e782465 --- /dev/null +++ b/dytnsapi/src/model/TwoElementsVerificationRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::Dytnsapi::Model::TwoElementsVerificationRequest; + +TwoElementsVerificationRequest::TwoElementsVerificationRequest() + : RpcServiceRequest("dytnsapi", "2020-02-17", "TwoElementsVerification") { + setMethod(HttpRequest::Method::Post); +} + +TwoElementsVerificationRequest::~TwoElementsVerificationRequest() {} + +long TwoElementsVerificationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void TwoElementsVerificationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string TwoElementsVerificationRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void TwoElementsVerificationRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string TwoElementsVerificationRequest::getMask() const { + return mask_; +} + +void TwoElementsVerificationRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); +} + +std::string TwoElementsVerificationRequest::getResultCount() const { + return resultCount_; +} + +void TwoElementsVerificationRequest::setResultCount(const std::string &resultCount) { + resultCount_ = resultCount; + setParameter(std::string("ResultCount"), resultCount); +} + +std::string TwoElementsVerificationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void TwoElementsVerificationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long TwoElementsVerificationRequest::getOwnerId() const { + return ownerId_; +} + +void TwoElementsVerificationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string TwoElementsVerificationRequest::getNumberType() const { + return numberType_; +} + +void TwoElementsVerificationRequest::setNumberType(const std::string &numberType) { + numberType_ = numberType; + setParameter(std::string("NumberType"), numberType); +} + +std::string TwoElementsVerificationRequest::getAuthCode() const { + return authCode_; +} + +void TwoElementsVerificationRequest::setAuthCode(const std::string &authCode) { + authCode_ = authCode; + setParameter(std::string("AuthCode"), authCode); +} + +std::string TwoElementsVerificationRequest::getInputNumber() const { + return inputNumber_; +} + +void TwoElementsVerificationRequest::setInputNumber(const std::string &inputNumber) { + inputNumber_ = inputNumber; + setParameter(std::string("InputNumber"), inputNumber); +} + +std::string TwoElementsVerificationRequest::getName() const { + return name_; +} + +void TwoElementsVerificationRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string TwoElementsVerificationRequest::getFlowName() const { + return flowName_; +} + +void TwoElementsVerificationRequest::setFlowName(const std::string &flowName) { + flowName_ = flowName; + setParameter(std::string("FlowName"), flowName); +} + diff --git a/dytnsapi/src/model/TwoElementsVerificationResult.cc b/dytnsapi/src/model/TwoElementsVerificationResult.cc new file mode 100644 index 000000000..a3d80efc6 --- /dev/null +++ b/dytnsapi/src/model/TwoElementsVerificationResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dytnsapi; +using namespace AlibabaCloud::Dytnsapi::Model; + +TwoElementsVerificationResult::TwoElementsVerificationResult() : + ServiceResult() +{} + +TwoElementsVerificationResult::TwoElementsVerificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TwoElementsVerificationResult::~TwoElementsVerificationResult() +{} + +void TwoElementsVerificationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IsConsistent"].isNull()) + data_.isConsistent = std::stoi(dataNode["IsConsistent"].asString()); + if(!dataNode["BasicCarrier"].isNull()) + data_.basicCarrier = dataNode["BasicCarrier"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string TwoElementsVerificationResult::getMessage()const +{ + return message_; +} + +TwoElementsVerificationResult::Data TwoElementsVerificationResult::getData()const +{ + return data_; +} + +std::string TwoElementsVerificationResult::getCode()const +{ + return code_; +} +