Change api backend.
This commit is contained in:
@@ -23,20 +23,12 @@ set(dytnsapi_public_header
|
||||
set(dytnsapi_public_header_model
|
||||
include/alibabacloud/dytnsapi/model/DescribeEmptyNumberRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribeEmptyNumberResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribeEmptyNumberDetectResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberAnalysisResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberAttributeResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberOnlineTimeResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberOperatorAttributeResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberResaleResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneNumberStatusResult.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyRequest.h
|
||||
include/alibabacloud/dytnsapi/model/DescribePhoneTwiceTelVerifyResult.h
|
||||
include/alibabacloud/dytnsapi/model/InvalidPhoneNumberFilterRequest.h
|
||||
@@ -64,20 +56,12 @@ set(dytnsapi_src
|
||||
src/DytnsapiClient.cc
|
||||
src/model/DescribeEmptyNumberRequest.cc
|
||||
src/model/DescribeEmptyNumberResult.cc
|
||||
src/model/DescribeEmptyNumberDetectRequest.cc
|
||||
src/model/DescribeEmptyNumberDetectResult.cc
|
||||
src/model/DescribePhoneNumberAnalysisRequest.cc
|
||||
src/model/DescribePhoneNumberAnalysisResult.cc
|
||||
src/model/DescribePhoneNumberAttributeRequest.cc
|
||||
src/model/DescribePhoneNumberAttributeResult.cc
|
||||
src/model/DescribePhoneNumberOnlineTimeRequest.cc
|
||||
src/model/DescribePhoneNumberOnlineTimeResult.cc
|
||||
src/model/DescribePhoneNumberOperatorAttributeRequest.cc
|
||||
src/model/DescribePhoneNumberOperatorAttributeResult.cc
|
||||
src/model/DescribePhoneNumberResaleRequest.cc
|
||||
src/model/DescribePhoneNumberResaleResult.cc
|
||||
src/model/DescribePhoneNumberStatusRequest.cc
|
||||
src/model/DescribePhoneNumberStatusResult.cc
|
||||
src/model/DescribePhoneTwiceTelVerifyRequest.cc
|
||||
src/model/DescribePhoneTwiceTelVerifyResult.cc
|
||||
src/model/InvalidPhoneNumberFilterRequest.cc
|
||||
|
||||
@@ -24,20 +24,12 @@
|
||||
#include "DytnsapiExport.h"
|
||||
#include "model/DescribeEmptyNumberRequest.h"
|
||||
#include "model/DescribeEmptyNumberResult.h"
|
||||
#include "model/DescribeEmptyNumberDetectRequest.h"
|
||||
#include "model/DescribeEmptyNumberDetectResult.h"
|
||||
#include "model/DescribePhoneNumberAnalysisRequest.h"
|
||||
#include "model/DescribePhoneNumberAnalysisResult.h"
|
||||
#include "model/DescribePhoneNumberAttributeRequest.h"
|
||||
#include "model/DescribePhoneNumberAttributeResult.h"
|
||||
#include "model/DescribePhoneNumberOnlineTimeRequest.h"
|
||||
#include "model/DescribePhoneNumberOnlineTimeResult.h"
|
||||
#include "model/DescribePhoneNumberOperatorAttributeRequest.h"
|
||||
#include "model/DescribePhoneNumberOperatorAttributeResult.h"
|
||||
#include "model/DescribePhoneNumberResaleRequest.h"
|
||||
#include "model/DescribePhoneNumberResaleResult.h"
|
||||
#include "model/DescribePhoneNumberStatusRequest.h"
|
||||
#include "model/DescribePhoneNumberStatusResult.h"
|
||||
#include "model/DescribePhoneTwiceTelVerifyRequest.h"
|
||||
#include "model/DescribePhoneTwiceTelVerifyResult.h"
|
||||
#include "model/InvalidPhoneNumberFilterRequest.h"
|
||||
@@ -72,27 +64,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeEmptyNumberResult> DescribeEmptyNumberOutcome;
|
||||
typedef std::future<DescribeEmptyNumberOutcome> DescribeEmptyNumberOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribeEmptyNumberRequest&, const DescribeEmptyNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEmptyNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEmptyNumberDetectResult> DescribeEmptyNumberDetectOutcome;
|
||||
typedef std::future<DescribeEmptyNumberDetectOutcome> DescribeEmptyNumberDetectOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribeEmptyNumberDetectRequest&, const DescribeEmptyNumberDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEmptyNumberDetectAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberAnalysisResult> DescribePhoneNumberAnalysisOutcome;
|
||||
typedef std::future<DescribePhoneNumberAnalysisOutcome> DescribePhoneNumberAnalysisOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberAnalysisRequest&, const DescribePhoneNumberAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberAnalysisAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberAttributeResult> DescribePhoneNumberAttributeOutcome;
|
||||
typedef std::future<DescribePhoneNumberAttributeOutcome> DescribePhoneNumberAttributeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberAttributeRequest&, const DescribePhoneNumberAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberOnlineTimeResult> DescribePhoneNumberOnlineTimeOutcome;
|
||||
typedef std::future<DescribePhoneNumberOnlineTimeOutcome> DescribePhoneNumberOnlineTimeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberOnlineTimeRequest&, const DescribePhoneNumberOnlineTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberOnlineTimeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberOperatorAttributeResult> DescribePhoneNumberOperatorAttributeOutcome;
|
||||
typedef std::future<DescribePhoneNumberOperatorAttributeOutcome> DescribePhoneNumberOperatorAttributeOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberOperatorAttributeRequest&, const DescribePhoneNumberOperatorAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberOperatorAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberResaleResult> DescribePhoneNumberResaleOutcome;
|
||||
typedef std::future<DescribePhoneNumberResaleOutcome> DescribePhoneNumberResaleOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberResaleRequest&, const DescribePhoneNumberResaleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberResaleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneNumberStatusResult> DescribePhoneNumberStatusOutcome;
|
||||
typedef std::future<DescribePhoneNumberStatusOutcome> DescribePhoneNumberStatusOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneNumberStatusRequest&, const DescribePhoneNumberStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneNumberStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneTwiceTelVerifyResult> DescribePhoneTwiceTelVerifyOutcome;
|
||||
typedef std::future<DescribePhoneTwiceTelVerifyOutcome> DescribePhoneTwiceTelVerifyOutcomeCallable;
|
||||
typedef std::function<void(const DytnsapiClient*, const Model::DescribePhoneTwiceTelVerifyRequest&, const DescribePhoneTwiceTelVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneTwiceTelVerifyAsyncHandler;
|
||||
@@ -134,27 +114,15 @@ namespace AlibabaCloud
|
||||
DescribeEmptyNumberOutcome describeEmptyNumber(const Model::DescribeEmptyNumberRequest &request)const;
|
||||
void describeEmptyNumberAsync(const Model::DescribeEmptyNumberRequest& request, const DescribeEmptyNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEmptyNumberOutcomeCallable describeEmptyNumberCallable(const Model::DescribeEmptyNumberRequest& request) const;
|
||||
DescribeEmptyNumberDetectOutcome describeEmptyNumberDetect(const Model::DescribeEmptyNumberDetectRequest &request)const;
|
||||
void describeEmptyNumberDetectAsync(const Model::DescribeEmptyNumberDetectRequest& request, const DescribeEmptyNumberDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEmptyNumberDetectOutcomeCallable describeEmptyNumberDetectCallable(const Model::DescribeEmptyNumberDetectRequest& request) const;
|
||||
DescribePhoneNumberAnalysisOutcome describePhoneNumberAnalysis(const Model::DescribePhoneNumberAnalysisRequest &request)const;
|
||||
void describePhoneNumberAnalysisAsync(const Model::DescribePhoneNumberAnalysisRequest& request, const DescribePhoneNumberAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberAnalysisOutcomeCallable describePhoneNumberAnalysisCallable(const Model::DescribePhoneNumberAnalysisRequest& request) const;
|
||||
DescribePhoneNumberAttributeOutcome describePhoneNumberAttribute(const Model::DescribePhoneNumberAttributeRequest &request)const;
|
||||
void describePhoneNumberAttributeAsync(const Model::DescribePhoneNumberAttributeRequest& request, const DescribePhoneNumberAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberAttributeOutcomeCallable describePhoneNumberAttributeCallable(const Model::DescribePhoneNumberAttributeRequest& request) const;
|
||||
DescribePhoneNumberOnlineTimeOutcome describePhoneNumberOnlineTime(const Model::DescribePhoneNumberOnlineTimeRequest &request)const;
|
||||
void describePhoneNumberOnlineTimeAsync(const Model::DescribePhoneNumberOnlineTimeRequest& request, const DescribePhoneNumberOnlineTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberOnlineTimeOutcomeCallable describePhoneNumberOnlineTimeCallable(const Model::DescribePhoneNumberOnlineTimeRequest& request) const;
|
||||
DescribePhoneNumberOperatorAttributeOutcome describePhoneNumberOperatorAttribute(const Model::DescribePhoneNumberOperatorAttributeRequest &request)const;
|
||||
void describePhoneNumberOperatorAttributeAsync(const Model::DescribePhoneNumberOperatorAttributeRequest& request, const DescribePhoneNumberOperatorAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberOperatorAttributeOutcomeCallable describePhoneNumberOperatorAttributeCallable(const Model::DescribePhoneNumberOperatorAttributeRequest& request) const;
|
||||
DescribePhoneNumberResaleOutcome describePhoneNumberResale(const Model::DescribePhoneNumberResaleRequest &request)const;
|
||||
void describePhoneNumberResaleAsync(const Model::DescribePhoneNumberResaleRequest& request, const DescribePhoneNumberResaleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberResaleOutcomeCallable describePhoneNumberResaleCallable(const Model::DescribePhoneNumberResaleRequest& request) const;
|
||||
DescribePhoneNumberStatusOutcome describePhoneNumberStatus(const Model::DescribePhoneNumberStatusRequest &request)const;
|
||||
void describePhoneNumberStatusAsync(const Model::DescribePhoneNumberStatusRequest& request, const DescribePhoneNumberStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneNumberStatusOutcomeCallable describePhoneNumberStatusCallable(const Model::DescribePhoneNumberStatusRequest& request) const;
|
||||
DescribePhoneTwiceTelVerifyOutcome describePhoneTwiceTelVerify(const Model::DescribePhoneTwiceTelVerifyRequest &request)const;
|
||||
void describePhoneTwiceTelVerifyAsync(const Model::DescribePhoneTwiceTelVerifyRequest& request, const DescribePhoneTwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneTwiceTelVerifyOutcomeCallable describePhoneTwiceTelVerifyCallable(const Model::DescribePhoneTwiceTelVerifyRequest& request) const;
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dytnsapi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribeEmptyNumberDetectRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeEmptyNumberDetectRequest();
|
||||
~DescribeEmptyNumberDetectRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getEncryptType() const;
|
||||
void setEncryptType(const std::string &encryptType);
|
||||
std::string getOfferType() const;
|
||||
void setOfferType(const std::string &offerType);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPhone() const;
|
||||
void setPhone(const std::string &phone);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string encryptType_;
|
||||
std::string offerType_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string phone_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dytnsapi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dytnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribeEmptyNumberDetectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataList
|
||||
{
|
||||
std::string status;
|
||||
std::string number;
|
||||
};
|
||||
|
||||
|
||||
DescribeEmptyNumberDetectResult();
|
||||
explicit DescribeEmptyNumberDetectResult(const std::string &payload);
|
||||
~DescribeEmptyNumberDetectResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataList> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataList> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEEMPTYNUMBERDETECTRESULT_H_
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~DescribeEmptyNumberRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
@@ -49,6 +51,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dytnsapi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAttributeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePhoneNumberAttributeRequest();
|
||||
~DescribePhoneNumberAttributeRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumber_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dytnsapi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTEREQUEST_H_
|
||||
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dytnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PhoneNumberAttribute
|
||||
{
|
||||
std::string basicCarrier;
|
||||
long numberSegment;
|
||||
bool isNumberPortability;
|
||||
std::string carrier;
|
||||
std::string city;
|
||||
std::string province;
|
||||
};
|
||||
|
||||
|
||||
DescribePhoneNumberAttributeResult();
|
||||
explicit DescribePhoneNumberAttributeResult(const std::string &payload);
|
||||
~DescribePhoneNumberAttributeResult();
|
||||
std::string getMessage()const;
|
||||
PhoneNumberAttribute getPhoneNumberAttribute()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
PhoneNumberAttribute phoneNumberAttribute_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERATTRIBUTERESULT_H_
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~DescribePhoneNumberOnlineTimeRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
@@ -55,6 +57,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dytnsapi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberResaleRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePhoneNumberResaleRequest();
|
||||
~DescribePhoneNumberResaleRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSince() const;
|
||||
void setSince(const std::string &since);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumber_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string since_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dytnsapi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALEREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dytnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberResaleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TwiceTelVerify
|
||||
{
|
||||
std::string carrier;
|
||||
int verifyResult;
|
||||
};
|
||||
|
||||
|
||||
DescribePhoneNumberResaleResult();
|
||||
explicit DescribePhoneNumberResaleResult(const std::string &payload);
|
||||
~DescribePhoneNumberResaleResult();
|
||||
std::string getMessage()const;
|
||||
TwiceTelVerify getTwiceTelVerify()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
TwiceTelVerify twiceTelVerify_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERRESALERESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dytnsapi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePhoneNumberStatusRequest();
|
||||
~DescribePhoneNumberStatusRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string phoneNumber_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dytnsapi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSREQUEST_H_
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dytnsapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYTNSAPI_EXPORT DescribePhoneNumberStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PhoneStatus
|
||||
{
|
||||
std::string status;
|
||||
std::string serialId;
|
||||
std::string carrier;
|
||||
};
|
||||
|
||||
|
||||
DescribePhoneNumberStatusResult();
|
||||
explicit DescribePhoneNumberStatusResult(const std::string &payload);
|
||||
~DescribePhoneNumberStatusResult();
|
||||
PhoneStatus getPhoneStatus()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PhoneStatus phoneStatus_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_DESCRIBEPHONENUMBERSTATUSRESULT_H_
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
@@ -58,6 +60,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string startTime_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
|
||||
@@ -32,8 +32,12 @@ public:
|
||||
~PhoneNumberStatusForAccountRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getMask() const;
|
||||
void setMask(const std::string &mask);
|
||||
std::string getResultCount() const;
|
||||
@@ -53,7 +57,9 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
std::string resultCount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -32,8 +32,12 @@ public:
|
||||
~PhoneNumberStatusForRealRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getMask() const;
|
||||
void setMask(const std::string &mask);
|
||||
std::string getResultCount() const;
|
||||
@@ -53,7 +57,9 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
std::string resultCount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -32,8 +32,12 @@ public:
|
||||
~PhoneNumberStatusForSmsRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getMask() const;
|
||||
void setMask(const std::string &mask);
|
||||
std::string getResultCount() const;
|
||||
@@ -53,7 +57,9 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
std::string resultCount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -32,8 +32,12 @@ public:
|
||||
~PhoneNumberStatusForVirtualRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getMask() const;
|
||||
void setMask(const std::string &mask);
|
||||
std::string getResultCount() const;
|
||||
@@ -53,7 +57,9 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
std::string resultCount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -32,8 +32,12 @@ public:
|
||||
~PhoneNumberStatusForVoiceRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getMask() const;
|
||||
void setMask(const std::string &mask);
|
||||
std::string getResultCount() const;
|
||||
@@ -53,7 +57,9 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
std::string resultCount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~ThreeElementsVerificationRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getCertCode() const;
|
||||
@@ -57,6 +59,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string certCode_;
|
||||
std::string routeName_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~TwoElementsVerificationRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRouteName() const;
|
||||
@@ -57,6 +59,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string routeName_;
|
||||
std::string mask_;
|
||||
|
||||
@@ -87,42 +87,6 @@ DytnsapiClient::DescribeEmptyNumberOutcomeCallable DytnsapiClient::describeEmpty
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
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();
|
||||
@@ -159,42 +123,6 @@ DytnsapiClient::DescribePhoneNumberAnalysisOutcomeCallable DytnsapiClient::descr
|
||||
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();
|
||||
@@ -267,78 +195,6 @@ DytnsapiClient::DescribePhoneNumberOperatorAttributeOutcomeCallable DytnsapiClie
|
||||
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();
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeEmptyNumberRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEmptyNumberRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void DescribeEmptyNumberRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string DescribeEmptyNumberRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribePhoneNumberOnlineTimeRequest::setResourceOwnerId(long resourceOwner
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePhoneNumberOnlineTimeRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void DescribePhoneNumberOnlineTimeRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string DescribePhoneNumberOnlineTimeRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* 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_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribePhoneTwiceTelVerifyRequest::setStartTime(const std::string &startTi
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribePhoneTwiceTelVerifyRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void DescribePhoneTwiceTelVerifyRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string DescribePhoneTwiceTelVerifyRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void PhoneNumberStatusForAccountRequest::setResourceOwnerId(long resourceOwnerId
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForAccountRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForAccountRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForAccountRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void PhoneNumberStatusForAccountRequest::setAccessKeyId(const std::string &acces
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForAccountRequest::getRouteName() const {
|
||||
return routeName_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForAccountRequest::setRouteName(const std::string &routeName) {
|
||||
routeName_ = routeName;
|
||||
setParameter(std::string("RouteName"), routeName);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForAccountRequest::getMask() const {
|
||||
return mask_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void PhoneNumberStatusForRealRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForRealRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForRealRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForRealRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void PhoneNumberStatusForRealRequest::setAccessKeyId(const std::string &accessKe
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForRealRequest::getRouteName() const {
|
||||
return routeName_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForRealRequest::setRouteName(const std::string &routeName) {
|
||||
routeName_ = routeName;
|
||||
setParameter(std::string("RouteName"), routeName);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForRealRequest::getMask() const {
|
||||
return mask_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void PhoneNumberStatusForSmsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForSmsRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForSmsRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForSmsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void PhoneNumberStatusForSmsRequest::setAccessKeyId(const std::string &accessKey
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForSmsRequest::getRouteName() const {
|
||||
return routeName_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForSmsRequest::setRouteName(const std::string &routeName) {
|
||||
routeName_ = routeName;
|
||||
setParameter(std::string("RouteName"), routeName);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForSmsRequest::getMask() const {
|
||||
return mask_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void PhoneNumberStatusForVirtualRequest::setResourceOwnerId(long resourceOwnerId
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVirtualRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForVirtualRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVirtualRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void PhoneNumberStatusForVirtualRequest::setAccessKeyId(const std::string &acces
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVirtualRequest::getRouteName() const {
|
||||
return routeName_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForVirtualRequest::setRouteName(const std::string &routeName) {
|
||||
routeName_ = routeName;
|
||||
setParameter(std::string("RouteName"), routeName);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVirtualRequest::getMask() const {
|
||||
return mask_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void PhoneNumberStatusForVoiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVoiceRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForVoiceRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVoiceRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void PhoneNumberStatusForVoiceRequest::setAccessKeyId(const std::string &accessK
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVoiceRequest::getRouteName() const {
|
||||
return routeName_;
|
||||
}
|
||||
|
||||
void PhoneNumberStatusForVoiceRequest::setRouteName(const std::string &routeName) {
|
||||
routeName_ = routeName;
|
||||
setParameter(std::string("RouteName"), routeName);
|
||||
}
|
||||
|
||||
std::string PhoneNumberStatusForVoiceRequest::getMask() const {
|
||||
return mask_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void ThreeElementsVerificationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ThreeElementsVerificationRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void ThreeElementsVerificationRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string ThreeElementsVerificationRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void TwoElementsVerificationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string TwoElementsVerificationRequest::getExtendFunction() const {
|
||||
return extendFunction_;
|
||||
}
|
||||
|
||||
void TwoElementsVerificationRequest::setExtendFunction(const std::string &extendFunction) {
|
||||
extendFunction_ = extendFunction;
|
||||
setParameter(std::string("ExtendFunction"), extendFunction);
|
||||
}
|
||||
|
||||
std::string TwoElementsVerificationRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user