Add API ReportVoipProblems.

This commit is contained in:
sdk-team
2019-11-20 10:45:49 +08:00
parent b0c5f8414d
commit 99ae87ba10
13 changed files with 688 additions and 4 deletions

View File

@@ -59,6 +59,10 @@ set(dyvmsapi_public_header_model
include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h
include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h
include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h
include/alibabacloud/dyvmsapi/model/QueryVoipNumberBindInfosRequest.h
include/alibabacloud/dyvmsapi/model/QueryVoipNumberBindInfosResult.h
include/alibabacloud/dyvmsapi/model/ReportVoipProblemsRequest.h
include/alibabacloud/dyvmsapi/model/ReportVoipProblemsResult.h
include/alibabacloud/dyvmsapi/model/SingleCallByTtsRequest.h
include/alibabacloud/dyvmsapi/model/SingleCallByTtsResult.h
include/alibabacloud/dyvmsapi/model/SingleCallByVoiceRequest.h
@@ -120,6 +124,10 @@ set(dyvmsapi_src
src/model/QueryRobotTaskListResult.cc
src/model/QueryRobotv2AllListRequest.cc
src/model/QueryRobotv2AllListResult.cc
src/model/QueryVoipNumberBindInfosRequest.cc
src/model/QueryVoipNumberBindInfosResult.cc
src/model/ReportVoipProblemsRequest.cc
src/model/ReportVoipProblemsResult.cc
src/model/SingleCallByTtsRequest.cc
src/model/SingleCallByTtsResult.cc
src/model/SingleCallByVoiceRequest.cc

View File

@@ -60,6 +60,10 @@
#include "model/QueryRobotTaskListResult.h"
#include "model/QueryRobotv2AllListRequest.h"
#include "model/QueryRobotv2AllListResult.h"
#include "model/QueryVoipNumberBindInfosRequest.h"
#include "model/QueryVoipNumberBindInfosResult.h"
#include "model/ReportVoipProblemsRequest.h"
#include "model/ReportVoipProblemsResult.h"
#include "model/SingleCallByTtsRequest.h"
#include "model/SingleCallByTtsResult.h"
#include "model/SingleCallByVoiceRequest.h"
@@ -146,6 +150,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryRobotv2AllListResult> QueryRobotv2AllListOutcome;
typedef std::future<QueryRobotv2AllListOutcome> QueryRobotv2AllListOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::QueryRobotv2AllListRequest&, const QueryRobotv2AllListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRobotv2AllListAsyncHandler;
typedef Outcome<Error, Model::QueryVoipNumberBindInfosResult> QueryVoipNumberBindInfosOutcome;
typedef std::future<QueryVoipNumberBindInfosOutcome> QueryVoipNumberBindInfosOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::QueryVoipNumberBindInfosRequest&, const QueryVoipNumberBindInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVoipNumberBindInfosAsyncHandler;
typedef Outcome<Error, Model::ReportVoipProblemsResult> ReportVoipProblemsOutcome;
typedef std::future<ReportVoipProblemsOutcome> ReportVoipProblemsOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::ReportVoipProblemsRequest&, const ReportVoipProblemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportVoipProblemsAsyncHandler;
typedef Outcome<Error, Model::SingleCallByTtsResult> SingleCallByTtsOutcome;
typedef std::future<SingleCallByTtsOutcome> SingleCallByTtsOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::SingleCallByTtsRequest&, const SingleCallByTtsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SingleCallByTtsAsyncHandler;
@@ -238,6 +248,12 @@ namespace AlibabaCloud
QueryRobotv2AllListOutcome queryRobotv2AllList(const Model::QueryRobotv2AllListRequest &request)const;
void queryRobotv2AllListAsync(const Model::QueryRobotv2AllListRequest& request, const QueryRobotv2AllListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryRobotv2AllListOutcomeCallable queryRobotv2AllListCallable(const Model::QueryRobotv2AllListRequest& request) const;
QueryVoipNumberBindInfosOutcome queryVoipNumberBindInfos(const Model::QueryVoipNumberBindInfosRequest &request)const;
void queryVoipNumberBindInfosAsync(const Model::QueryVoipNumberBindInfosRequest& request, const QueryVoipNumberBindInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryVoipNumberBindInfosOutcomeCallable queryVoipNumberBindInfosCallable(const Model::QueryVoipNumberBindInfosRequest& request) const;
ReportVoipProblemsOutcome reportVoipProblems(const Model::ReportVoipProblemsRequest &request)const;
void reportVoipProblemsAsync(const Model::ReportVoipProblemsRequest& request, const ReportVoipProblemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReportVoipProblemsOutcomeCallable reportVoipProblemsCallable(const Model::ReportVoipProblemsRequest& request) const;
SingleCallByTtsOutcome singleCallByTts(const Model::SingleCallByTtsRequest &request)const;
void singleCallByTtsAsync(const Model::SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SingleCallByTtsOutcomeCallable singleCallByTtsCallable(const Model::SingleCallByTtsRequest& 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_QUERYVOIPNUMBERBINDINFOSREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSREQUEST_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 QueryVoipNumberBindInfosRequest : public RpcServiceRequest
{
public:
QueryVoipNumberBindInfosRequest();
~QueryVoipNumberBindInfosRequest();
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_QUERYVOIPNUMBERBINDINFOSREQUEST_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_QUERYVOIPNUMBERBINDINFOSRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSRESULT_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 QueryVoipNumberBindInfosResult : public ServiceResult
{
public:
QueryVoipNumberBindInfosResult();
explicit QueryVoipNumberBindInfosResult(const std::string &payload);
~QueryVoipNumberBindInfosResult();
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_QUERYVOIPNUMBERBINDINFOSRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_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 ReportVoipProblemsRequest : public RpcServiceRequest
{
public:
ReportVoipProblemsRequest();
~ReportVoipProblemsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVoipId()const;
void setVoipId(const std::string& voipId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getChannelId()const;
void setChannelId(const std::string& channelId);
std::string getDesc()const;
void setDesc(const std::string& desc);
private:
long resourceOwnerId_;
std::string title_;
std::string accessKeyId_;
std::string voipId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string channelId_;
std::string desc_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_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_REPORTVOIPPROBLEMSRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSRESULT_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 ReportVoipProblemsResult : public ServiceResult
{
public:
ReportVoipProblemsResult();
explicit ReportVoipProblemsResult(const std::string &payload);
~ReportVoipProblemsResult();
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_REPORTVOIPPROBLEMSRESULT_H_

View File

@@ -31,21 +31,21 @@ DyvmsapiClient::DyvmsapiClient(const Credentials &credentials, const ClientConfi
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::DyvmsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::DyvmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::~DyvmsapiClient()
@@ -735,6 +735,78 @@ DyvmsapiClient::QueryRobotv2AllListOutcomeCallable DyvmsapiClient::queryRobotv2A
return task->get_future();
}
DyvmsapiClient::QueryVoipNumberBindInfosOutcome DyvmsapiClient::queryVoipNumberBindInfos(const QueryVoipNumberBindInfosRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryVoipNumberBindInfosOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryVoipNumberBindInfosOutcome(QueryVoipNumberBindInfosResult(outcome.result()));
else
return QueryVoipNumberBindInfosOutcome(outcome.error());
}
void DyvmsapiClient::queryVoipNumberBindInfosAsync(const QueryVoipNumberBindInfosRequest& request, const QueryVoipNumberBindInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryVoipNumberBindInfos(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryVoipNumberBindInfosOutcomeCallable DyvmsapiClient::queryVoipNumberBindInfosCallable(const QueryVoipNumberBindInfosRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryVoipNumberBindInfosOutcome()>>(
[this, request]()
{
return this->queryVoipNumberBindInfos(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ReportVoipProblemsOutcome DyvmsapiClient::reportVoipProblems(const ReportVoipProblemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReportVoipProblemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReportVoipProblemsOutcome(ReportVoipProblemsResult(outcome.result()));
else
return ReportVoipProblemsOutcome(outcome.error());
}
void DyvmsapiClient::reportVoipProblemsAsync(const ReportVoipProblemsRequest& request, const ReportVoipProblemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, reportVoipProblems(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ReportVoipProblemsOutcomeCallable DyvmsapiClient::reportVoipProblemsCallable(const ReportVoipProblemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReportVoipProblemsOutcome()>>(
[this, request]()
{
return this->reportVoipProblems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,95 @@
/*
* 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/QueryVoipNumberBindInfosRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryVoipNumberBindInfosRequest;
QueryVoipNumberBindInfosRequest::QueryVoipNumberBindInfosRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryVoipNumberBindInfos")
{
setMethod(HttpRequest::Method::Post);
}
QueryVoipNumberBindInfosRequest::~QueryVoipNumberBindInfosRequest()
{}
long QueryVoipNumberBindInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryVoipNumberBindInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryVoipNumberBindInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryVoipNumberBindInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryVoipNumberBindInfosRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void QueryVoipNumberBindInfosRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
long QueryVoipNumberBindInfosRequest::getOwnerId()const
{
return ownerId_;
}
void QueryVoipNumberBindInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryVoipNumberBindInfosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryVoipNumberBindInfosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QueryVoipNumberBindInfosRequest::getVoipId()const
{
return voipId_;
}
void QueryVoipNumberBindInfosRequest::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/QueryVoipNumberBindInfosResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryVoipNumberBindInfosResult::QueryVoipNumberBindInfosResult() :
ServiceResult()
{}
QueryVoipNumberBindInfosResult::QueryVoipNumberBindInfosResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVoipNumberBindInfosResult::~QueryVoipNumberBindInfosResult()
{}
void QueryVoipNumberBindInfosResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryVoipNumberBindInfosResult::getMessage()const
{
return message_;
}
std::string QueryVoipNumberBindInfosResult::getModule()const
{
return module_;
}
std::string QueryVoipNumberBindInfosResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/ReportVoipProblemsRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ReportVoipProblemsRequest;
ReportVoipProblemsRequest::ReportVoipProblemsRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ReportVoipProblems")
{
setMethod(HttpRequest::Method::Post);
}
ReportVoipProblemsRequest::~ReportVoipProblemsRequest()
{}
long ReportVoipProblemsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReportVoipProblemsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReportVoipProblemsRequest::getTitle()const
{
return title_;
}
void ReportVoipProblemsRequest::setTitle(const std::string& title)
{
title_ = title;
setCoreParameter("Title", title);
}
std::string ReportVoipProblemsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReportVoipProblemsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ReportVoipProblemsRequest::getVoipId()const
{
return voipId_;
}
void ReportVoipProblemsRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setCoreParameter("VoipId", voipId);
}
std::string ReportVoipProblemsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReportVoipProblemsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ReportVoipProblemsRequest::getOwnerId()const
{
return ownerId_;
}
void ReportVoipProblemsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ReportVoipProblemsRequest::getChannelId()const
{
return channelId_;
}
void ReportVoipProblemsRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setCoreParameter("ChannelId", channelId);
}
std::string ReportVoipProblemsRequest::getDesc()const
{
return desc_;
}
void ReportVoipProblemsRequest::setDesc(const std::string& desc)
{
desc_ = desc;
setCoreParameter("Desc", desc);
}

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/ReportVoipProblemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ReportVoipProblemsResult::ReportVoipProblemsResult() :
ServiceResult()
{}
ReportVoipProblemsResult::ReportVoipProblemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReportVoipProblemsResult::~ReportVoipProblemsResult()
{}
void ReportVoipProblemsResult::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 ReportVoipProblemsResult::getMessage()const
{
return message_;
}
std::string ReportVoipProblemsResult::getModule()const
{
return module_;
}
std::string ReportVoipProblemsResult::getCode()const
{
return code_;
}