Automatically generate sdk tasks.
This commit is contained in:
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