This commit is contained in:
wb-hx510875
2019-09-19 11:14:07 +08:00
parent 2f6036b803
commit ba463ae2dc
1795 changed files with 41555 additions and 38367 deletions

View File

@@ -25,6 +25,8 @@ set(dyvmsapi_public_header_model
include/alibabacloud/dyvmsapi/model/AddRtcAccountResult.h
include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallRequest.h
include/alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h
include/alibabacloud/dyvmsapi/model/BindNumberAndVoipIdRequest.h
include/alibabacloud/dyvmsapi/model/BindNumberAndVoipIdResult.h
include/alibabacloud/dyvmsapi/model/CancelCallRequest.h
include/alibabacloud/dyvmsapi/model/CancelCallResult.h
include/alibabacloud/dyvmsapi/model/CancelOrderRobotTaskRequest.h
@@ -69,6 +71,8 @@ set(dyvmsapi_public_header_model
include/alibabacloud/dyvmsapi/model/StartRobotTaskResult.h
include/alibabacloud/dyvmsapi/model/StopRobotTaskRequest.h
include/alibabacloud/dyvmsapi/model/StopRobotTaskResult.h
include/alibabacloud/dyvmsapi/model/UnbindNumberAndVoipIdRequest.h
include/alibabacloud/dyvmsapi/model/UnbindNumberAndVoipIdResult.h
include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h
include/alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h
include/alibabacloud/dyvmsapi/model/VoipAddAccountRequest.h
@@ -82,6 +86,8 @@ set(dyvmsapi_src
src/model/AddRtcAccountResult.cc
src/model/BatchRobotSmartCallRequest.cc
src/model/BatchRobotSmartCallResult.cc
src/model/BindNumberAndVoipIdRequest.cc
src/model/BindNumberAndVoipIdResult.cc
src/model/CancelCallRequest.cc
src/model/CancelCallResult.cc
src/model/CancelOrderRobotTaskRequest.cc
@@ -126,6 +132,8 @@ set(dyvmsapi_src
src/model/StartRobotTaskResult.cc
src/model/StopRobotTaskRequest.cc
src/model/StopRobotTaskResult.cc
src/model/UnbindNumberAndVoipIdRequest.cc
src/model/UnbindNumberAndVoipIdResult.cc
src/model/UploadRobotTaskCalledFileRequest.cc
src/model/UploadRobotTaskCalledFileResult.cc
src/model/VoipAddAccountRequest.cc

View File

@@ -26,6 +26,8 @@
#include "model/AddRtcAccountResult.h"
#include "model/BatchRobotSmartCallRequest.h"
#include "model/BatchRobotSmartCallResult.h"
#include "model/BindNumberAndVoipIdRequest.h"
#include "model/BindNumberAndVoipIdResult.h"
#include "model/CancelCallRequest.h"
#include "model/CancelCallResult.h"
#include "model/CancelOrderRobotTaskRequest.h"
@@ -70,6 +72,8 @@
#include "model/StartRobotTaskResult.h"
#include "model/StopRobotTaskRequest.h"
#include "model/StopRobotTaskResult.h"
#include "model/UnbindNumberAndVoipIdRequest.h"
#include "model/UnbindNumberAndVoipIdResult.h"
#include "model/UploadRobotTaskCalledFileRequest.h"
#include "model/UploadRobotTaskCalledFileResult.h"
#include "model/VoipAddAccountRequest.h"
@@ -91,6 +95,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BatchRobotSmartCallResult> BatchRobotSmartCallOutcome;
typedef std::future<BatchRobotSmartCallOutcome> BatchRobotSmartCallOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::BatchRobotSmartCallRequest&, const BatchRobotSmartCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchRobotSmartCallAsyncHandler;
typedef Outcome<Error, Model::BindNumberAndVoipIdResult> BindNumberAndVoipIdOutcome;
typedef std::future<BindNumberAndVoipIdOutcome> BindNumberAndVoipIdOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::BindNumberAndVoipIdRequest&, const BindNumberAndVoipIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindNumberAndVoipIdAsyncHandler;
typedef Outcome<Error, Model::CancelCallResult> CancelCallOutcome;
typedef std::future<CancelCallOutcome> CancelCallOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::CancelCallRequest&, const CancelCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelCallAsyncHandler;
@@ -157,6 +164,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StopRobotTaskResult> StopRobotTaskOutcome;
typedef std::future<StopRobotTaskOutcome> StopRobotTaskOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::StopRobotTaskRequest&, const StopRobotTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopRobotTaskAsyncHandler;
typedef Outcome<Error, Model::UnbindNumberAndVoipIdResult> UnbindNumberAndVoipIdOutcome;
typedef std::future<UnbindNumberAndVoipIdOutcome> UnbindNumberAndVoipIdOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::UnbindNumberAndVoipIdRequest&, const UnbindNumberAndVoipIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindNumberAndVoipIdAsyncHandler;
typedef Outcome<Error, Model::UploadRobotTaskCalledFileResult> UploadRobotTaskCalledFileOutcome;
typedef std::future<UploadRobotTaskCalledFileOutcome> UploadRobotTaskCalledFileOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::UploadRobotTaskCalledFileRequest&, const UploadRobotTaskCalledFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadRobotTaskCalledFileAsyncHandler;
@@ -177,6 +187,9 @@ namespace AlibabaCloud
BatchRobotSmartCallOutcome batchRobotSmartCall(const Model::BatchRobotSmartCallRequest &request)const;
void batchRobotSmartCallAsync(const Model::BatchRobotSmartCallRequest& request, const BatchRobotSmartCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchRobotSmartCallOutcomeCallable batchRobotSmartCallCallable(const Model::BatchRobotSmartCallRequest& request) const;
BindNumberAndVoipIdOutcome bindNumberAndVoipId(const Model::BindNumberAndVoipIdRequest &request)const;
void bindNumberAndVoipIdAsync(const Model::BindNumberAndVoipIdRequest& request, const BindNumberAndVoipIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindNumberAndVoipIdOutcomeCallable bindNumberAndVoipIdCallable(const Model::BindNumberAndVoipIdRequest& request) const;
CancelCallOutcome cancelCall(const Model::CancelCallRequest &request)const;
void cancelCallAsync(const Model::CancelCallRequest& request, const CancelCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CancelCallOutcomeCallable cancelCallCallable(const Model::CancelCallRequest& request) const;
@@ -243,6 +256,9 @@ namespace AlibabaCloud
StopRobotTaskOutcome stopRobotTask(const Model::StopRobotTaskRequest &request)const;
void stopRobotTaskAsync(const Model::StopRobotTaskRequest& request, const StopRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopRobotTaskOutcomeCallable stopRobotTaskCallable(const Model::StopRobotTaskRequest& request) const;
UnbindNumberAndVoipIdOutcome unbindNumberAndVoipId(const Model::UnbindNumberAndVoipIdRequest &request)const;
void unbindNumberAndVoipIdAsync(const Model::UnbindNumberAndVoipIdRequest& request, const UnbindNumberAndVoipIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindNumberAndVoipIdOutcomeCallable unbindNumberAndVoipIdCallable(const Model::UnbindNumberAndVoipIdRequest& request) const;
UploadRobotTaskCalledFileOutcome uploadRobotTaskCalledFile(const Model::UploadRobotTaskCalledFileRequest &request)const;
void uploadRobotTaskCalledFileAsync(const Model::UploadRobotTaskCalledFileRequest& request, const UploadRobotTaskCalledFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadRobotTaskCalledFileOutcomeCallable uploadRobotTaskCalledFileCallable(const Model::UploadRobotTaskCalledFileRequest& request) const;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT BindNumberAndVoipIdRequest : public RpcServiceRequest
{
public:
BindNumberAndVoipIdRequest();
~BindNumberAndVoipIdRequest();
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 getVoipId()const;
void setVoipId(const std::string& voipId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string phoneNumber_;
long ownerId_;
std::string accessKeyId_;
std::string voipId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT BindNumberAndVoipIdResult : public ServiceResult
{
public:
BindNumberAndVoipIdResult();
explicit BindNumberAndVoipIdResult(const std::string &payload);
~BindNumberAndVoipIdResult();
std::string getMessage()const;
std::string getModule()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string module_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_BINDNUMBERANDVOIPIDRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT UnbindNumberAndVoipIdRequest : public RpcServiceRequest
{
public:
UnbindNumberAndVoipIdRequest();
~UnbindNumberAndVoipIdRequest();
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 getVoipId()const;
void setVoipId(const std::string& voipId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string phoneNumber_;
long ownerId_;
std::string accessKeyId_;
std::string voipId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT UnbindNumberAndVoipIdResult : public ServiceResult
{
public:
UnbindNumberAndVoipIdResult();
explicit UnbindNumberAndVoipIdResult(const std::string &payload);
~UnbindNumberAndVoipIdResult();
std::string getMessage()const;
std::string getModule()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string module_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_UNBINDNUMBERANDVOIPIDRESULT_H_

View File

@@ -123,6 +123,42 @@ DyvmsapiClient::BatchRobotSmartCallOutcomeCallable DyvmsapiClient::batchRobotSma
return task->get_future();
}
DyvmsapiClient::BindNumberAndVoipIdOutcome DyvmsapiClient::bindNumberAndVoipId(const BindNumberAndVoipIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindNumberAndVoipIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindNumberAndVoipIdOutcome(BindNumberAndVoipIdResult(outcome.result()));
else
return BindNumberAndVoipIdOutcome(outcome.error());
}
void DyvmsapiClient::bindNumberAndVoipIdAsync(const BindNumberAndVoipIdRequest& request, const BindNumberAndVoipIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindNumberAndVoipId(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::BindNumberAndVoipIdOutcomeCallable DyvmsapiClient::bindNumberAndVoipIdCallable(const BindNumberAndVoipIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindNumberAndVoipIdOutcome()>>(
[this, request]()
{
return this->bindNumberAndVoipId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::CancelCallOutcome DyvmsapiClient::cancelCall(const CancelCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +951,42 @@ DyvmsapiClient::StopRobotTaskOutcomeCallable DyvmsapiClient::stopRobotTaskCallab
return task->get_future();
}
DyvmsapiClient::UnbindNumberAndVoipIdOutcome DyvmsapiClient::unbindNumberAndVoipId(const UnbindNumberAndVoipIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnbindNumberAndVoipIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnbindNumberAndVoipIdOutcome(UnbindNumberAndVoipIdResult(outcome.result()));
else
return UnbindNumberAndVoipIdOutcome(outcome.error());
}
void DyvmsapiClient::unbindNumberAndVoipIdAsync(const UnbindNumberAndVoipIdRequest& request, const UnbindNumberAndVoipIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unbindNumberAndVoipId(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::UnbindNumberAndVoipIdOutcomeCallable DyvmsapiClient::unbindNumberAndVoipIdCallable(const UnbindNumberAndVoipIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnbindNumberAndVoipIdOutcome()>>(
[this, request]()
{
return this->unbindNumberAndVoipId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::UploadRobotTaskCalledFileOutcome DyvmsapiClient::uploadRobotTaskCalledFile(const UploadRobotTaskCalledFileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,93 @@
/*
* 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/dyvmsapi/model/BindNumberAndVoipIdRequest.h>
using AlibabaCloud::Dyvmsapi::Model::BindNumberAndVoipIdRequest;
BindNumberAndVoipIdRequest::BindNumberAndVoipIdRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "BindNumberAndVoipId")
{}
BindNumberAndVoipIdRequest::~BindNumberAndVoipIdRequest()
{}
long BindNumberAndVoipIdRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindNumberAndVoipIdRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindNumberAndVoipIdRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindNumberAndVoipIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindNumberAndVoipIdRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void BindNumberAndVoipIdRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
long BindNumberAndVoipIdRequest::getOwnerId()const
{
return ownerId_;
}
void BindNumberAndVoipIdRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindNumberAndVoipIdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindNumberAndVoipIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BindNumberAndVoipIdRequest::getVoipId()const
{
return voipId_;
}
void BindNumberAndVoipIdRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setCoreParameter("VoipId", voipId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/dyvmsapi/model/BindNumberAndVoipIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
BindNumberAndVoipIdResult::BindNumberAndVoipIdResult() :
ServiceResult()
{}
BindNumberAndVoipIdResult::BindNumberAndVoipIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindNumberAndVoipIdResult::~BindNumberAndVoipIdResult()
{}
void BindNumberAndVoipIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string BindNumberAndVoipIdResult::getMessage()const
{
return message_;
}
std::string BindNumberAndVoipIdResult::getModule()const
{
return module_;
}
std::string BindNumberAndVoipIdResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/dyvmsapi/model/UnbindNumberAndVoipIdRequest.h>
using AlibabaCloud::Dyvmsapi::Model::UnbindNumberAndVoipIdRequest;
UnbindNumberAndVoipIdRequest::UnbindNumberAndVoipIdRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "UnbindNumberAndVoipId")
{}
UnbindNumberAndVoipIdRequest::~UnbindNumberAndVoipIdRequest()
{}
long UnbindNumberAndVoipIdRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UnbindNumberAndVoipIdRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UnbindNumberAndVoipIdRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UnbindNumberAndVoipIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UnbindNumberAndVoipIdRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void UnbindNumberAndVoipIdRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
long UnbindNumberAndVoipIdRequest::getOwnerId()const
{
return ownerId_;
}
void UnbindNumberAndVoipIdRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string UnbindNumberAndVoipIdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UnbindNumberAndVoipIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string UnbindNumberAndVoipIdRequest::getVoipId()const
{
return voipId_;
}
void UnbindNumberAndVoipIdRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setCoreParameter("VoipId", voipId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/dyvmsapi/model/UnbindNumberAndVoipIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
UnbindNumberAndVoipIdResult::UnbindNumberAndVoipIdResult() :
ServiceResult()
{}
UnbindNumberAndVoipIdResult::UnbindNumberAndVoipIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnbindNumberAndVoipIdResult::~UnbindNumberAndVoipIdResult()
{}
void UnbindNumberAndVoipIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UnbindNumberAndVoipIdResult::getMessage()const
{
return message_;
}
std::string UnbindNumberAndVoipIdResult::getModule()const
{
return module_;
}
std::string UnbindNumberAndVoipIdResult::getCode()const
{
return code_;
}