@@ -31,128 +31,56 @@ 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, "dyvmsapi");
|
||||
}
|
||||
|
||||
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, "dyvmsapi");
|
||||
}
|
||||
|
||||
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, "dyvmsapi");
|
||||
}
|
||||
|
||||
DyvmsapiClient::~DyvmsapiClient()
|
||||
{}
|
||||
|
||||
DyvmsapiClient::SmartCallOutcome DyvmsapiClient::smartCall(const SmartCallRequest &request) const
|
||||
DyvmsapiClient::UploadRobotTaskCalledFileOutcome DyvmsapiClient::uploadRobotTaskCalledFile(const UploadRobotTaskCalledFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SmartCallOutcome(endpointOutcome.error());
|
||||
return UploadRobotTaskCalledFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SmartCallOutcome(SmartCallResult(outcome.result()));
|
||||
return UploadRobotTaskCalledFileOutcome(UploadRobotTaskCalledFileResult(outcome.result()));
|
||||
else
|
||||
return SmartCallOutcome(outcome.error());
|
||||
return UploadRobotTaskCalledFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::smartCallAsync(const SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DyvmsapiClient::uploadRobotTaskCalledFileAsync(const UploadRobotTaskCalledFileRequest& request, const UploadRobotTaskCalledFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, smartCall(request), context);
|
||||
handler(this, request, uploadRobotTaskCalledFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SmartCallOutcomeCallable DyvmsapiClient::smartCallCallable(const SmartCallRequest &request) const
|
||||
DyvmsapiClient::UploadRobotTaskCalledFileOutcomeCallable DyvmsapiClient::uploadRobotTaskCalledFileCallable(const UploadRobotTaskCalledFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SmartCallOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<UploadRobotTaskCalledFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->smartCall(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByCallIdOutcome DyvmsapiClient::queryCallDetailByCallId(const QueryCallDetailByCallIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCallDetailByCallIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCallDetailByCallIdOutcome(QueryCallDetailByCallIdResult(outcome.result()));
|
||||
else
|
||||
return QueryCallDetailByCallIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryCallDetailByCallIdAsync(const QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCallDetailByCallId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByCallIdOutcomeCallable DyvmsapiClient::queryCallDetailByCallIdCallable(const QueryCallDetailByCallIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCallDetailByCallIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCallDetailByCallId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::VoipAddAccountOutcome DyvmsapiClient::voipAddAccount(const VoipAddAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VoipAddAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VoipAddAccountOutcome(VoipAddAccountResult(outcome.result()));
|
||||
else
|
||||
return VoipAddAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::voipAddAccountAsync(const VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, voipAddAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::VoipAddAccountOutcomeCallable DyvmsapiClient::voipAddAccountCallable(const VoipAddAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VoipAddAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->voipAddAccount(request);
|
||||
return this->uploadRobotTaskCalledFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -195,6 +123,402 @@ DyvmsapiClient::CancelCallOutcomeCallable DyvmsapiClient::cancelCallCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::CancelRobotTaskOutcome DyvmsapiClient::cancelRobotTask(const CancelRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelRobotTaskOutcome(CancelRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return CancelRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::cancelRobotTaskAsync(const CancelRobotTaskRequest& request, const CancelRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::CancelRobotTaskOutcomeCallable DyvmsapiClient::cancelRobotTaskCallable(const CancelRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::AddRtcAccountOutcome DyvmsapiClient::addRtcAccount(const AddRtcAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddRtcAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddRtcAccountOutcome(AddRtcAccountResult(outcome.result()));
|
||||
else
|
||||
return AddRtcAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::addRtcAccountAsync(const AddRtcAccountRequest& request, const AddRtcAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addRtcAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::AddRtcAccountOutcomeCallable DyvmsapiClient::addRtcAccountCallable(const AddRtcAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddRtcAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addRtcAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByTaskIdOutcome DyvmsapiClient::queryCallDetailByTaskId(const QueryCallDetailByTaskIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCallDetailByTaskIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCallDetailByTaskIdOutcome(QueryCallDetailByTaskIdResult(outcome.result()));
|
||||
else
|
||||
return QueryCallDetailByTaskIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryCallDetailByTaskIdAsync(const QueryCallDetailByTaskIdRequest& request, const QueryCallDetailByTaskIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCallDetailByTaskId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByTaskIdOutcomeCallable DyvmsapiClient::queryCallDetailByTaskIdCallable(const QueryCallDetailByTaskIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCallDetailByTaskIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCallDetailByTaskId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskCallDetailOutcome DyvmsapiClient::queryRobotTaskCallDetail(const QueryRobotTaskCallDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRobotTaskCallDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRobotTaskCallDetailOutcome(QueryRobotTaskCallDetailResult(outcome.result()));
|
||||
else
|
||||
return QueryRobotTaskCallDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryRobotTaskCallDetailAsync(const QueryRobotTaskCallDetailRequest& request, const QueryRobotTaskCallDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRobotTaskCallDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskCallDetailOutcomeCallable DyvmsapiClient::queryRobotTaskCallDetailCallable(const QueryRobotTaskCallDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotTaskCallDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRobotTaskCallDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SmartCallOperateOutcome DyvmsapiClient::smartCallOperate(const SmartCallOperateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SmartCallOperateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SmartCallOperateOutcome(SmartCallOperateResult(outcome.result()));
|
||||
else
|
||||
return SmartCallOperateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::smartCallOperateAsync(const SmartCallOperateRequest& request, const SmartCallOperateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, smartCallOperate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SmartCallOperateOutcomeCallable DyvmsapiClient::smartCallOperateCallable(const SmartCallOperateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SmartCallOperateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->smartCallOperate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskDetailOutcome DyvmsapiClient::queryRobotTaskDetail(const QueryRobotTaskDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRobotTaskDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRobotTaskDetailOutcome(QueryRobotTaskDetailResult(outcome.result()));
|
||||
else
|
||||
return QueryRobotTaskDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryRobotTaskDetailAsync(const QueryRobotTaskDetailRequest& request, const QueryRobotTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRobotTaskDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskDetailOutcomeCallable DyvmsapiClient::queryRobotTaskDetailCallable(const QueryRobotTaskDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotTaskDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRobotTaskDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByVoiceOutcome DyvmsapiClient::singleCallByVoice(const SingleCallByVoiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SingleCallByVoiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SingleCallByVoiceOutcome(SingleCallByVoiceResult(outcome.result()));
|
||||
else
|
||||
return SingleCallByVoiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::singleCallByVoiceAsync(const SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, singleCallByVoice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByVoiceOutcomeCallable DyvmsapiClient::singleCallByVoiceCallable(const SingleCallByVoiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SingleCallByVoiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->singleCallByVoice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotv2AllListOutcome DyvmsapiClient::queryRobotv2AllList(const QueryRobotv2AllListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRobotv2AllListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRobotv2AllListOutcome(QueryRobotv2AllListResult(outcome.result()));
|
||||
else
|
||||
return QueryRobotv2AllListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryRobotv2AllListAsync(const QueryRobotv2AllListRequest& request, const QueryRobotv2AllListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRobotv2AllList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotv2AllListOutcomeCallable DyvmsapiClient::queryRobotv2AllListCallable(const QueryRobotv2AllListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotv2AllListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRobotv2AllList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::GetRtcTokenOutcome DyvmsapiClient::getRtcToken(const GetRtcTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRtcTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRtcTokenOutcome(GetRtcTokenResult(outcome.result()));
|
||||
else
|
||||
return GetRtcTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::getRtcTokenAsync(const GetRtcTokenRequest& request, const GetRtcTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRtcToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::GetRtcTokenOutcomeCallable DyvmsapiClient::getRtcTokenCallable(const GetRtcTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRtcTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRtcToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SingleCallByTtsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SingleCallByTtsOutcome(SingleCallByTtsResult(outcome.result()));
|
||||
else
|
||||
return SingleCallByTtsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::singleCallByTtsAsync(const SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, singleCallByTts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByTtsOutcomeCallable DyvmsapiClient::singleCallByTtsCallable(const SingleCallByTtsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SingleCallByTtsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->singleCallByTts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotInfoListOutcome DyvmsapiClient::queryRobotInfoList(const QueryRobotInfoListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRobotInfoListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRobotInfoListOutcome(QueryRobotInfoListResult(outcome.result()));
|
||||
else
|
||||
return QueryRobotInfoListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryRobotInfoListAsync(const QueryRobotInfoListRequest& request, const QueryRobotInfoListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRobotInfoList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotInfoListOutcomeCallable DyvmsapiClient::queryRobotInfoListCallable(const QueryRobotInfoListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotInfoListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRobotInfoList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::VoipGetTokenOutcome DyvmsapiClient::voipGetToken(const VoipGetTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +591,150 @@ DyvmsapiClient::ClickToDialOutcomeCallable DyvmsapiClient::clickToDialCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::DeleteRobotTaskOutcome DyvmsapiClient::deleteRobotTask(const DeleteRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRobotTaskOutcome(DeleteRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return DeleteRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::deleteRobotTaskAsync(const DeleteRobotTaskRequest& request, const DeleteRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::DeleteRobotTaskOutcomeCallable DyvmsapiClient::deleteRobotTaskCallable(const DeleteRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::CreateRobotTaskOutcome DyvmsapiClient::createRobotTask(const CreateRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRobotTaskOutcome(CreateRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::createRobotTaskAsync(const CreateRobotTaskRequest& request, const CreateRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::CreateRobotTaskOutcomeCallable DyvmsapiClient::createRobotTaskCallable(const CreateRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByCallIdOutcome DyvmsapiClient::queryCallDetailByCallId(const QueryCallDetailByCallIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCallDetailByCallIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCallDetailByCallIdOutcome(QueryCallDetailByCallIdResult(outcome.result()));
|
||||
else
|
||||
return QueryCallDetailByCallIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryCallDetailByCallIdAsync(const QueryCallDetailByCallIdRequest& request, const QueryCallDetailByCallIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCallDetailByCallId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryCallDetailByCallIdOutcomeCallable DyvmsapiClient::queryCallDetailByCallIdCallable(const QueryCallDetailByCallIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCallDetailByCallIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCallDetailByCallId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::StopRobotTaskOutcome DyvmsapiClient::stopRobotTask(const StopRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopRobotTaskOutcome(StopRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return StopRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::stopRobotTaskAsync(const StopRobotTaskRequest& request, const StopRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::StopRobotTaskOutcomeCallable DyvmsapiClient::stopRobotTaskCallable(const StopRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::IvrCallOutcome DyvmsapiClient::ivrCall(const IvrCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,72 +771,252 @@ DyvmsapiClient::IvrCallOutcomeCallable DyvmsapiClient::ivrCallCallable(const Ivr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByVoiceOutcome DyvmsapiClient::singleCallByVoice(const SingleCallByVoiceRequest &request) const
|
||||
DyvmsapiClient::BatchRobotSmartCallOutcome DyvmsapiClient::batchRobotSmartCall(const BatchRobotSmartCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SingleCallByVoiceOutcome(endpointOutcome.error());
|
||||
return BatchRobotSmartCallOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SingleCallByVoiceOutcome(SingleCallByVoiceResult(outcome.result()));
|
||||
return BatchRobotSmartCallOutcome(BatchRobotSmartCallResult(outcome.result()));
|
||||
else
|
||||
return SingleCallByVoiceOutcome(outcome.error());
|
||||
return BatchRobotSmartCallOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::singleCallByVoiceAsync(const SingleCallByVoiceRequest& request, const SingleCallByVoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DyvmsapiClient::batchRobotSmartCallAsync(const BatchRobotSmartCallRequest& request, const BatchRobotSmartCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, singleCallByVoice(request), context);
|
||||
handler(this, request, batchRobotSmartCall(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByVoiceOutcomeCallable DyvmsapiClient::singleCallByVoiceCallable(const SingleCallByVoiceRequest &request) const
|
||||
DyvmsapiClient::BatchRobotSmartCallOutcomeCallable DyvmsapiClient::batchRobotSmartCallCallable(const BatchRobotSmartCallRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SingleCallByVoiceOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<BatchRobotSmartCallOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->singleCallByVoice(request);
|
||||
return this->batchRobotSmartCall(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const
|
||||
DyvmsapiClient::QueryRobotTaskListOutcome DyvmsapiClient::queryRobotTaskList(const QueryRobotTaskListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SingleCallByTtsOutcome(endpointOutcome.error());
|
||||
return QueryRobotTaskListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SingleCallByTtsOutcome(SingleCallByTtsResult(outcome.result()));
|
||||
return QueryRobotTaskListOutcome(QueryRobotTaskListResult(outcome.result()));
|
||||
else
|
||||
return SingleCallByTtsOutcome(outcome.error());
|
||||
return QueryRobotTaskListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::singleCallByTtsAsync(const SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void DyvmsapiClient::queryRobotTaskListAsync(const QueryRobotTaskListRequest& request, const QueryRobotTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, singleCallByTts(request), context);
|
||||
handler(this, request, queryRobotTaskList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SingleCallByTtsOutcomeCallable DyvmsapiClient::singleCallByTtsCallable(const SingleCallByTtsRequest &request) const
|
||||
DyvmsapiClient::QueryRobotTaskListOutcomeCallable DyvmsapiClient::queryRobotTaskListCallable(const QueryRobotTaskListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SingleCallByTtsOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotTaskListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->singleCallByTts(request);
|
||||
return this->queryRobotTaskList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskCallListOutcome DyvmsapiClient::queryRobotTaskCallList(const QueryRobotTaskCallListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRobotTaskCallListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRobotTaskCallListOutcome(QueryRobotTaskCallListResult(outcome.result()));
|
||||
else
|
||||
return QueryRobotTaskCallListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::queryRobotTaskCallListAsync(const QueryRobotTaskCallListRequest& request, const QueryRobotTaskCallListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRobotTaskCallList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::QueryRobotTaskCallListOutcomeCallable DyvmsapiClient::queryRobotTaskCallListCallable(const QueryRobotTaskCallListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRobotTaskCallListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRobotTaskCallList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::SmartCallOutcome DyvmsapiClient::smartCall(const SmartCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SmartCallOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SmartCallOutcome(SmartCallResult(outcome.result()));
|
||||
else
|
||||
return SmartCallOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::smartCallAsync(const SmartCallRequest& request, const SmartCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, smartCall(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::SmartCallOutcomeCallable DyvmsapiClient::smartCallCallable(const SmartCallRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SmartCallOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->smartCall(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::CancelOrderRobotTaskOutcome DyvmsapiClient::cancelOrderRobotTask(const CancelOrderRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelOrderRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelOrderRobotTaskOutcome(CancelOrderRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return CancelOrderRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::cancelOrderRobotTaskAsync(const CancelOrderRobotTaskRequest& request, const CancelOrderRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelOrderRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::CancelOrderRobotTaskOutcomeCallable DyvmsapiClient::cancelOrderRobotTaskCallable(const CancelOrderRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelOrderRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelOrderRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::VoipAddAccountOutcome DyvmsapiClient::voipAddAccount(const VoipAddAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VoipAddAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VoipAddAccountOutcome(VoipAddAccountResult(outcome.result()));
|
||||
else
|
||||
return VoipAddAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::voipAddAccountAsync(const VoipAddAccountRequest& request, const VoipAddAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, voipAddAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::VoipAddAccountOutcomeCallable DyvmsapiClient::voipAddAccountCallable(const VoipAddAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VoipAddAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->voipAddAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyvmsapiClient::StartRobotTaskOutcome DyvmsapiClient::startRobotTask(const StartRobotTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartRobotTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartRobotTaskOutcome(StartRobotTaskResult(outcome.result()));
|
||||
else
|
||||
return StartRobotTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyvmsapiClient::startRobotTaskAsync(const StartRobotTaskRequest& request, const StartRobotTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startRobotTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyvmsapiClient::StartRobotTaskOutcomeCallable DyvmsapiClient::startRobotTaskCallable(const StartRobotTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartRobotTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startRobotTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
|
||||
82
dyvmsapi/src/model/AddRtcAccountRequest.cc
Normal file
82
dyvmsapi/src/model/AddRtcAccountRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/AddRtcAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::AddRtcAccountRequest;
|
||||
|
||||
AddRtcAccountRequest::AddRtcAccountRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "AddRtcAccount")
|
||||
{}
|
||||
|
||||
AddRtcAccountRequest::~AddRtcAccountRequest()
|
||||
{}
|
||||
|
||||
long AddRtcAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddRtcAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddRtcAccountRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddRtcAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long AddRtcAccountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddRtcAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddRtcAccountRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void AddRtcAccountRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string AddRtcAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddRtcAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/AddRtcAccountResult.cc
Normal file
69
dyvmsapi/src/model/AddRtcAccountResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/AddRtcAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
AddRtcAccountResult::AddRtcAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddRtcAccountResult::AddRtcAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddRtcAccountResult::~AddRtcAccountResult()
|
||||
{}
|
||||
|
||||
void AddRtcAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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 AddRtcAccountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddRtcAccountResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
std::string AddRtcAccountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
192
dyvmsapi/src/model/BatchRobotSmartCallRequest.cc
Normal file
192
dyvmsapi/src/model/BatchRobotSmartCallRequest.cc
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* 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/BatchRobotSmartCallRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::BatchRobotSmartCallRequest;
|
||||
|
||||
BatchRobotSmartCallRequest::BatchRobotSmartCallRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "BatchRobotSmartCall")
|
||||
{}
|
||||
|
||||
BatchRobotSmartCallRequest::~BatchRobotSmartCallRequest()
|
||||
{}
|
||||
|
||||
long BatchRobotSmartCallRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool BatchRobotSmartCallRequest::getEarlyMediaAsr()const
|
||||
{
|
||||
return earlyMediaAsr_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
|
||||
{
|
||||
earlyMediaAsr_ = earlyMediaAsr;
|
||||
setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getTtsParamHead()const
|
||||
{
|
||||
return ttsParamHead_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setTtsParamHead(const std::string& ttsParamHead)
|
||||
{
|
||||
ttsParamHead_ = ttsParamHead;
|
||||
setCoreParameter("TtsParamHead", ttsParamHead);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getTtsParam()const
|
||||
{
|
||||
return ttsParam_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getDialogId()const
|
||||
{
|
||||
return dialogId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setDialogId(const std::string& dialogId)
|
||||
{
|
||||
dialogId_ = dialogId;
|
||||
setCoreParameter("DialogId", dialogId);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setScheduleTime(long scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", std::to_string(scheduleTime));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getCorpName()const
|
||||
{
|
||||
return corpName_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setCorpName(const std::string& corpName)
|
||||
{
|
||||
corpName_ = corpName;
|
||||
setCoreParameter("CorpName", corpName);
|
||||
}
|
||||
|
||||
bool BatchRobotSmartCallRequest::getScheduleCall()const
|
||||
{
|
||||
return scheduleCall_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setScheduleCall(bool scheduleCall)
|
||||
{
|
||||
scheduleCall_ = scheduleCall;
|
||||
setCoreParameter("ScheduleCall", scheduleCall ? "true" : "false");
|
||||
}
|
||||
|
||||
bool BatchRobotSmartCallRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/BatchRobotSmartCallResult.cc
Normal file
69
dyvmsapi/src/model/BatchRobotSmartCallResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/BatchRobotSmartCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
BatchRobotSmartCallResult::BatchRobotSmartCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchRobotSmartCallResult::BatchRobotSmartCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchRobotSmartCallResult::~BatchRobotSmartCallResult()
|
||||
{}
|
||||
|
||||
void BatchRobotSmartCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CancelCallRequest::getCallId()const
|
||||
void CancelCallRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
setCoreParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long CancelCallRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CancelCallRequest::getResourceOwnerId()const
|
||||
void CancelCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelCallRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string CancelCallRequest::getResourceOwnerAccount()const
|
||||
void CancelCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CancelCallRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long CancelCallRequest::getOwnerId()const
|
||||
void CancelCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CancelCallRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string CancelCallRequest::getAccessKeyId()const
|
||||
void CancelCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelCallResult::~CancelCallResult()
|
||||
|
||||
void CancelCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
|
||||
82
dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc
Normal file
82
dyvmsapi/src/model/CancelOrderRobotTaskRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/CancelOrderRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::CancelOrderRobotTaskRequest;
|
||||
|
||||
CancelOrderRobotTaskRequest::CancelOrderRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelOrderRobotTask")
|
||||
{}
|
||||
|
||||
CancelOrderRobotTaskRequest::~CancelOrderRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long CancelOrderRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CancelOrderRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CancelOrderRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/CancelOrderRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/CancelOrderRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/CancelOrderRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
CancelOrderRobotTaskResult::CancelOrderRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOrderRobotTaskResult::CancelOrderRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOrderRobotTaskResult::~CancelOrderRobotTaskResult()
|
||||
{}
|
||||
|
||||
void CancelOrderRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/CancelRobotTaskRequest.cc
Normal file
82
dyvmsapi/src/model/CancelRobotTaskRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/CancelRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::CancelRobotTaskRequest;
|
||||
|
||||
CancelRobotTaskRequest::CancelRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelRobotTask")
|
||||
{}
|
||||
|
||||
CancelRobotTaskRequest::~CancelRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long CancelRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CancelRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CancelRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/CancelRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/CancelRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/CancelRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
CancelRobotTaskResult::CancelRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelRobotTaskResult::CancelRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelRobotTaskResult::~CancelRobotTaskResult()
|
||||
{}
|
||||
|
||||
void CancelRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ClickToDialRequest::getResourceOwnerId()const
|
||||
void ClickToDialRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string ClickToDialRequest::getResourceOwnerAccount()const
|
||||
void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getRecordFlag()const
|
||||
@@ -55,7 +55,7 @@ bool ClickToDialRequest::getRecordFlag()const
|
||||
void ClickToDialRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setParameter("RecordFlag", std::to_string(recordFlag));
|
||||
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
long ClickToDialRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long ClickToDialRequest::getOwnerId()const
|
||||
void ClickToDialRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCallerShowNumber()const
|
||||
@@ -77,7 +77,7 @@ std::string ClickToDialRequest::getCallerShowNumber()const
|
||||
void ClickToDialRequest::setCallerShowNumber(const std::string& callerShowNumber)
|
||||
{
|
||||
callerShowNumber_ = callerShowNumber;
|
||||
setParameter("CallerShowNumber", callerShowNumber);
|
||||
setCoreParameter("CallerShowNumber", callerShowNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getAccessKeyId()const
|
||||
@@ -88,7 +88,7 @@ std::string ClickToDialRequest::getAccessKeyId()const
|
||||
void ClickToDialRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ClickToDialRequest::getSessionTimeout()const
|
||||
@@ -99,7 +99,7 @@ int ClickToDialRequest::getSessionTimeout()const
|
||||
void ClickToDialRequest::setSessionTimeout(int sessionTimeout)
|
||||
{
|
||||
sessionTimeout_ = sessionTimeout;
|
||||
setParameter("SessionTimeout", std::to_string(sessionTimeout));
|
||||
setCoreParameter("SessionTimeout", std::to_string(sessionTimeout));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCalledNumber()const
|
||||
@@ -110,7 +110,7 @@ std::string ClickToDialRequest::getCalledNumber()const
|
||||
void ClickToDialRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCalledShowNumber()const
|
||||
@@ -121,7 +121,7 @@ std::string ClickToDialRequest::getCalledShowNumber()const
|
||||
void ClickToDialRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getOutId()const
|
||||
@@ -132,7 +132,7 @@ std::string ClickToDialRequest::getOutId()const
|
||||
void ClickToDialRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getAsrFlag()const
|
||||
@@ -143,7 +143,7 @@ bool ClickToDialRequest::getAsrFlag()const
|
||||
void ClickToDialRequest::setAsrFlag(bool asrFlag)
|
||||
{
|
||||
asrFlag_ = asrFlag;
|
||||
setParameter("AsrFlag", std::to_string(asrFlag));
|
||||
setCoreParameter("AsrFlag", asrFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getAsrModelId()const
|
||||
@@ -154,7 +154,7 @@ std::string ClickToDialRequest::getAsrModelId()const
|
||||
void ClickToDialRequest::setAsrModelId(const std::string& asrModelId)
|
||||
{
|
||||
asrModelId_ = asrModelId;
|
||||
setParameter("AsrModelId", asrModelId);
|
||||
setCoreParameter("AsrModelId", asrModelId);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCallerNumber()const
|
||||
@@ -165,6 +165,6 @@ std::string ClickToDialRequest::getCallerNumber()const
|
||||
void ClickToDialRequest::setCallerNumber(const std::string& callerNumber)
|
||||
{
|
||||
callerNumber_ = callerNumber;
|
||||
setParameter("CallerNumber", callerNumber);
|
||||
setCoreParameter("CallerNumber", callerNumber);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ClickToDialResult::~ClickToDialResult()
|
||||
|
||||
void ClickToDialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
181
dyvmsapi/src/model/CreateRobotTaskRequest.cc
Normal file
181
dyvmsapi/src/model/CreateRobotTaskRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* 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/CreateRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::CreateRobotTaskRequest;
|
||||
|
||||
CreateRobotTaskRequest::CreateRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "CreateRobotTask")
|
||||
{}
|
||||
|
||||
CreateRobotTaskRequest::~CreateRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getRecallStateCodes()const
|
||||
{
|
||||
return recallStateCodes_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRecallStateCodes(const std::string& recallStateCodes)
|
||||
{
|
||||
recallStateCodes_ = recallStateCodes;
|
||||
setCoreParameter("RecallStateCodes", recallStateCodes);
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRetryType()const
|
||||
{
|
||||
return retryType_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRetryType(int retryType)
|
||||
{
|
||||
retryType_ = retryType;
|
||||
setCoreParameter("RetryType", std::to_string(retryType));
|
||||
}
|
||||
|
||||
long CreateRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CreateRobotTaskRequest::getDialogId()const
|
||||
{
|
||||
return dialogId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setDialogId(long dialogId)
|
||||
{
|
||||
dialogId_ = dialogId;
|
||||
setCoreParameter("DialogId", std::to_string(dialogId));
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRecallTimes()const
|
||||
{
|
||||
return recallTimes_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRecallTimes(int recallTimes)
|
||||
{
|
||||
recallTimes_ = recallTimes;
|
||||
setCoreParameter("RecallTimes", std::to_string(recallTimes));
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setCoreParameter("Caller", caller);
|
||||
}
|
||||
|
||||
bool CreateRobotTaskRequest::getNumberStatusIdent()const
|
||||
{
|
||||
return numberStatusIdent_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setNumberStatusIdent(bool numberStatusIdent)
|
||||
{
|
||||
numberStatusIdent_ = numberStatusIdent;
|
||||
setCoreParameter("NumberStatusIdent", numberStatusIdent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getCorpName()const
|
||||
{
|
||||
return corpName_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setCorpName(const std::string& corpName)
|
||||
{
|
||||
corpName_ = corpName;
|
||||
setCoreParameter("CorpName", corpName);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRecallInterval()const
|
||||
{
|
||||
return recallInterval_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRecallInterval(int recallInterval)
|
||||
{
|
||||
recallInterval_ = recallInterval;
|
||||
setCoreParameter("RecallInterval", std::to_string(recallInterval));
|
||||
}
|
||||
|
||||
bool CreateRobotTaskRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/CreateRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/CreateRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/CreateRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
CreateRobotTaskResult::CreateRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRobotTaskResult::CreateRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRobotTaskResult::~CreateRobotTaskResult()
|
||||
{}
|
||||
|
||||
void CreateRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/DeleteRobotTaskRequest.cc
Normal file
82
dyvmsapi/src/model/DeleteRobotTaskRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/DeleteRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::DeleteRobotTaskRequest;
|
||||
|
||||
DeleteRobotTaskRequest::DeleteRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "DeleteRobotTask")
|
||||
{}
|
||||
|
||||
DeleteRobotTaskRequest::~DeleteRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long DeleteRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long DeleteRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/DeleteRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/DeleteRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/DeleteRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
DeleteRobotTaskResult::DeleteRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRobotTaskResult::DeleteRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRobotTaskResult::~DeleteRobotTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
dyvmsapi/src/model/GetRtcTokenRequest.cc
Normal file
104
dyvmsapi/src/model/GetRtcTokenRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/GetRtcTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::GetRtcTokenRequest;
|
||||
|
||||
GetRtcTokenRequest::GetRtcTokenRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "GetRtcToken")
|
||||
{}
|
||||
|
||||
GetRtcTokenRequest::~GetRtcTokenRequest()
|
||||
{}
|
||||
|
||||
long GetRtcTokenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long GetRtcTokenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
bool GetRtcTokenRequest::getIsCustomAccount()const
|
||||
{
|
||||
return isCustomAccount_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setIsCustomAccount(bool isCustomAccount)
|
||||
{
|
||||
isCustomAccount_ = isCustomAccount;
|
||||
setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/GetRtcTokenResult.cc
Normal file
69
dyvmsapi/src/model/GetRtcTokenResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/GetRtcTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
GetRtcTokenResult::GetRtcTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRtcTokenResult::GetRtcTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRtcTokenResult::~GetRtcTokenResult()
|
||||
{}
|
||||
|
||||
void GetRtcTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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 GetRtcTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetRtcTokenResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
std::string GetRtcTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string IvrCallRequest::getByeCode()const
|
||||
void IvrCallRequest::setByeCode(const std::string& byeCode)
|
||||
{
|
||||
byeCode_ = byeCode;
|
||||
setParameter("ByeCode", byeCode);
|
||||
setCoreParameter("ByeCode", byeCode);
|
||||
}
|
||||
|
||||
std::vector<IvrCallRequest::MenuKeyMap> IvrCallRequest::getMenuKeyMap()const
|
||||
@@ -48,9 +48,9 @@ void IvrCallRequest::setMenuKeyMap(const std::vector<MenuKeyMap>& menuKeyMap)
|
||||
for(int i = 0; i!= menuKeyMap.size(); i++) {
|
||||
auto obj = menuKeyMap.at(i);
|
||||
std::string str ="MenuKeyMap."+ std::to_string(i);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setParameter(str + ".Code", obj.code);
|
||||
setParameter(str + ".TtsParams", obj.ttsParams);
|
||||
setCoreParameter(str + ".Code", obj.code);
|
||||
setCoreParameter(str + ".TtsParams", obj.ttsParams);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ long IvrCallRequest::getResourceOwnerId()const
|
||||
void IvrCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getResourceOwnerAccount()const
|
||||
@@ -73,7 +73,7 @@ std::string IvrCallRequest::getResourceOwnerAccount()const
|
||||
void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getStartTtsParams()const
|
||||
@@ -84,7 +84,7 @@ std::string IvrCallRequest::getStartTtsParams()const
|
||||
void IvrCallRequest::setStartTtsParams(const std::string& startTtsParams)
|
||||
{
|
||||
startTtsParams_ = startTtsParams;
|
||||
setParameter("StartTtsParams", startTtsParams);
|
||||
setCoreParameter("StartTtsParams", startTtsParams);
|
||||
}
|
||||
|
||||
long IvrCallRequest::getPlayTimes()const
|
||||
@@ -95,7 +95,7 @@ long IvrCallRequest::getPlayTimes()const
|
||||
void IvrCallRequest::setPlayTimes(long playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
long IvrCallRequest::getOwnerId()const
|
||||
@@ -106,7 +106,7 @@ long IvrCallRequest::getOwnerId()const
|
||||
void IvrCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int IvrCallRequest::getTimeout()const
|
||||
@@ -117,7 +117,7 @@ int IvrCallRequest::getTimeout()const
|
||||
void IvrCallRequest::setTimeout(int timeout)
|
||||
{
|
||||
timeout_ = timeout;
|
||||
setParameter("Timeout", std::to_string(timeout));
|
||||
setCoreParameter("Timeout", std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getAccessKeyId()const
|
||||
@@ -128,7 +128,7 @@ std::string IvrCallRequest::getAccessKeyId()const
|
||||
void IvrCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getStartCode()const
|
||||
@@ -139,7 +139,7 @@ std::string IvrCallRequest::getStartCode()const
|
||||
void IvrCallRequest::setStartCode(const std::string& startCode)
|
||||
{
|
||||
startCode_ = startCode;
|
||||
setParameter("StartCode", startCode);
|
||||
setCoreParameter("StartCode", startCode);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getCalledNumber()const
|
||||
@@ -150,7 +150,7 @@ std::string IvrCallRequest::getCalledNumber()const
|
||||
void IvrCallRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getCalledShowNumber()const
|
||||
@@ -161,7 +161,7 @@ std::string IvrCallRequest::getCalledShowNumber()const
|
||||
void IvrCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getOutId()const
|
||||
@@ -172,7 +172,7 @@ std::string IvrCallRequest::getOutId()const
|
||||
void IvrCallRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getByeTtsParams()const
|
||||
@@ -183,6 +183,6 @@ std::string IvrCallRequest::getByeTtsParams()const
|
||||
void IvrCallRequest::setByeTtsParams(const std::string& byeTtsParams)
|
||||
{
|
||||
byeTtsParams_ = byeTtsParams;
|
||||
setParameter("ByeTtsParams", byeTtsParams);
|
||||
setCoreParameter("ByeTtsParams", byeTtsParams);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ IvrCallResult::~IvrCallResult()
|
||||
|
||||
void IvrCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryCallDetailByCallIdRequest::getCallId()const
|
||||
void QueryCallDetailByCallIdRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
setCoreParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long QueryCallDetailByCallIdRequest::getResourceOwnerId()const
|
||||
void QueryCallDetailByCallIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getQueryDate()const
|
||||
@@ -55,7 +55,7 @@ long QueryCallDetailByCallIdRequest::getQueryDate()const
|
||||
void QueryCallDetailByCallIdRequest::setQueryDate(long queryDate)
|
||||
{
|
||||
queryDate_ = queryDate;
|
||||
setParameter("QueryDate", std::to_string(queryDate));
|
||||
setCoreParameter("QueryDate", std::to_string(queryDate));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const
|
||||
@@ -66,7 +66,7 @@ std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const
|
||||
void QueryCallDetailByCallIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getProdId()const
|
||||
@@ -77,7 +77,7 @@ long QueryCallDetailByCallIdRequest::getProdId()const
|
||||
void QueryCallDetailByCallIdRequest::setProdId(long prodId)
|
||||
{
|
||||
prodId_ = prodId;
|
||||
setParameter("ProdId", std::to_string(prodId));
|
||||
setCoreParameter("ProdId", std::to_string(prodId));
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long QueryCallDetailByCallIdRequest::getOwnerId()const
|
||||
void QueryCallDetailByCallIdRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
|
||||
@@ -99,6 +99,6 @@ std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
|
||||
void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ QueryCallDetailByCallIdResult::~QueryCallDetailByCallIdResult()
|
||||
|
||||
void QueryCallDetailByCallIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
104
dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.cc
Normal file
104
dyvmsapi/src/model/QueryCallDetailByTaskIdRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/QueryCallDetailByTaskIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryCallDetailByTaskIdRequest;
|
||||
|
||||
QueryCallDetailByTaskIdRequest::QueryCallDetailByTaskIdRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallDetailByTaskId")
|
||||
{}
|
||||
|
||||
QueryCallDetailByTaskIdRequest::~QueryCallDetailByTaskIdRequest()
|
||||
{}
|
||||
|
||||
long QueryCallDetailByTaskIdRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long QueryCallDetailByTaskIdRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setQueryDate(long queryDate)
|
||||
{
|
||||
queryDate_ = queryDate;
|
||||
setCoreParameter("QueryDate", std::to_string(queryDate));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
long QueryCallDetailByTaskIdRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc
Normal file
69
dyvmsapi/src/model/QueryCallDetailByTaskIdResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryCallDetailByTaskIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCallDetailByTaskIdResult::~QueryCallDetailByTaskIdResult()
|
||||
{}
|
||||
|
||||
void QueryCallDetailByTaskIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/QueryRobotInfoListRequest.cc
Normal file
82
dyvmsapi/src/model/QueryRobotInfoListRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/QueryRobotInfoListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotInfoListRequest;
|
||||
|
||||
QueryRobotInfoListRequest::QueryRobotInfoListRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotInfoList")
|
||||
{}
|
||||
|
||||
QueryRobotInfoListRequest::~QueryRobotInfoListRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotInfoListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotInfoListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListRequest::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
void QueryRobotInfoListRequest::setAuditStatus(const std::string& auditStatus)
|
||||
{
|
||||
auditStatus_ = auditStatus;
|
||||
setCoreParameter("AuditStatus", auditStatus);
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotInfoListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRobotInfoListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotInfoListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotInfoListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotInfoListResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotInfoListResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotInfoListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotInfoListResult::QueryRobotInfoListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotInfoListResult::QueryRobotInfoListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotInfoListResult::~QueryRobotInfoListResult()
|
||||
{}
|
||||
|
||||
void QueryRobotInfoListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotInfoListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.cc
Normal file
104
dyvmsapi/src/model/QueryRobotTaskCallDetailRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/QueryRobotTaskCallDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallDetailRequest;
|
||||
|
||||
QueryRobotTaskCallDetailRequest::QueryRobotTaskCallDetailRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallDetail")
|
||||
{}
|
||||
|
||||
QueryRobotTaskCallDetailRequest::~QueryRobotTaskCallDetailRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setQueryDate(long queryDate)
|
||||
{
|
||||
queryDate_ = queryDate;
|
||||
setCoreParameter("QueryDate", std::to_string(queryDate));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotTaskCallDetailResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotTaskCallDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotTaskCallDetailResult::~QueryRobotTaskCallDetailResult()
|
||||
{}
|
||||
|
||||
void QueryRobotTaskCallDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
181
dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc
Normal file
181
dyvmsapi/src/model/QueryRobotTaskCallListRequest.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* 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/QueryRobotTaskCallListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallListRequest;
|
||||
|
||||
QueryRobotTaskCallListRequest::QueryRobotTaskCallListRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallList")
|
||||
{}
|
||||
|
||||
QueryRobotTaskCallListRequest::~QueryRobotTaskCallListRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotTaskCallListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getCalled()const
|
||||
{
|
||||
return called_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setCalled(const std::string& called)
|
||||
{
|
||||
called_ = called;
|
||||
setCoreParameter("Called", called);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDialogCountFrom()const
|
||||
{
|
||||
return dialogCountFrom_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDialogCountFrom(const std::string& dialogCountFrom)
|
||||
{
|
||||
dialogCountFrom_ = dialogCountFrom;
|
||||
setCoreParameter("DialogCountFrom", dialogCountFrom);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDurationTo()const
|
||||
{
|
||||
return durationTo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDurationTo(const std::string& durationTo)
|
||||
{
|
||||
durationTo_ = durationTo;
|
||||
setCoreParameter("DurationTo", durationTo);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getHangupDirection()const
|
||||
{
|
||||
return hangupDirection_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setHangupDirection(const std::string& hangupDirection)
|
||||
{
|
||||
hangupDirection_ = hangupDirection;
|
||||
setCoreParameter("HangupDirection", hangupDirection);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDialogCountTo()const
|
||||
{
|
||||
return dialogCountTo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDialogCountTo(const std::string& dialogCountTo)
|
||||
{
|
||||
dialogCountTo_ = dialogCountTo;
|
||||
setCoreParameter("DialogCountTo", dialogCountTo);
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDurationFrom()const
|
||||
{
|
||||
return durationFrom_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDurationFrom(const std::string& durationFrom)
|
||||
{
|
||||
durationFrom_ = durationFrom;
|
||||
setCoreParameter("DurationFrom", durationFrom);
|
||||
}
|
||||
|
||||
int QueryRobotTaskCallListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int QueryRobotTaskCallListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getCallResult()const
|
||||
{
|
||||
return callResult_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setCallResult(const std::string& callResult)
|
||||
{
|
||||
callResult_ = callResult;
|
||||
setCoreParameter("CallResult", callResult);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotTaskCallListResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotTaskCallListResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotTaskCallListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotTaskCallListResult::QueryRobotTaskCallListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotTaskCallListResult::QueryRobotTaskCallListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotTaskCallListResult::~QueryRobotTaskCallListResult()
|
||||
{}
|
||||
|
||||
void QueryRobotTaskCallListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc
Normal file
82
dyvmsapi/src/model/QueryRobotTaskDetailRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/QueryRobotTaskDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskDetailRequest;
|
||||
|
||||
QueryRobotTaskDetailRequest::QueryRobotTaskDetailRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskDetail")
|
||||
{}
|
||||
|
||||
QueryRobotTaskDetailRequest::~QueryRobotTaskDetailRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotTaskDetailResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotTaskDetailResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotTaskDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotTaskDetailResult::QueryRobotTaskDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotTaskDetailResult::QueryRobotTaskDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotTaskDetailResult::~QueryRobotTaskDetailResult()
|
||||
{}
|
||||
|
||||
void QueryRobotTaskDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
126
dyvmsapi/src/model/QueryRobotTaskListRequest.cc
Normal file
126
dyvmsapi/src/model/QueryRobotTaskListRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotTaskListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskListRequest;
|
||||
|
||||
QueryRobotTaskListRequest::QueryRobotTaskListRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskList")
|
||||
{}
|
||||
|
||||
QueryRobotTaskListRequest::~QueryRobotTaskListRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotTaskListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getTime()const
|
||||
{
|
||||
return time_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setTime(const std::string& time)
|
||||
{
|
||||
time_ = time;
|
||||
setCoreParameter("Time", time);
|
||||
}
|
||||
|
||||
long QueryRobotTaskListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotTaskListResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotTaskListResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotTaskListResult::QueryRobotTaskListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotTaskListResult::QueryRobotTaskListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotTaskListResult::~QueryRobotTaskListResult()
|
||||
{}
|
||||
|
||||
void QueryRobotTaskListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
71
dyvmsapi/src/model/QueryRobotv2AllListRequest.cc
Normal file
71
dyvmsapi/src/model/QueryRobotv2AllListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/QueryRobotv2AllListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryRobotv2AllListRequest;
|
||||
|
||||
QueryRobotv2AllListRequest::QueryRobotv2AllListRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotv2AllList")
|
||||
{}
|
||||
|
||||
QueryRobotv2AllListRequest::~QueryRobotv2AllListRequest()
|
||||
{}
|
||||
|
||||
long QueryRobotv2AllListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryRobotv2AllListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotv2AllListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotv2AllListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRobotv2AllListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotv2AllListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotv2AllListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotv2AllListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/QueryRobotv2AllListResult.cc
Normal file
69
dyvmsapi/src/model/QueryRobotv2AllListResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryRobotv2AllListResult::QueryRobotv2AllListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRobotv2AllListResult::QueryRobotv2AllListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRobotv2AllListResult::~QueryRobotv2AllListResult()
|
||||
{}
|
||||
|
||||
void QueryRobotv2AllListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRobotv2AllListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryRobotv2AllListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRobotv2AllListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long SingleCallByTtsRequest::getResourceOwnerId()const
|
||||
void SingleCallByTtsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
|
||||
void SingleCallByTtsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsCode()const
|
||||
@@ -55,7 +55,7 @@ std::string SingleCallByTtsRequest::getTtsCode()const
|
||||
void SingleCallByTtsRequest::setTtsCode(const std::string& ttsCode)
|
||||
{
|
||||
ttsCode_ = ttsCode;
|
||||
setParameter("TtsCode", ttsCode);
|
||||
setCoreParameter("TtsCode", ttsCode);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getPlayTimes()const
|
||||
@@ -66,7 +66,7 @@ int SingleCallByTtsRequest::getPlayTimes()const
|
||||
void SingleCallByTtsRequest::setPlayTimes(int playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsParam()const
|
||||
@@ -77,7 +77,7 @@ std::string SingleCallByTtsRequest::getTtsParam()const
|
||||
void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setParameter("TtsParam", ttsParam);
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long SingleCallByTtsRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long SingleCallByTtsRequest::getOwnerId()const
|
||||
void SingleCallByTtsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getSpeed()const
|
||||
@@ -99,7 +99,7 @@ int SingleCallByTtsRequest::getSpeed()const
|
||||
void SingleCallByTtsRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string SingleCallByTtsRequest::getAccessKeyId()const
|
||||
void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getVolume()const
|
||||
@@ -121,7 +121,7 @@ int SingleCallByTtsRequest::getVolume()const
|
||||
void SingleCallByTtsRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledNumber()const
|
||||
@@ -132,7 +132,7 @@ std::string SingleCallByTtsRequest::getCalledNumber()const
|
||||
void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledShowNumber()const
|
||||
@@ -143,7 +143,7 @@ std::string SingleCallByTtsRequest::getCalledShowNumber()const
|
||||
void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getOutId()const
|
||||
@@ -154,6 +154,6 @@ std::string SingleCallByTtsRequest::getOutId()const
|
||||
void SingleCallByTtsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SingleCallByTtsResult::~SingleCallByTtsResult()
|
||||
|
||||
void SingleCallByTtsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ int SingleCallByVoiceRequest::getVolume()const
|
||||
void SingleCallByVoiceRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long SingleCallByVoiceRequest::getResourceOwnerId()const
|
||||
void SingleCallByVoiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
|
||||
void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getCalledNumber()const
|
||||
@@ -66,7 +66,7 @@ std::string SingleCallByVoiceRequest::getCalledNumber()const
|
||||
void SingleCallByVoiceRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getVoiceCode()const
|
||||
@@ -77,7 +77,7 @@ std::string SingleCallByVoiceRequest::getVoiceCode()const
|
||||
void SingleCallByVoiceRequest::setVoiceCode(const std::string& voiceCode)
|
||||
{
|
||||
voiceCode_ = voiceCode;
|
||||
setParameter("VoiceCode", voiceCode);
|
||||
setCoreParameter("VoiceCode", voiceCode);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getCalledShowNumber()const
|
||||
@@ -88,7 +88,7 @@ std::string SingleCallByVoiceRequest::getCalledShowNumber()const
|
||||
void SingleCallByVoiceRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getPlayTimes()const
|
||||
@@ -99,7 +99,7 @@ int SingleCallByVoiceRequest::getPlayTimes()const
|
||||
void SingleCallByVoiceRequest::setPlayTimes(int playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getOutId()const
|
||||
@@ -110,7 +110,7 @@ std::string SingleCallByVoiceRequest::getOutId()const
|
||||
void SingleCallByVoiceRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getOwnerId()const
|
||||
@@ -121,7 +121,7 @@ long SingleCallByVoiceRequest::getOwnerId()const
|
||||
void SingleCallByVoiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getSpeed()const
|
||||
@@ -132,7 +132,7 @@ int SingleCallByVoiceRequest::getSpeed()const
|
||||
void SingleCallByVoiceRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getAccessKeyId()const
|
||||
@@ -143,6 +143,6 @@ std::string SingleCallByVoiceRequest::getAccessKeyId()const
|
||||
void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SingleCallByVoiceResult::~SingleCallByVoiceResult()
|
||||
|
||||
void SingleCallByVoiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
104
dyvmsapi/src/model/SmartCallOperateRequest.cc
Normal file
104
dyvmsapi/src/model/SmartCallOperateRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/SmartCallOperateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::SmartCallOperateRequest;
|
||||
|
||||
SmartCallOperateRequest::SmartCallOperateRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCallOperate")
|
||||
{}
|
||||
|
||||
SmartCallOperateRequest::~SmartCallOperateRequest()
|
||||
{}
|
||||
|
||||
std::string SmartCallOperateRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setCoreParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long SmartCallOperateRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setParam(const std::string& param)
|
||||
{
|
||||
param_ = param;
|
||||
setCoreParameter("Param", param);
|
||||
}
|
||||
|
||||
long SmartCallOperateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setCoreParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/SmartCallOperateResult.cc
Normal file
69
dyvmsapi/src/model/SmartCallOperateResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/SmartCallOperateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
SmartCallOperateResult::SmartCallOperateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SmartCallOperateResult::SmartCallOperateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SmartCallOperateResult::~SmartCallOperateResult()
|
||||
{}
|
||||
|
||||
void SmartCallOperateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool SmartCallOperateResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string SmartCallOperateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SmartCallOperateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,51 +33,29 @@ long SmartCallRequest::getResourceOwnerId()const
|
||||
void SmartCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getActionCodeBreak()const
|
||||
std::string SmartCallRequest::getVoiceCodeParam()const
|
||||
{
|
||||
return actionCodeBreak_;
|
||||
return voiceCodeParam_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
|
||||
void SmartCallRequest::setVoiceCodeParam(const std::string& voiceCodeParam)
|
||||
{
|
||||
actionCodeBreak_ = actionCodeBreak;
|
||||
setParameter("ActionCodeBreak", std::to_string(actionCodeBreak));
|
||||
voiceCodeParam_ = voiceCodeParam;
|
||||
setCoreParameter("VoiceCodeParam", voiceCodeParam);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getResourceOwnerAccount()const
|
||||
bool SmartCallRequest::getEarlyMediaAsr()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return earlyMediaAsr_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getRecordFlag()const
|
||||
{
|
||||
return recordFlag_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setParameter("RecordFlag", std::to_string(recordFlag));
|
||||
}
|
||||
|
||||
long SmartCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
earlyMediaAsr_ = earlyMediaAsr;
|
||||
setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
||||
}
|
||||
|
||||
int SmartCallRequest::getSpeed()const
|
||||
@@ -88,7 +66,7 @@ int SmartCallRequest::getSpeed()const
|
||||
void SmartCallRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getAccessKeyId()const
|
||||
@@ -99,18 +77,29 @@ std::string SmartCallRequest::getAccessKeyId()const
|
||||
void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getVolume()const
|
||||
std::string SmartCallRequest::getAsrBaseId()const
|
||||
{
|
||||
return volume_;
|
||||
return asrBaseId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setVolume(int volume)
|
||||
void SmartCallRequest::setAsrBaseId(const std::string& asrBaseId)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
asrBaseId_ = asrBaseId;
|
||||
setCoreParameter("AsrBaseId", asrBaseId);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getSessionTimeout()const
|
||||
{
|
||||
return sessionTimeout_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setSessionTimeout(int sessionTimeout)
|
||||
{
|
||||
sessionTimeout_ = sessionTimeout;
|
||||
setCoreParameter("SessionTimeout", std::to_string(sessionTimeout));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getDynamicId()const
|
||||
@@ -121,7 +110,7 @@ std::string SmartCallRequest::getDynamicId()const
|
||||
void SmartCallRequest::setDynamicId(const std::string& dynamicId)
|
||||
{
|
||||
dynamicId_ = dynamicId;
|
||||
setParameter("DynamicId", dynamicId);
|
||||
setCoreParameter("DynamicId", dynamicId);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getCalledNumber()const
|
||||
@@ -132,7 +121,18 @@ std::string SmartCallRequest::getCalledNumber()const
|
||||
void SmartCallRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getTtsSpeed()const
|
||||
{
|
||||
return ttsSpeed_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setTtsSpeed(int ttsSpeed)
|
||||
{
|
||||
ttsSpeed_ = ttsSpeed;
|
||||
setCoreParameter("TtsSpeed", std::to_string(ttsSpeed));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getVoiceCode()const
|
||||
@@ -143,18 +143,7 @@ std::string SmartCallRequest::getVoiceCode()const
|
||||
void SmartCallRequest::setVoiceCode(const std::string& voiceCode)
|
||||
{
|
||||
voiceCode_ = voiceCode;
|
||||
setParameter("VoiceCode", voiceCode);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getMuteTime()const
|
||||
{
|
||||
return muteTime_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setMuteTime(int muteTime)
|
||||
{
|
||||
muteTime_ = muteTime;
|
||||
setParameter("MuteTime", std::to_string(muteTime));
|
||||
setCoreParameter("VoiceCode", voiceCode);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getCalledShowNumber()const
|
||||
@@ -165,7 +154,106 @@ std::string SmartCallRequest::getCalledShowNumber()const
|
||||
void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getActionCodeTimeBreak()const
|
||||
{
|
||||
return actionCodeTimeBreak_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setActionCodeTimeBreak(int actionCodeTimeBreak)
|
||||
{
|
||||
actionCodeTimeBreak_ = actionCodeTimeBreak;
|
||||
setCoreParameter("ActionCodeTimeBreak", std::to_string(actionCodeTimeBreak));
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getTtsConf()const
|
||||
{
|
||||
return ttsConf_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setTtsConf(bool ttsConf)
|
||||
{
|
||||
ttsConf_ = ttsConf;
|
||||
setCoreParameter("TtsConf", ttsConf ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getActionCodeBreak()const
|
||||
{
|
||||
return actionCodeBreak_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
|
||||
{
|
||||
actionCodeBreak_ = actionCodeBreak;
|
||||
setCoreParameter("ActionCodeBreak", actionCodeBreak ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getRecordFlag()const
|
||||
{
|
||||
return recordFlag_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
long SmartCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getTtsVolume()const
|
||||
{
|
||||
return ttsVolume_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setTtsVolume(int ttsVolume)
|
||||
{
|
||||
ttsVolume_ = ttsVolume;
|
||||
setCoreParameter("TtsVolume", std::to_string(ttsVolume));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getMuteTime()const
|
||||
{
|
||||
return muteTime_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setMuteTime(int muteTime)
|
||||
{
|
||||
muteTime_ = muteTime;
|
||||
setCoreParameter("MuteTime", std::to_string(muteTime));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getOutId()const
|
||||
@@ -176,7 +264,7 @@ std::string SmartCallRequest::getOutId()const
|
||||
void SmartCallRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getAsrModelId()const
|
||||
@@ -187,7 +275,7 @@ std::string SmartCallRequest::getAsrModelId()const
|
||||
void SmartCallRequest::setAsrModelId(const std::string& asrModelId)
|
||||
{
|
||||
asrModelId_ = asrModelId;
|
||||
setParameter("AsrModelId", asrModelId);
|
||||
setCoreParameter("AsrModelId", asrModelId);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getPauseTime()const
|
||||
@@ -198,6 +286,17 @@ int SmartCallRequest::getPauseTime()const
|
||||
void SmartCallRequest::setPauseTime(int pauseTime)
|
||||
{
|
||||
pauseTime_ = pauseTime;
|
||||
setParameter("PauseTime", std::to_string(pauseTime));
|
||||
setCoreParameter("PauseTime", std::to_string(pauseTime));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getTtsStyle()const
|
||||
{
|
||||
return ttsStyle_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setTtsStyle(const std::string& ttsStyle)
|
||||
{
|
||||
ttsStyle_ = ttsStyle;
|
||||
setCoreParameter("TtsStyle", ttsStyle);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ SmartCallResult::~SmartCallResult()
|
||||
|
||||
void SmartCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
93
dyvmsapi/src/model/StartRobotTaskRequest.cc
Normal file
93
dyvmsapi/src/model/StartRobotTaskRequest.cc
Normal 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/StartRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::StartRobotTaskRequest;
|
||||
|
||||
StartRobotTaskRequest::StartRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "StartRobotTask")
|
||||
{}
|
||||
|
||||
StartRobotTaskRequest::~StartRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long StartRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setScheduleTime(const std::string& scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", scheduleTime);
|
||||
}
|
||||
|
||||
long StartRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StartRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/StartRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/StartRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/StartRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
StartRobotTaskResult::StartRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartRobotTaskResult::StartRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartRobotTaskResult::~StartRobotTaskResult()
|
||||
{}
|
||||
|
||||
void StartRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string StartRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/StopRobotTaskRequest.cc
Normal file
82
dyvmsapi/src/model/StopRobotTaskRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/StopRobotTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::StopRobotTaskRequest;
|
||||
|
||||
StopRobotTaskRequest::StopRobotTaskRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "StopRobotTask")
|
||||
{}
|
||||
|
||||
StopRobotTaskRequest::~StopRobotTaskRequest()
|
||||
{}
|
||||
|
||||
long StopRobotTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StopRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long StopRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StopRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string StopRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/StopRobotTaskResult.cc
Normal file
69
dyvmsapi/src/model/StopRobotTaskResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/StopRobotTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
StopRobotTaskResult::StopRobotTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopRobotTaskResult::StopRobotTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopRobotTaskResult::~StopRobotTaskResult()
|
||||
{}
|
||||
|
||||
void StopRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopRobotTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string StopRobotTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopRobotTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
115
dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc
Normal file
115
dyvmsapi/src/model/UploadRobotTaskCalledFileRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/UploadRobotTaskCalledFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::UploadRobotTaskCalledFileRequest;
|
||||
|
||||
UploadRobotTaskCalledFileRequest::UploadRobotTaskCalledFileRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "UploadRobotTaskCalledFile")
|
||||
{}
|
||||
|
||||
UploadRobotTaskCalledFileRequest::~UploadRobotTaskCalledFileRequest()
|
||||
{}
|
||||
|
||||
long UploadRobotTaskCalledFileRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getTtsParamHead()const
|
||||
{
|
||||
return ttsParamHead_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setTtsParamHead(const std::string& ttsParamHead)
|
||||
{
|
||||
ttsParamHead_ = ttsParamHead;
|
||||
setCoreParameter("TtsParamHead", ttsParamHead);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getTtsParam()const
|
||||
{
|
||||
return ttsParam_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long UploadRobotTaskCalledFileRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
long UploadRobotTaskCalledFileRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
69
dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc
Normal file
69
dyvmsapi/src/model/UploadRobotTaskCalledFileResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dyvmsapi/model/UploadRobotTaskCalledFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadRobotTaskCalledFileResult::~UploadRobotTaskCalledFileResult()
|
||||
{}
|
||||
|
||||
void UploadRobotTaskCalledFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long VoipAddAccountRequest::getResourceOwnerId()const
|
||||
void VoipAddAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string VoipAddAccountRequest::getResourceOwnerAccount()const
|
||||
void VoipAddAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long VoipAddAccountRequest::getOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long VoipAddAccountRequest::getOwnerId()const
|
||||
void VoipAddAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getDeviceId()const
|
||||
@@ -66,7 +66,7 @@ std::string VoipAddAccountRequest::getDeviceId()const
|
||||
void VoipAddAccountRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string VoipAddAccountRequest::getAccessKeyId()const
|
||||
void VoipAddAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ VoipAddAccountResult::~VoipAddAccountResult()
|
||||
|
||||
void VoipAddAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long VoipGetTokenRequest::getResourceOwnerId()const
|
||||
void VoipGetTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getVoipId()const
|
||||
@@ -44,7 +44,7 @@ std::string VoipGetTokenRequest::getVoipId()const
|
||||
void VoipGetTokenRequest::setVoipId(const std::string& voipId)
|
||||
{
|
||||
voipId_ = voipId;
|
||||
setParameter("VoipId", voipId);
|
||||
setCoreParameter("VoipId", voipId);
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string VoipGetTokenRequest::getResourceOwnerAccount()const
|
||||
void VoipGetTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long VoipGetTokenRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long VoipGetTokenRequest::getOwnerId()const
|
||||
void VoipGetTokenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getDeviceId()const
|
||||
@@ -77,7 +77,18 @@ std::string VoipGetTokenRequest::getDeviceId()const
|
||||
void VoipGetTokenRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
bool VoipGetTokenRequest::getIsCustomAccount()const
|
||||
{
|
||||
return isCustomAccount_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setIsCustomAccount(bool isCustomAccount)
|
||||
{
|
||||
isCustomAccount_ = isCustomAccount;
|
||||
setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getAccessKeyId()const
|
||||
@@ -88,6 +99,6 @@ std::string VoipGetTokenRequest::getAccessKeyId()const
|
||||
void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ VoipGetTokenResult::~VoipGetTokenResult()
|
||||
|
||||
void VoipGetTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
Reference in New Issue
Block a user