Automatically generate sdk tasks.
This commit is contained in:
150
dytnsapi/CMakeLists.txt
Normal file
150
dytnsapi/CMakeLists.txt
Normal file
@@ -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}
|
||||
)
|
||||
182
dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h
Normal file
182
dytnsapi/include/alibabacloud/dytnsapi/DytnsapiClient.h
Normal file
@@ -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 <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#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<Error, Model::DescribeEmptyNumberDetectResult> DescribeEmptyNumberDetectOutcome;
|
||||
typedef std::future<DescribeEmptyNumberDetectOutcome> DescribeEmptyNumberDetectOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribeEmptyNumberDetectRequest&, const DescribeEmptyNumberDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEmptyNumberDetectAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberAnalysisResult> DescribePhoneNumberAnalysisOutcome;
|
||||
typedef std::future<DescribePhoneNumberAnalysisOutcome> DescribePhoneNumberAnalysisOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberAnalysisRequest&, const DescribePhoneNumberAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberAnalysisAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberAttributeResult> DescribePhoneNumberAttributeOutcome;
|
||||
typedef std::future<DescribePhoneNumberAttributeOutcome> DescribePhoneNumberAttributeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberAttributeRequest&, const DescribePhoneNumberAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberOnlineTimeResult> DescribePhoneNumberOnlineTimeOutcome;
|
||||
typedef std::future<DescribePhoneNumberOnlineTimeOutcome> DescribePhoneNumberOnlineTimeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberOnlineTimeRequest&, const DescribePhoneNumberOnlineTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberOnlineTimeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberOperatorAttributeResult> DescribePhoneNumberOperatorAttributeOutcome;
|
||||
typedef std::future<DescribePhoneNumberOperatorAttributeOutcome> DescribePhoneNumberOperatorAttributeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberOperatorAttributeRequest&, const DescribePhoneNumberOperatorAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberOperatorAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberResaleResult> DescribePhoneNumberResaleOutcome;
|
||||
typedef std::future<DescribePhoneNumberResaleOutcome> DescribePhoneNumberResaleOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberResaleRequest&, const DescribePhoneNumberResaleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberResaleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberStatusResult> DescribePhoneNumberStatusOutcome;
|
||||
typedef std::future<DescribePhoneNumberStatusOutcome> DescribePhoneNumberStatusOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberStatusRequest&, const DescribePhoneNumberStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneTwiceTelVerifyResult> DescribePhoneTwiceTelVerifyOutcome;
|
||||
typedef std::future<DescribePhoneTwiceTelVerifyOutcome> DescribePhoneTwiceTelVerifyOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneTwiceTelVerifyRequest&, const DescribePhoneTwiceTelVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneTwiceTelVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::InvalidPhoneNumberFilterResult> InvalidPhoneNumberFilterOutcome;
|
||||
typedef std::future<InvalidPhoneNumberFilterOutcome> InvalidPhoneNumberFilterOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::InvalidPhoneNumberFilterRequest&, const InvalidPhoneNumberFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InvalidPhoneNumberFilterAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberEncryptResult> PhoneNumberEncryptOutcome;
|
||||
typedef std::future<PhoneNumberEncryptOutcome> PhoneNumberEncryptOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberEncryptRequest&, const PhoneNumberEncryptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberEncryptAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberStatusForAccountResult> PhoneNumberStatusForAccountOutcome;
|
||||
typedef std::future<PhoneNumberStatusForAccountOutcome> PhoneNumberStatusForAccountOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForAccountRequest&, const PhoneNumberStatusForAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberStatusForRealResult> PhoneNumberStatusForRealOutcome;
|
||||
typedef std::future<PhoneNumberStatusForRealOutcome> PhoneNumberStatusForRealOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForRealRequest&, const PhoneNumberStatusForRealOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForRealAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberStatusForSmsResult> PhoneNumberStatusForSmsOutcome;
|
||||
typedef std::future<PhoneNumberStatusForSmsOutcome> PhoneNumberStatusForSmsOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForSmsRequest&, const PhoneNumberStatusForSmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForSmsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberStatusForVirtualResult> PhoneNumberStatusForVirtualOutcome;
|
||||
typedef std::future<PhoneNumberStatusForVirtualOutcome> PhoneNumberStatusForVirtualOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForVirtualRequest&, const PhoneNumberStatusForVirtualOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForVirtualAsyncHandler;
|
||||
typedef Outcome<Error, Model::PhoneNumberStatusForVoiceResult> PhoneNumberStatusForVoiceOutcome;
|
||||
typedef std::future<PhoneNumberStatusForVoiceOutcome> PhoneNumberStatusForVoiceOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForVoiceRequest&, const PhoneNumberStatusForVoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForVoiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ThreeElementsVerificationResult> ThreeElementsVerificationOutcome;
|
||||
typedef std::future<ThreeElementsVerificationOutcome> ThreeElementsVerificationOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::ThreeElementsVerificationRequest&, const ThreeElementsVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ThreeElementsVerificationAsyncHandler;
|
||||
typedef Outcome<Error, Model::TwoElementsVerificationResult> TwoElementsVerificationOutcome;
|
||||
typedef std::future<TwoElementsVerificationOutcome> TwoElementsVerificationOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::TwoElementsVerificationRequest&, const TwoElementsVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwoElementsVerificationAsyncHandler;
|
||||
|
||||
DytnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DytnsapiClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
TwoElementsVerificationOutcomeCallable twoElementsVerificationCallable(const Model::TwoElementsVerificationRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_DYTNSAPICLIENT_H_
|
||||
32
dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h
Normal file
32
dytnsapi/include/alibabacloud/dytnsapi/DytnsapiExport.h
Normal file
@@ -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 <alibabacloud/core/Global.h>
|
||||
|
||||
#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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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<DataList> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataList> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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<DataList> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataList> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERANALYSISRESULT_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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_INVALIDPHONENUMBERFILTERRESULT_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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERENCRYPTRESULT_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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
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_
|
||||
665
dytnsapi/src/DytnsapiClient.cc
Normal file
665
dytnsapi/src/DytnsapiClient.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/DytnsapiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
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<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DytnsapiClient::DytnsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DytnsapiClient::DytnsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
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<const AsyncCallerContext>& 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<std::packaged_task<DescribeEmptyNumberDetectOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberAnalysisOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberAttributeOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberOnlineTimeOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberOperatorAttributeOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberResaleOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneNumberStatusOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribePhoneTwiceTelVerifyOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<InvalidPhoneNumberFilterOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberEncryptOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberStatusForAccountOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberStatusForRealOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberStatusForSmsOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberStatusForVirtualOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<PhoneNumberStatusForVoiceOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ThreeElementsVerificationOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<TwoElementsVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->twoElementsVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
90
dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc
Normal file
90
dytnsapi/src/model/DescribeEmptyNumberDetectRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
73
dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc
Normal file
73
dytnsapi/src/model/DescribeEmptyNumberDetectResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataList> DescribeEmptyNumberDetectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeEmptyNumberDetectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc
Normal file
117
dytnsapi/src/model/DescribePhoneNumberAnalysisRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
73
dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc
Normal file
73
dytnsapi/src/model/DescribePhoneNumberAnalysisResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataList> DescribePhoneNumberAnalysisResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribePhoneNumberAnalysisResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc
Normal file
72
dytnsapi/src/model/DescribePhoneNumberAttributeRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
76
dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc
Normal file
76
dytnsapi/src/model/DescribePhoneNumberAttributeResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
108
dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc
Normal file
108
dytnsapi/src/model/DescribePhoneNumberOnlineTimeRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc
Normal file
66
dytnsapi/src/model/DescribePhoneNumberOnlineTimeResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
81
dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc
Normal file
81
dytnsapi/src/model/DescribePhoneNumberResaleRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/DescribePhoneNumberResaleResult.cc
Normal file
68
dytnsapi/src/model/DescribePhoneNumberResaleResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
72
dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc
Normal file
72
dytnsapi/src/model/DescribePhoneNumberStatusRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
70
dytnsapi/src/model/DescribePhoneNumberStatusResult.cc
Normal file
70
dytnsapi/src/model/DescribePhoneNumberStatusResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
126
dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc
Normal file
126
dytnsapi/src/model/DescribePhoneTwiceTelVerifyRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc
Normal file
68
dytnsapi/src/model/DescribePhoneTwiceTelVerifyResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
90
dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc
Normal file
90
dytnsapi/src/model/InvalidPhoneNumberFilterRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
77
dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc
Normal file
77
dytnsapi/src/model/InvalidPhoneNumberFilterResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataItem> InvalidPhoneNumberFilterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string InvalidPhoneNumberFilterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
90
dytnsapi/src/model/PhoneNumberEncryptRequest.cc
Normal file
90
dytnsapi/src/model/PhoneNumberEncryptRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberEncryptRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
75
dytnsapi/src/model/PhoneNumberEncryptResult.cc
Normal file
75
dytnsapi/src/model/PhoneNumberEncryptResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataItem> PhoneNumberEncryptResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PhoneNumberEncryptResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc
Normal file
117
dytnsapi/src/model/PhoneNumberStatusForAccountRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc
Normal file
68
dytnsapi/src/model/PhoneNumberStatusForAccountResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc
Normal file
117
dytnsapi/src/model/PhoneNumberStatusForRealRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/PhoneNumberStatusForRealResult.cc
Normal file
68
dytnsapi/src/model/PhoneNumberStatusForRealResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc
Normal file
117
dytnsapi/src/model/PhoneNumberStatusForSmsRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc
Normal file
68
dytnsapi/src/model/PhoneNumberStatusForSmsResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc
Normal file
117
dytnsapi/src/model/PhoneNumberStatusForVirtualRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
66
dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc
Normal file
66
dytnsapi/src/model/PhoneNumberStatusForVirtualResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForVirtualResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
117
dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc
Normal file
117
dytnsapi/src/model/PhoneNumberStatusForVoiceRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc
Normal file
68
dytnsapi/src/model/PhoneNumberStatusForVoiceResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/PhoneNumberStatusForVoiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
126
dytnsapi/src/model/ThreeElementsVerificationRequest.cc
Normal file
126
dytnsapi/src/model/ThreeElementsVerificationRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/ThreeElementsVerificationRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/ThreeElementsVerificationResult.cc
Normal file
68
dytnsapi/src/model/ThreeElementsVerificationResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/ThreeElementsVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
126
dytnsapi/src/model/TwoElementsVerificationRequest.cc
Normal file
126
dytnsapi/src/model/TwoElementsVerificationRequest.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/TwoElementsVerificationRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
68
dytnsapi/src/model/TwoElementsVerificationResult.cc
Normal file
68
dytnsapi/src/model/TwoElementsVerificationResult.cc
Normal file
@@ -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 <alibabacloud/dytnsapi/model/TwoElementsVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user