RTC SDK Auto Released By shenshi,Version:1.34.32

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-15 16:02:06 +08:00
parent 7f97b2de78
commit 4a0a5164c7
23 changed files with 1986 additions and 697 deletions

View File

@@ -303,42 +303,6 @@ RtcClient::GetTemplateInfoOutcomeCallable RtcClient::getTemplateInfoCallable(con
return task->get_future();
}
RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteChannelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteChannelOutcome(DeleteChannelResult(outcome.result()));
else
return DeleteChannelOutcome(outcome.error());
}
void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteChannel(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteChannelOutcome()>>(
[this, request]()
{
return this->deleteChannel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +339,42 @@ RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyApp
return task->get_future();
}
RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteChannelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteChannelOutcome(DeleteChannelResult(outcome.result()));
else
return DeleteChannelOutcome(outcome.error());
}
void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteChannel(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteChannelOutcome()>>(
[this, request]()
{
return this->deleteChannel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::RemoveParticipantsOutcome RtcClient::removeParticipants(const RemoveParticipantsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +627,78 @@ RtcClient::UpdateChannelOutcomeCallable RtcClient::updateChannelCallable(const U
return task->get_future();
}
RtcClient::StartMPUTaskOutcome RtcClient::startMPUTask(const StartMPUTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartMPUTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartMPUTaskOutcome(StartMPUTaskResult(outcome.result()));
else
return StartMPUTaskOutcome(outcome.error());
}
void RtcClient::startMPUTaskAsync(const StartMPUTaskRequest& request, const StartMPUTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startMPUTask(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::StartMPUTaskOutcomeCallable RtcClient::startMPUTaskCallable(const StartMPUTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartMPUTaskOutcome()>>(
[this, request]()
{
return this->startMPUTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::StopMPUTaskOutcome RtcClient::stopMPUTask(const StopMPUTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopMPUTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopMPUTaskOutcome(StopMPUTaskResult(outcome.result()));
else
return StopMPUTaskOutcome(outcome.error());
}
void RtcClient::stopMPUTaskAsync(const StopMPUTaskRequest& request, const StopMPUTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopMPUTask(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::StopMPUTaskOutcomeCallable RtcClient::stopMPUTaskCallable(const StopMPUTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopMPUTaskOutcome()>>(
[this, request]()
{
return this->stopMPUTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::StartTaskOutcome RtcClient::startTask(const StartTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,42 +915,6 @@ RtcClient::MuteAudioOutcomeCallable RtcClient::muteAudioCallable(const MuteAudio
return task->get_future();
}
RtcClient::StartAppOutcome RtcClient::startApp(const StartAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartAppOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartAppOutcome(StartAppResult(outcome.result()));
else
return StartAppOutcome(outcome.error());
}
void RtcClient::startAppAsync(const StartAppRequest& request, const StartAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startApp(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::StartAppOutcomeCallable RtcClient::startAppCallable(const StartAppRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartAppOutcome()>>(
[this, request]()
{
return this->startApp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::CreateConferenceOutcome RtcClient::createConference(const CreateConferenceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +951,42 @@ RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(c
return task->get_future();
}
RtcClient::GetMPUTaskStatusOutcome RtcClient::getMPUTaskStatus(const GetMPUTaskStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMPUTaskStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMPUTaskStatusOutcome(GetMPUTaskStatusResult(outcome.result()));
else
return GetMPUTaskStatusOutcome(outcome.error());
}
void RtcClient::getMPUTaskStatusAsync(const GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMPUTaskStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(const GetMPUTaskStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMPUTaskStatusOutcome()>>(
[this, request]()
{
return this->getMPUTaskStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::DescribeRealTimeRecordDetailOutcome RtcClient::describeRealTimeRecordDetail(const DescribeRealTimeRecordDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,42 +1059,6 @@ RtcClient::DescribeRealTimeRecordListOutcomeCallable RtcClient::describeRealTime
return task->get_future();
}
RtcClient::StopAppOutcome RtcClient::stopApp(const StopAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopAppOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopAppOutcome(StopAppResult(outcome.result()));
else
return StopAppOutcome(outcome.error());
}
void RtcClient::stopAppAsync(const StopAppRequest& request, const StopAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopApp(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::StopAppOutcomeCallable RtcClient::stopAppCallable(const StopAppRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopAppOutcome()>>(
[this, request]()
{
return this->stopApp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::RemoveTerminalsOutcome RtcClient::removeTerminals(const RemoveTerminalsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1131,42 @@ RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(c
return task->get_future();
}
RtcClient::ReceiveNotifyOutcome RtcClient::receiveNotify(const ReceiveNotifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReceiveNotifyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReceiveNotifyOutcome(ReceiveNotifyResult(outcome.result()));
else
return ReceiveNotifyOutcome(outcome.error());
}
void RtcClient::receiveNotifyAsync(const ReceiveNotifyRequest& request, const ReceiveNotifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, receiveNotify(request), context);
};
asyncExecute(new Runnable(fn));
}
RtcClient::ReceiveNotifyOutcomeCallable RtcClient::receiveNotifyCallable(const ReceiveNotifyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReceiveNotifyOutcome()>>(
[this, request]()
{
return this->receiveNotify(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RtcClient::UnmuteAudioAllOutcome RtcClient::unmuteAudioAll(const UnmuteAudioAllRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,280 @@
/*
* 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/rtc/model/GetMPUTaskStatusRequest.h>
using AlibabaCloud::Rtc::Model::GetMPUTaskStatusRequest;
GetMPUTaskStatusRequest::GetMPUTaskStatusRequest() :
RpcServiceRequest("rtc", "2018-01-11", "GetMPUTaskStatus")
{}
GetMPUTaskStatusRequest::~GetMPUTaskStatusRequest()
{}
std::string GetMPUTaskStatusRequest::getApp_ip()const
{
return app_ip_;
}
void GetMPUTaskStatusRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string GetMPUTaskStatusRequest::getPopProduct()const
{
return popProduct_;
}
void GetMPUTaskStatusRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
long GetMPUTaskStatusRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMPUTaskStatusRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long GetMPUTaskStatusRequest::getCallerParentId()const
{
return callerParentId_;
}
void GetMPUTaskStatusRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool GetMPUTaskStatusRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void GetMPUTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string GetMPUTaskStatusRequest::getCallerBid()const
{
return callerBid_;
}
void GetMPUTaskStatusRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long GetMPUTaskStatusRequest::getOwnerId()const
{
return ownerId_;
}
void GetMPUTaskStatusRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetMPUTaskStatusRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void GetMPUTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string GetMPUTaskStatusRequest::getVersion()const
{
return version_;
}
void GetMPUTaskStatusRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string GetMPUTaskStatusRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void GetMPUTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string GetMPUTaskStatusRequest::getCallerType()const
{
return callerType_;
}
void GetMPUTaskStatusRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool GetMPUTaskStatusRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void GetMPUTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool GetMPUTaskStatusRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void GetMPUTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string GetMPUTaskStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetMPUTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool GetMPUTaskStatusRequest::getSecurity_transport()const
{
return security_transport_;
}
void GetMPUTaskStatusRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string GetMPUTaskStatusRequest::getSecurityToken()const
{
return securityToken_;
}
void GetMPUTaskStatusRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string GetMPUTaskStatusRequest::getRequestId()const
{
return requestId_;
}
void GetMPUTaskStatusRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string GetMPUTaskStatusRequest::getRequestContent()const
{
return requestContent_;
}
void GetMPUTaskStatusRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string GetMPUTaskStatusRequest::getAppId()const
{
return appId_;
}
void GetMPUTaskStatusRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string GetMPUTaskStatusRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void GetMPUTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string GetMPUTaskStatusRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void GetMPUTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
std::string GetMPUTaskStatusRequest::getTaskId()const
{
return taskId_;
}
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
long GetMPUTaskStatusRequest::getCallerUid()const
{
return callerUid_;
}
void GetMPUTaskStatusRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,52 @@
/*
* 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/rtc/model/GetMPUTaskStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
GetMPUTaskStatusResult::GetMPUTaskStatusResult() :
ServiceResult()
{}
GetMPUTaskStatusResult::GetMPUTaskStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMPUTaskStatusResult::~GetMPUTaskStatusResult()
{}
void GetMPUTaskStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = std::stoi(value["Status"].asString());
}
int GetMPUTaskStatusResult::getStatus()const
{
return status_;
}

View File

@@ -0,0 +1,313 @@
/*
* 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/rtc/model/ReceiveNotifyRequest.h>
using AlibabaCloud::Rtc::Model::ReceiveNotifyRequest;
ReceiveNotifyRequest::ReceiveNotifyRequest() :
RpcServiceRequest("rtc", "2018-01-11", "ReceiveNotify")
{}
ReceiveNotifyRequest::~ReceiveNotifyRequest()
{}
std::string ReceiveNotifyRequest::getTraceId()const
{
return traceId_;
}
void ReceiveNotifyRequest::setTraceId(const std::string& traceId)
{
traceId_ = traceId;
setParameter("TraceId", traceId);
}
long ReceiveNotifyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReceiveNotifyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long ReceiveNotifyRequest::getCallerParentId()const
{
return callerParentId_;
}
void ReceiveNotifyRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool ReceiveNotifyRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void ReceiveNotifyRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string ReceiveNotifyRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void ReceiveNotifyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string ReceiveNotifyRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void ReceiveNotifyRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string ReceiveNotifyRequest::getCallerType()const
{
return callerType_;
}
void ReceiveNotifyRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string ReceiveNotifyRequest::getContent()const
{
return content_;
}
void ReceiveNotifyRequest::setContent(const std::string& content)
{
content_ = content;
setParameter("Content", content);
}
std::string ReceiveNotifyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReceiveNotifyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ReceiveNotifyRequest::getSecurityToken()const
{
return securityToken_;
}
void ReceiveNotifyRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ReceiveNotifyRequest::getRequestContent()const
{
return requestContent_;
}
void ReceiveNotifyRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string ReceiveNotifyRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void ReceiveNotifyRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string ReceiveNotifyRequest::getEvent()const
{
return event_;
}
void ReceiveNotifyRequest::setEvent(const std::string& event)
{
event_ = event;
setParameter("Event", event);
}
std::string ReceiveNotifyRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void ReceiveNotifyRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long ReceiveNotifyRequest::getCallerUid()const
{
return callerUid_;
}
void ReceiveNotifyRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string ReceiveNotifyRequest::getApp_ip()const
{
return app_ip_;
}
void ReceiveNotifyRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string ReceiveNotifyRequest::getPopProduct()const
{
return popProduct_;
}
void ReceiveNotifyRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
std::string ReceiveNotifyRequest::getCallerBid()const
{
return callerBid_;
}
void ReceiveNotifyRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long ReceiveNotifyRequest::getOwnerId()const
{
return ownerId_;
}
void ReceiveNotifyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ReceiveNotifyRequest::getVersion()const
{
return version_;
}
void ReceiveNotifyRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool ReceiveNotifyRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void ReceiveNotifyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool ReceiveNotifyRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void ReceiveNotifyRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string ReceiveNotifyRequest::getContentType()const
{
return contentType_;
}
void ReceiveNotifyRequest::setContentType(const std::string& contentType)
{
contentType_ = contentType;
setParameter("ContentType", contentType);
}
bool ReceiveNotifyRequest::getSecurity_transport()const
{
return security_transport_;
}
void ReceiveNotifyRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string ReceiveNotifyRequest::getRequestId()const
{
return requestId_;
}
void ReceiveNotifyRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string ReceiveNotifyRequest::getBizId()const
{
return bizId_;
}
void ReceiveNotifyRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/rtc/model/ReceiveNotifyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
ReceiveNotifyResult::ReceiveNotifyResult() :
ServiceResult()
{}
ReceiveNotifyResult::ReceiveNotifyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReceiveNotifyResult::~ReceiveNotifyResult()
{}
void ReceiveNotifyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TraceId"].isNull())
traceId_ = value["TraceId"].asString();
}
std::string ReceiveNotifyResult::getTraceId()const
{
return traceId_;
}

View File

@@ -1,258 +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/rtc/model/StartAppRequest.h>
using AlibabaCloud::Rtc::Model::StartAppRequest;
StartAppRequest::StartAppRequest() :
RpcServiceRequest("rtc", "2018-01-11", "StartApp")
{}
StartAppRequest::~StartAppRequest()
{}
std::string StartAppRequest::getApp_ip()const
{
return app_ip_;
}
void StartAppRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string StartAppRequest::getPopProduct()const
{
return popProduct_;
}
void StartAppRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
long StartAppRequest::getCallerParentId()const
{
return callerParentId_;
}
void StartAppRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool StartAppRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void StartAppRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string StartAppRequest::getCallerBid()const
{
return callerBid_;
}
void StartAppRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long StartAppRequest::getOwnerId()const
{
return ownerId_;
}
void StartAppRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string StartAppRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void StartAppRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string StartAppRequest::getVersion()const
{
return version_;
}
void StartAppRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string StartAppRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void StartAppRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string StartAppRequest::getCallerType()const
{
return callerType_;
}
void StartAppRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool StartAppRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void StartAppRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool StartAppRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void StartAppRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string StartAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StartAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool StartAppRequest::getSecurity_transport()const
{
return security_transport_;
}
void StartAppRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string StartAppRequest::getSecurityToken()const
{
return securityToken_;
}
void StartAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string StartAppRequest::getRequestId()const
{
return requestId_;
}
void StartAppRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string StartAppRequest::getRequestContent()const
{
return requestContent_;
}
void StartAppRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string StartAppRequest::getAppId()const
{
return appId_;
}
void StartAppRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string StartAppRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void StartAppRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string StartAppRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void StartAppRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long StartAppRequest::getCallerUid()const
{
return callerUid_;
}
void StartAppRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,354 @@
/*
* 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/rtc/model/StartMPUTaskRequest.h>
using AlibabaCloud::Rtc::Model::StartMPUTaskRequest;
StartMPUTaskRequest::StartMPUTaskRequest() :
RpcServiceRequest("rtc", "2018-01-11", "StartMPUTask")
{}
StartMPUTaskRequest::~StartMPUTaskRequest()
{}
long StartMPUTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void StartMPUTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::vector<StartMPUTaskRequest::UserPanes> StartMPUTaskRequest::getUserPanes()const
{
return userPanes_;
}
void StartMPUTaskRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
{
userPanes_ = userPanes;
int i = 0;
for(int i = 0; i!= userPanes.size(); i++) {
auto obj = userPanes.at(i);
std::string str ="UserPanes."+ std::to_string(i);
setParameter(str + ".PaneId", std::to_string(obj.paneId));
setParameter(str + ".UserId", obj.userId);
setParameter(str + ".SourceType", obj.sourceType);
}
}
long StartMPUTaskRequest::getCallerParentId()const
{
return callerParentId_;
}
void StartMPUTaskRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool StartMPUTaskRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void StartMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string StartMPUTaskRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void StartMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string StartMPUTaskRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void StartMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string StartMPUTaskRequest::getCallerType()const
{
return callerType_;
}
void StartMPUTaskRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string StartMPUTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StartMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int StartMPUTaskRequest::getBackgroundColor()const
{
return backgroundColor_;
}
void StartMPUTaskRequest::setBackgroundColor(int backgroundColor)
{
backgroundColor_ = backgroundColor;
setParameter("BackgroundColor", std::to_string(backgroundColor));
}
std::string StartMPUTaskRequest::getSecurityToken()const
{
return securityToken_;
}
void StartMPUTaskRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string StartMPUTaskRequest::getRequestContent()const
{
return requestContent_;
}
void StartMPUTaskRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string StartMPUTaskRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void StartMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::vector<long> StartMPUTaskRequest::getLayoutIds()const
{
return layoutIds_;
}
void StartMPUTaskRequest::setLayoutIds(const std::vector<long>& layoutIds)
{
layoutIds_ = layoutIds;
for(int i = 0; i!= layoutIds.size(); i++)
setParameter("LayoutIds."+ std::to_string(i), std::to_string(layoutIds.at(i)));
}
std::string StartMPUTaskRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void StartMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
std::string StartMPUTaskRequest::getTaskId()const
{
return taskId_;
}
void StartMPUTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
long StartMPUTaskRequest::getCallerUid()const
{
return callerUid_;
}
void StartMPUTaskRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string StartMPUTaskRequest::getStreamURL()const
{
return streamURL_;
}
void StartMPUTaskRequest::setStreamURL(const std::string& streamURL)
{
streamURL_ = streamURL;
setParameter("StreamURL", streamURL);
}
std::string StartMPUTaskRequest::getApp_ip()const
{
return app_ip_;
}
void StartMPUTaskRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string StartMPUTaskRequest::getPopProduct()const
{
return popProduct_;
}
void StartMPUTaskRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
std::string StartMPUTaskRequest::getCallerBid()const
{
return callerBid_;
}
void StartMPUTaskRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long StartMPUTaskRequest::getOwnerId()const
{
return ownerId_;
}
void StartMPUTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string StartMPUTaskRequest::getVersion()const
{
return version_;
}
void StartMPUTaskRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
bool StartMPUTaskRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void StartMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool StartMPUTaskRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void StartMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool StartMPUTaskRequest::getSecurity_transport()const
{
return security_transport_;
}
void StartMPUTaskRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string StartMPUTaskRequest::getRequestId()const
{
return requestId_;
}
void StartMPUTaskRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string StartMPUTaskRequest::getAppId()const
{
return appId_;
}
void StartMPUTaskRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
int StartMPUTaskRequest::getMediaEncode()const
{
return mediaEncode_;
}
void StartMPUTaskRequest::setMediaEncode(int mediaEncode)
{
mediaEncode_ = mediaEncode;
setParameter("MediaEncode", std::to_string(mediaEncode));
}
std::string StartMPUTaskRequest::getChannelId()const
{
return channelId_;
}
void StartMPUTaskRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setParameter("ChannelId", channelId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/rtc/model/StopAppResult.h>
#include <alibabacloud/rtc/model/StartMPUTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
StopAppResult::StopAppResult() :
StartMPUTaskResult::StartMPUTaskResult() :
ServiceResult()
{}
StopAppResult::StopAppResult(const std::string &payload) :
StartMPUTaskResult::StartMPUTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopAppResult::~StopAppResult()
StartMPUTaskResult::~StartMPUTaskResult()
{}
void StopAppResult::parse(const std::string &payload)
void StartMPUTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -1,258 +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/rtc/model/StopAppRequest.h>
using AlibabaCloud::Rtc::Model::StopAppRequest;
StopAppRequest::StopAppRequest() :
RpcServiceRequest("rtc", "2018-01-11", "StopApp")
{}
StopAppRequest::~StopAppRequest()
{}
std::string StopAppRequest::getApp_ip()const
{
return app_ip_;
}
void StopAppRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string StopAppRequest::getPopProduct()const
{
return popProduct_;
}
void StopAppRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
long StopAppRequest::getCallerParentId()const
{
return callerParentId_;
}
void StopAppRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool StopAppRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void StopAppRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string StopAppRequest::getCallerBid()const
{
return callerBid_;
}
void StopAppRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long StopAppRequest::getOwnerId()const
{
return ownerId_;
}
void StopAppRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string StopAppRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void StopAppRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string StopAppRequest::getVersion()const
{
return version_;
}
void StopAppRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string StopAppRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void StopAppRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string StopAppRequest::getCallerType()const
{
return callerType_;
}
void StopAppRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool StopAppRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void StopAppRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool StopAppRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void StopAppRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string StopAppRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StopAppRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool StopAppRequest::getSecurity_transport()const
{
return security_transport_;
}
void StopAppRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string StopAppRequest::getSecurityToken()const
{
return securityToken_;
}
void StopAppRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string StopAppRequest::getRequestId()const
{
return requestId_;
}
void StopAppRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string StopAppRequest::getRequestContent()const
{
return requestContent_;
}
void StopAppRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string StopAppRequest::getAppId()const
{
return appId_;
}
void StopAppRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string StopAppRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void StopAppRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string StopAppRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void StopAppRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long StopAppRequest::getCallerUid()const
{
return callerUid_;
}
void StopAppRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -0,0 +1,280 @@
/*
* 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/rtc/model/StopMPUTaskRequest.h>
using AlibabaCloud::Rtc::Model::StopMPUTaskRequest;
StopMPUTaskRequest::StopMPUTaskRequest() :
RpcServiceRequest("rtc", "2018-01-11", "StopMPUTask")
{}
StopMPUTaskRequest::~StopMPUTaskRequest()
{}
std::string StopMPUTaskRequest::getApp_ip()const
{
return app_ip_;
}
void StopMPUTaskRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string StopMPUTaskRequest::getPopProduct()const
{
return popProduct_;
}
void StopMPUTaskRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setParameter("PopProduct", popProduct);
}
long StopMPUTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void StopMPUTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long StopMPUTaskRequest::getCallerParentId()const
{
return callerParentId_;
}
void StopMPUTaskRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool StopMPUTaskRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void StopMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string StopMPUTaskRequest::getCallerBid()const
{
return callerBid_;
}
void StopMPUTaskRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long StopMPUTaskRequest::getOwnerId()const
{
return ownerId_;
}
void StopMPUTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string StopMPUTaskRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void StopMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string StopMPUTaskRequest::getVersion()const
{
return version_;
}
void StopMPUTaskRequest::setVersion(const std::string& version)
{
version_ = version;
setParameter("Version", version);
}
std::string StopMPUTaskRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void StopMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string StopMPUTaskRequest::getCallerType()const
{
return callerType_;
}
void StopMPUTaskRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool StopMPUTaskRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void StopMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool StopMPUTaskRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void StopMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string StopMPUTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StopMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool StopMPUTaskRequest::getSecurity_transport()const
{
return security_transport_;
}
void StopMPUTaskRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string StopMPUTaskRequest::getSecurityToken()const
{
return securityToken_;
}
void StopMPUTaskRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string StopMPUTaskRequest::getRequestId()const
{
return requestId_;
}
void StopMPUTaskRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string StopMPUTaskRequest::getRequestContent()const
{
return requestContent_;
}
void StopMPUTaskRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string StopMPUTaskRequest::getAppId()const
{
return appId_;
}
void StopMPUTaskRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string StopMPUTaskRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void StopMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string StopMPUTaskRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void StopMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
std::string StopMPUTaskRequest::getTaskId()const
{
return taskId_;
}
void StopMPUTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
long StopMPUTaskRequest::getCallerUid()const
{
return callerUid_;
}
void StopMPUTaskRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/rtc/model/StartAppResult.h>
#include <alibabacloud/rtc/model/StopMPUTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
StartAppResult::StartAppResult() :
StopMPUTaskResult::StopMPUTaskResult() :
ServiceResult()
{}
StartAppResult::StartAppResult(const std::string &payload) :
StopMPUTaskResult::StopMPUTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartAppResult::~StartAppResult()
StopMPUTaskResult::~StopMPUTaskResult()
{}
void StartAppResult::parse(const std::string &payload)
void StopMPUTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;