Update Dyvmsapi SDK.

This commit is contained in:
sdk-team
2021-07-30 06:16:36 +00:00
parent 39e386ae1c
commit 9d56952627
89 changed files with 7762 additions and 1 deletions

View File

@@ -87,6 +87,42 @@ DyvmsapiClient::AddRtcAccountOutcomeCallable DyvmsapiClient::addRtcAccountCallab
return task->get_future();
}
DyvmsapiClient::AddVirtualNumberRelationOutcome DyvmsapiClient::addVirtualNumberRelation(const AddVirtualNumberRelationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddVirtualNumberRelationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddVirtualNumberRelationOutcome(AddVirtualNumberRelationResult(outcome.result()));
else
return AddVirtualNumberRelationOutcome(outcome.error());
}
void DyvmsapiClient::addVirtualNumberRelationAsync(const AddVirtualNumberRelationRequest& request, const AddVirtualNumberRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addVirtualNumberRelation(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::AddVirtualNumberRelationOutcomeCallable DyvmsapiClient::addVirtualNumberRelationCallable(const AddVirtualNumberRelationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddVirtualNumberRelationOutcome()>>(
[this, request]()
{
return this->addVirtualNumberRelation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::BatchRobotSmartCallOutcome DyvmsapiClient::batchRobotSmartCall(const BatchRobotSmartCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +339,78 @@ DyvmsapiClient::ClickToDialOutcomeCallable DyvmsapiClient::clickToDialCallable(c
return task->get_future();
}
DyvmsapiClient::CloseSipAccountOutcome DyvmsapiClient::closeSipAccount(const CloseSipAccountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CloseSipAccountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CloseSipAccountOutcome(CloseSipAccountResult(outcome.result()));
else
return CloseSipAccountOutcome(outcome.error());
}
void DyvmsapiClient::closeSipAccountAsync(const CloseSipAccountRequest& request, const CloseSipAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, closeSipAccount(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::CloseSipAccountOutcomeCallable DyvmsapiClient::closeSipAccountCallable(const CloseSipAccountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CloseSipAccountOutcome()>>(
[this, request]()
{
return this->closeSipAccount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::CreateCallTaskOutcome DyvmsapiClient::createCallTask(const CreateCallTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCallTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCallTaskOutcome(CreateCallTaskResult(outcome.result()));
else
return CreateCallTaskOutcome(outcome.error());
}
void DyvmsapiClient::createCallTaskAsync(const CreateCallTaskRequest& request, const CreateCallTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCallTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::CreateCallTaskOutcomeCallable DyvmsapiClient::createCallTaskCallable(const CreateCallTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCallTaskOutcome()>>(
[this, request]()
{
return this->createCallTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::CreateRobotTaskOutcome DyvmsapiClient::createRobotTask(const CreateRobotTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,6 +447,42 @@ DyvmsapiClient::CreateRobotTaskOutcomeCallable DyvmsapiClient::createRobotTaskCa
return task->get_future();
}
DyvmsapiClient::CreateSipAccountOutcome DyvmsapiClient::createSipAccount(const CreateSipAccountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSipAccountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSipAccountOutcome(CreateSipAccountResult(outcome.result()));
else
return CreateSipAccountOutcome(outcome.error());
}
void DyvmsapiClient::createSipAccountAsync(const CreateSipAccountRequest& request, const CreateSipAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSipAccount(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::CreateSipAccountOutcomeCallable DyvmsapiClient::createSipAccountCallable(const CreateSipAccountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSipAccountOutcome()>>(
[this, request]()
{
return this->createSipAccount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::DeleteRobotTaskOutcome DyvmsapiClient::deleteRobotTask(const DeleteRobotTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,6 +591,114 @@ DyvmsapiClient::DoRtcNumberAuthOutcomeCallable DyvmsapiClient::doRtcNumberAuthCa
return task->get_future();
}
DyvmsapiClient::DoubleCallSeatOutcome DyvmsapiClient::doubleCallSeat(const DoubleCallSeatRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DoubleCallSeatOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DoubleCallSeatOutcome(DoubleCallSeatResult(outcome.result()));
else
return DoubleCallSeatOutcome(outcome.error());
}
void DyvmsapiClient::doubleCallSeatAsync(const DoubleCallSeatRequest& request, const DoubleCallSeatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, doubleCallSeat(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::DoubleCallSeatOutcomeCallable DyvmsapiClient::doubleCallSeatCallable(const DoubleCallSeatRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DoubleCallSeatOutcome()>>(
[this, request]()
{
return this->doubleCallSeat(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ExecuteCallTaskOutcome DyvmsapiClient::executeCallTask(const ExecuteCallTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecuteCallTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecuteCallTaskOutcome(ExecuteCallTaskResult(outcome.result()));
else
return ExecuteCallTaskOutcome(outcome.error());
}
void DyvmsapiClient::executeCallTaskAsync(const ExecuteCallTaskRequest& request, const ExecuteCallTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, executeCallTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ExecuteCallTaskOutcomeCallable DyvmsapiClient::executeCallTaskCallable(const ExecuteCallTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecuteCallTaskOutcome()>>(
[this, request]()
{
return this->executeCallTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::GetHotlineQualificationByOrderOutcome DyvmsapiClient::getHotlineQualificationByOrder(const GetHotlineQualificationByOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetHotlineQualificationByOrderOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetHotlineQualificationByOrderOutcome(GetHotlineQualificationByOrderResult(outcome.result()));
else
return GetHotlineQualificationByOrderOutcome(outcome.error());
}
void DyvmsapiClient::getHotlineQualificationByOrderAsync(const GetHotlineQualificationByOrderRequest& request, const GetHotlineQualificationByOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getHotlineQualificationByOrder(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::GetHotlineQualificationByOrderOutcomeCallable DyvmsapiClient::getHotlineQualificationByOrderCallable(const GetHotlineQualificationByOrderRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetHotlineQualificationByOrderOutcome()>>(
[this, request]()
{
return this->getHotlineQualificationByOrder(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::GetRtcTokenOutcome DyvmsapiClient::getRtcToken(const GetRtcTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +735,42 @@ DyvmsapiClient::GetRtcTokenOutcomeCallable DyvmsapiClient::getRtcTokenCallable(c
return task->get_future();
}
DyvmsapiClient::GetTokenOutcome DyvmsapiClient::getToken(const GetTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTokenOutcome(GetTokenResult(outcome.result()));
else
return GetTokenOutcome(outcome.error());
}
void DyvmsapiClient::getTokenAsync(const GetTokenRequest& request, const GetTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getToken(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::GetTokenOutcomeCallable DyvmsapiClient::getTokenCallable(const GetTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTokenOutcome()>>(
[this, request]()
{
return this->getToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::IvrCallOutcome DyvmsapiClient::ivrCall(const IvrCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +807,150 @@ DyvmsapiClient::IvrCallOutcomeCallable DyvmsapiClient::ivrCallCallable(const Ivr
return task->get_future();
}
DyvmsapiClient::ListCallTaskOutcome DyvmsapiClient::listCallTask(const ListCallTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCallTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCallTaskOutcome(ListCallTaskResult(outcome.result()));
else
return ListCallTaskOutcome(outcome.error());
}
void DyvmsapiClient::listCallTaskAsync(const ListCallTaskRequest& request, const ListCallTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCallTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ListCallTaskOutcomeCallable DyvmsapiClient::listCallTaskCallable(const ListCallTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCallTaskOutcome()>>(
[this, request]()
{
return this->listCallTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ListCallTaskDetailOutcome DyvmsapiClient::listCallTaskDetail(const ListCallTaskDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCallTaskDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCallTaskDetailOutcome(ListCallTaskDetailResult(outcome.result()));
else
return ListCallTaskDetailOutcome(outcome.error());
}
void DyvmsapiClient::listCallTaskDetailAsync(const ListCallTaskDetailRequest& request, const ListCallTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCallTaskDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ListCallTaskDetailOutcomeCallable DyvmsapiClient::listCallTaskDetailCallable(const ListCallTaskDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCallTaskDetailOutcome()>>(
[this, request]()
{
return this->listCallTaskDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ListHotlineTransferNumberOutcome DyvmsapiClient::listHotlineTransferNumber(const ListHotlineTransferNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListHotlineTransferNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListHotlineTransferNumberOutcome(ListHotlineTransferNumberResult(outcome.result()));
else
return ListHotlineTransferNumberOutcome(outcome.error());
}
void DyvmsapiClient::listHotlineTransferNumberAsync(const ListHotlineTransferNumberRequest& request, const ListHotlineTransferNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listHotlineTransferNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ListHotlineTransferNumberOutcomeCallable DyvmsapiClient::listHotlineTransferNumberCallable(const ListHotlineTransferNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListHotlineTransferNumberOutcome()>>(
[this, request]()
{
return this->listHotlineTransferNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ListHotlineTransferRegisterFileOutcome DyvmsapiClient::listHotlineTransferRegisterFile(const ListHotlineTransferRegisterFileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListHotlineTransferRegisterFileOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListHotlineTransferRegisterFileOutcome(ListHotlineTransferRegisterFileResult(outcome.result()));
else
return ListHotlineTransferRegisterFileOutcome(outcome.error());
}
void DyvmsapiClient::listHotlineTransferRegisterFileAsync(const ListHotlineTransferRegisterFileRequest& request, const ListHotlineTransferRegisterFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listHotlineTransferRegisterFile(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ListHotlineTransferRegisterFileOutcomeCallable DyvmsapiClient::listHotlineTransferRegisterFileCallable(const ListHotlineTransferRegisterFileRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListHotlineTransferRegisterFileOutcome()>>(
[this, request]()
{
return this->listHotlineTransferRegisterFile(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ListOrderedNumbersOutcome DyvmsapiClient::listOrderedNumbers(const ListOrderedNumbersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -591,6 +1023,42 @@ DyvmsapiClient::ListOutboundStrategiesOutcomeCallable DyvmsapiClient::listOutbou
return task->get_future();
}
DyvmsapiClient::ListRobotTaskCallsOutcome DyvmsapiClient::listRobotTaskCalls(const ListRobotTaskCallsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRobotTaskCallsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRobotTaskCallsOutcome(ListRobotTaskCallsResult(outcome.result()));
else
return ListRobotTaskCallsOutcome(outcome.error());
}
void DyvmsapiClient::listRobotTaskCallsAsync(const ListRobotTaskCallsRequest& request, const ListRobotTaskCallsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRobotTaskCalls(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ListRobotTaskCallsOutcomeCallable DyvmsapiClient::listRobotTaskCallsCallable(const ListRobotTaskCallsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRobotTaskCallsOutcome()>>(
[this, request]()
{
return this->listRobotTaskCalls(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::QueryCallDetailByCallIdOutcome DyvmsapiClient::queryCallDetailByCallId(const QueryCallDetailByCallIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +1131,78 @@ DyvmsapiClient::QueryCallDetailByTaskIdOutcomeCallable DyvmsapiClient::queryCall
return task->get_future();
}
DyvmsapiClient::QueryCallInPoolTransferConfigOutcome DyvmsapiClient::queryCallInPoolTransferConfig(const QueryCallInPoolTransferConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryCallInPoolTransferConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryCallInPoolTransferConfigOutcome(QueryCallInPoolTransferConfigResult(outcome.result()));
else
return QueryCallInPoolTransferConfigOutcome(outcome.error());
}
void DyvmsapiClient::queryCallInPoolTransferConfigAsync(const QueryCallInPoolTransferConfigRequest& request, const QueryCallInPoolTransferConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryCallInPoolTransferConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryCallInPoolTransferConfigOutcomeCallable DyvmsapiClient::queryCallInPoolTransferConfigCallable(const QueryCallInPoolTransferConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryCallInPoolTransferConfigOutcome()>>(
[this, request]()
{
return this->queryCallInPoolTransferConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::QueryCallInTransferRecordOutcome DyvmsapiClient::queryCallInTransferRecord(const QueryCallInTransferRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryCallInTransferRecordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryCallInTransferRecordOutcome(QueryCallInTransferRecordResult(outcome.result()));
else
return QueryCallInTransferRecordOutcome(outcome.error());
}
void DyvmsapiClient::queryCallInTransferRecordAsync(const QueryCallInTransferRecordRequest& request, const QueryCallInTransferRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryCallInTransferRecord(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryCallInTransferRecordOutcomeCallable DyvmsapiClient::queryCallInTransferRecordCallable(const QueryCallInTransferRecordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryCallInTransferRecordOutcome()>>(
[this, request]()
{
return this->queryCallInTransferRecord(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::QueryRobotInfoListOutcome DyvmsapiClient::queryRobotInfoList(const QueryRobotInfoListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +1455,78 @@ DyvmsapiClient::QueryRtcNumberAuthStatusOutcomeCallable DyvmsapiClient::queryRtc
return task->get_future();
}
DyvmsapiClient::QueryVirtualNumberOutcome DyvmsapiClient::queryVirtualNumber(const QueryVirtualNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryVirtualNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryVirtualNumberOutcome(QueryVirtualNumberResult(outcome.result()));
else
return QueryVirtualNumberOutcome(outcome.error());
}
void DyvmsapiClient::queryVirtualNumberAsync(const QueryVirtualNumberRequest& request, const QueryVirtualNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryVirtualNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryVirtualNumberOutcomeCallable DyvmsapiClient::queryVirtualNumberCallable(const QueryVirtualNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryVirtualNumberOutcome()>>(
[this, request]()
{
return this->queryVirtualNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::QueryVirtualNumberRelationOutcome DyvmsapiClient::queryVirtualNumberRelation(const QueryVirtualNumberRelationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryVirtualNumberRelationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryVirtualNumberRelationOutcome(QueryVirtualNumberRelationResult(outcome.result()));
else
return QueryVirtualNumberRelationOutcome(outcome.error());
}
void DyvmsapiClient::queryVirtualNumberRelationAsync(const QueryVirtualNumberRelationRequest& request, const QueryVirtualNumberRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryVirtualNumberRelation(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryVirtualNumberRelationOutcomeCallable DyvmsapiClient::queryVirtualNumberRelationCallable(const QueryVirtualNumberRelationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryVirtualNumberRelationOutcome()>>(
[this, request]()
{
return this->queryVirtualNumberRelation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::QueryVoipNumberBindInfosOutcome DyvmsapiClient::queryVoipNumberBindInfos(const QueryVoipNumberBindInfosRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,6 +1599,78 @@ DyvmsapiClient::ReportVoipProblemsOutcomeCallable DyvmsapiClient::reportVoipProb
return task->get_future();
}
DyvmsapiClient::SendVerificationOutcome DyvmsapiClient::sendVerification(const SendVerificationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SendVerificationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SendVerificationOutcome(SendVerificationResult(outcome.result()));
else
return SendVerificationOutcome(outcome.error());
}
void DyvmsapiClient::sendVerificationAsync(const SendVerificationRequest& request, const SendVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, sendVerification(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::SendVerificationOutcomeCallable DyvmsapiClient::sendVerificationCallable(const SendVerificationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SendVerificationOutcome()>>(
[this, request]()
{
return this->sendVerification(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::SetTransferCalleePoolConfigOutcome DyvmsapiClient::setTransferCalleePoolConfig(const SetTransferCalleePoolConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetTransferCalleePoolConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetTransferCalleePoolConfigOutcome(SetTransferCalleePoolConfigResult(outcome.result()));
else
return SetTransferCalleePoolConfigOutcome(outcome.error());
}
void DyvmsapiClient::setTransferCalleePoolConfigAsync(const SetTransferCalleePoolConfigRequest& request, const SetTransferCalleePoolConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setTransferCalleePoolConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::SetTransferCalleePoolConfigOutcomeCallable DyvmsapiClient::setTransferCalleePoolConfigCallable(const SetTransferCalleePoolConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetTransferCalleePoolConfigOutcome()>>(
[this, request]()
{
return this->setTransferCalleePoolConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1239,6 +1923,42 @@ DyvmsapiClient::StopRobotTaskOutcomeCallable DyvmsapiClient::stopRobotTaskCallab
return task->get_future();
}
DyvmsapiClient::SubmitHotlineTransferRegisterOutcome DyvmsapiClient::submitHotlineTransferRegister(const SubmitHotlineTransferRegisterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitHotlineTransferRegisterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitHotlineTransferRegisterOutcome(SubmitHotlineTransferRegisterResult(outcome.result()));
else
return SubmitHotlineTransferRegisterOutcome(outcome.error());
}
void DyvmsapiClient::submitHotlineTransferRegisterAsync(const SubmitHotlineTransferRegisterRequest& request, const SubmitHotlineTransferRegisterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitHotlineTransferRegister(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::SubmitHotlineTransferRegisterOutcomeCallable DyvmsapiClient::submitHotlineTransferRegisterCallable(const SubmitHotlineTransferRegisterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitHotlineTransferRegisterOutcome()>>(
[this, request]()
{
return this->submitHotlineTransferRegister(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::UnbindNumberAndVoipIdOutcome DyvmsapiClient::unbindNumberAndVoipId(const UnbindNumberAndVoipIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,128 @@
/*
* 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/AddVirtualNumberRelationRequest.h>
using AlibabaCloud::Dyvmsapi::Model::AddVirtualNumberRelationRequest;
AddVirtualNumberRelationRequest::AddVirtualNumberRelationRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "AddVirtualNumberRelation")
{
setMethod(HttpRequest::Method::Post);
}
AddVirtualNumberRelationRequest::~AddVirtualNumberRelationRequest()
{}
long AddVirtualNumberRelationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddVirtualNumberRelationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddVirtualNumberRelationRequest::getNumberList()const
{
return numberList_;
}
void AddVirtualNumberRelationRequest::setNumberList(const std::string& numberList)
{
numberList_ = numberList;
setParameter("NumberList", numberList);
}
std::string AddVirtualNumberRelationRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddVirtualNumberRelationRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int AddVirtualNumberRelationRequest::getRouteType()const
{
return routeType_;
}
void AddVirtualNumberRelationRequest::setRouteType(int routeType)
{
routeType_ = routeType;
setParameter("RouteType", std::to_string(routeType));
}
std::string AddVirtualNumberRelationRequest::getCorpNameList()const
{
return corpNameList_;
}
void AddVirtualNumberRelationRequest::setCorpNameList(const std::string& corpNameList)
{
corpNameList_ = corpNameList;
setParameter("CorpNameList", corpNameList);
}
std::string AddVirtualNumberRelationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddVirtualNumberRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddVirtualNumberRelationRequest::getProdCode()const
{
return prodCode_;
}
void AddVirtualNumberRelationRequest::setProdCode(const std::string& prodCode)
{
prodCode_ = prodCode;
setParameter("ProdCode", prodCode);
}
std::string AddVirtualNumberRelationRequest::getPhoneNum()const
{
return phoneNum_;
}
void AddVirtualNumberRelationRequest::setPhoneNum(const std::string& phoneNum)
{
phoneNum_ = phoneNum;
setParameter("PhoneNum", phoneNum);
}
long AddVirtualNumberRelationRequest::getOwnerId()const
{
return ownerId_;
}
void AddVirtualNumberRelationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/AddVirtualNumberRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
AddVirtualNumberRelationResult::AddVirtualNumberRelationResult() :
ServiceResult()
{}
AddVirtualNumberRelationResult::AddVirtualNumberRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddVirtualNumberRelationResult::~AddVirtualNumberRelationResult()
{}
void AddVirtualNumberRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
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 AddVirtualNumberRelationResult::getMessage()const
{
return message_;
}
std::string AddVirtualNumberRelationResult::getData()const
{
return data_;
}
std::string AddVirtualNumberRelationResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/CloseSipAccountRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CloseSipAccountRequest;
CloseSipAccountRequest::CloseSipAccountRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CloseSipAccount")
{
setMethod(HttpRequest::Method::Post);
}
CloseSipAccountRequest::~CloseSipAccountRequest()
{}
long CloseSipAccountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CloseSipAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CloseSipAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CloseSipAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long CloseSipAccountRequest::getPartnerId()const
{
return partnerId_;
}
void CloseSipAccountRequest::setPartnerId(long partnerId)
{
partnerId_ = partnerId;
setParameter("PartnerId", std::to_string(partnerId));
}
std::string CloseSipAccountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CloseSipAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CloseSipAccountRequest::getOwnerId()const
{
return ownerId_;
}
void CloseSipAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CloseSipAccountRequest::getSipAccountID()const
{
return sipAccountID_;
}
void CloseSipAccountRequest::setSipAccountID(const std::string& sipAccountID)
{
sipAccountID_ = sipAccountID;
setParameter("SipAccountID", sipAccountID);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/CloseSipAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CloseSipAccountResult::CloseSipAccountResult() :
ServiceResult()
{}
CloseSipAccountResult::CloseSipAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CloseSipAccountResult::~CloseSipAccountResult()
{}
void CloseSipAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CloseSipAccountResult::getMessage()const
{
return message_;
}
bool CloseSipAccountResult::getData()const
{
return data_;
}
std::string CloseSipAccountResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,194 @@
/*
* 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/CreateCallTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CreateCallTaskRequest;
CreateCallTaskRequest::CreateCallTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CreateCallTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateCallTaskRequest::~CreateCallTaskRequest()
{}
long CreateCallTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateCallTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateCallTaskRequest::getScheduleType()const
{
return scheduleType_;
}
void CreateCallTaskRequest::setScheduleType(const std::string& scheduleType)
{
scheduleType_ = scheduleType;
setParameter("ScheduleType", scheduleType);
}
std::string CreateCallTaskRequest::getData()const
{
return data_;
}
void CreateCallTaskRequest::setData(const std::string& data)
{
data_ = data;
setParameter("Data", data);
}
std::string CreateCallTaskRequest::getTaskName()const
{
return taskName_;
}
void CreateCallTaskRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setParameter("TaskName", taskName);
}
std::string CreateCallTaskRequest::getStopTime()const
{
return stopTime_;
}
void CreateCallTaskRequest::setStopTime(const std::string& stopTime)
{
stopTime_ = stopTime;
setParameter("StopTime", stopTime);
}
std::string CreateCallTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateCallTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateCallTaskRequest::getDataType()const
{
return dataType_;
}
void CreateCallTaskRequest::setDataType(const std::string& dataType)
{
dataType_ = dataType;
setParameter("DataType", dataType);
}
std::string CreateCallTaskRequest::getTemplateName()const
{
return templateName_;
}
void CreateCallTaskRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
std::string CreateCallTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateCallTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateCallTaskRequest::getResource()const
{
return resource_;
}
void CreateCallTaskRequest::setResource(const std::string& resource)
{
resource_ = resource;
setParameter("Resource", resource);
}
long CreateCallTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCallTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCallTaskRequest::getResourceType()const
{
return resourceType_;
}
void CreateCallTaskRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string CreateCallTaskRequest::getBizType()const
{
return bizType_;
}
void CreateCallTaskRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string CreateCallTaskRequest::getFireTime()const
{
return fireTime_;
}
void CreateCallTaskRequest::setFireTime(const std::string& fireTime)
{
fireTime_ = fireTime;
setParameter("FireTime", fireTime);
}
std::string CreateCallTaskRequest::getTemplateCode()const
{
return templateCode_;
}
void CreateCallTaskRequest::setTemplateCode(const std::string& templateCode)
{
templateCode_ = templateCode;
setParameter("TemplateCode", templateCode);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/CreateCallTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CreateCallTaskResult::CreateCallTaskResult() :
ServiceResult()
{}
CreateCallTaskResult::CreateCallTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCallTaskResult::~CreateCallTaskResult()
{}
void CreateCallTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CreateCallTaskResult::getData()const
{
return data_;
}
std::string CreateCallTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/CreateSipAccountRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CreateSipAccountRequest;
CreateSipAccountRequest::CreateSipAccountRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CreateSipAccount")
{
setMethod(HttpRequest::Method::Post);
}
CreateSipAccountRequest::~CreateSipAccountRequest()
{}
long CreateSipAccountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSipAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateSipAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateSipAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateSipAccountRequest::getBusinessKey()const
{
return businessKey_;
}
void CreateSipAccountRequest::setBusinessKey(const std::string& businessKey)
{
businessKey_ = businessKey;
setParameter("BusinessKey", businessKey);
}
long CreateSipAccountRequest::getPartnerId()const
{
return partnerId_;
}
void CreateSipAccountRequest::setPartnerId(long partnerId)
{
partnerId_ = partnerId;
setParameter("PartnerId", std::to_string(partnerId));
}
std::string CreateSipAccountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSipAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateSipAccountRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSipAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,70 @@
/*
* 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/CreateSipAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CreateSipAccountResult::CreateSipAccountResult() :
ServiceResult()
{}
CreateSipAccountResult::CreateSipAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSipAccountResult::~CreateSipAccountResult()
{}
void CreateSipAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["SipAccountID"].isNull())
data_.sipAccountID = dataNode["SipAccountID"].asString();
if(!dataNode["VoipName"].isNull())
data_.voipName = dataNode["VoipName"].asString();
if(!dataNode["VoipPassword"].isNull())
data_.voipPassword = dataNode["VoipPassword"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateSipAccountResult::getMessage()const
{
return message_;
}
CreateSipAccountResult::Data CreateSipAccountResult::getData()const
{
return data_;
}
std::string CreateSipAccountResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,205 @@
/*
* 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/DoubleCallSeatRequest.h>
using AlibabaCloud::Dyvmsapi::Model::DoubleCallSeatRequest;
DoubleCallSeatRequest::DoubleCallSeatRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "DoubleCallSeat")
{
setMethod(HttpRequest::Method::Post);
}
DoubleCallSeatRequest::~DoubleCallSeatRequest()
{}
long DoubleCallSeatRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DoubleCallSeatRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DoubleCallSeatRequest::getCallerShowNumber()const
{
return callerShowNumber_;
}
void DoubleCallSeatRequest::setCallerShowNumber(const std::string& callerShowNumber)
{
callerShowNumber_ = callerShowNumber;
setParameter("CallerShowNumber", callerShowNumber);
}
std::string DoubleCallSeatRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DoubleCallSeatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int DoubleCallSeatRequest::getSessionTimeout()const
{
return sessionTimeout_;
}
void DoubleCallSeatRequest::setSessionTimeout(int sessionTimeout)
{
sessionTimeout_ = sessionTimeout;
setParameter("SessionTimeout", std::to_string(sessionTimeout));
}
std::string DoubleCallSeatRequest::getCalledNumber()const
{
return calledNumber_;
}
void DoubleCallSeatRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
}
std::string DoubleCallSeatRequest::getVoiceCode()const
{
return voiceCode_;
}
void DoubleCallSeatRequest::setVoiceCode(const std::string& voiceCode)
{
voiceCode_ = voiceCode;
setParameter("VoiceCode", voiceCode);
}
std::string DoubleCallSeatRequest::getCalledShowNumber()const
{
return calledShowNumber_;
}
void DoubleCallSeatRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
}
bool DoubleCallSeatRequest::getAsrFlag()const
{
return asrFlag_;
}
void DoubleCallSeatRequest::setAsrFlag(bool asrFlag)
{
asrFlag_ = asrFlag;
setParameter("AsrFlag", asrFlag ? "true" : "false");
}
std::string DoubleCallSeatRequest::getCallType()const
{
return callType_;
}
void DoubleCallSeatRequest::setCallType(const std::string& callType)
{
callType_ = callType;
setParameter("CallType", callType);
}
std::string DoubleCallSeatRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DoubleCallSeatRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool DoubleCallSeatRequest::getRecordFlag()const
{
return recordFlag_;
}
void DoubleCallSeatRequest::setRecordFlag(bool recordFlag)
{
recordFlag_ = recordFlag;
setParameter("RecordFlag", recordFlag ? "true" : "false");
}
long DoubleCallSeatRequest::getOwnerId()const
{
return ownerId_;
}
void DoubleCallSeatRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int DoubleCallSeatRequest::getRecordPoint()const
{
return recordPoint_;
}
void DoubleCallSeatRequest::setRecordPoint(int recordPoint)
{
recordPoint_ = recordPoint;
setParameter("RecordPoint", std::to_string(recordPoint));
}
std::string DoubleCallSeatRequest::getOutId()const
{
return outId_;
}
void DoubleCallSeatRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
}
std::string DoubleCallSeatRequest::getAsrModelId()const
{
return asrModelId_;
}
void DoubleCallSeatRequest::setAsrModelId(const std::string& asrModelId)
{
asrModelId_ = asrModelId;
setParameter("AsrModelId", asrModelId);
}
std::string DoubleCallSeatRequest::getCallerNumber()const
{
return callerNumber_;
}
void DoubleCallSeatRequest::setCallerNumber(const std::string& callerNumber)
{
callerNumber_ = callerNumber;
setParameter("CallerNumber", callerNumber);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/DoubleCallSeatResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
DoubleCallSeatResult::DoubleCallSeatResult() :
ServiceResult()
{}
DoubleCallSeatResult::DoubleCallSeatResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DoubleCallSeatResult::~DoubleCallSeatResult()
{}
void DoubleCallSeatResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DoubleCallSeatResult::getMessage()const
{
return message_;
}
std::string DoubleCallSeatResult::getCallId()const
{
return callId_;
}
std::string DoubleCallSeatResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/ExecuteCallTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ExecuteCallTaskRequest;
ExecuteCallTaskRequest::ExecuteCallTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ExecuteCallTask")
{
setMethod(HttpRequest::Method::Post);
}
ExecuteCallTaskRequest::~ExecuteCallTaskRequest()
{}
long ExecuteCallTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ExecuteCallTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ExecuteCallTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ExecuteCallTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long ExecuteCallTaskRequest::getTaskId()const
{
return taskId_;
}
void ExecuteCallTaskRequest::setTaskId(long taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}
std::string ExecuteCallTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ExecuteCallTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ExecuteCallTaskRequest::getOwnerId()const
{
return ownerId_;
}
void ExecuteCallTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ExecuteCallTaskRequest::getFireTime()const
{
return fireTime_;
}
void ExecuteCallTaskRequest::setFireTime(const std::string& fireTime)
{
fireTime_ = fireTime;
setParameter("FireTime", fireTime);
}
std::string ExecuteCallTaskRequest::getStatus()const
{
return status_;
}
void ExecuteCallTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/ExecuteCallTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ExecuteCallTaskResult::ExecuteCallTaskResult() :
ServiceResult()
{}
ExecuteCallTaskResult::ExecuteCallTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteCallTaskResult::~ExecuteCallTaskResult()
{}
void ExecuteCallTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool ExecuteCallTaskResult::getData()const
{
return data_;
}
std::string ExecuteCallTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/GetHotlineQualificationByOrderRequest.h>
using AlibabaCloud::Dyvmsapi::Model::GetHotlineQualificationByOrderRequest;
GetHotlineQualificationByOrderRequest::GetHotlineQualificationByOrderRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "GetHotlineQualificationByOrder")
{
setMethod(HttpRequest::Method::Post);
}
GetHotlineQualificationByOrderRequest::~GetHotlineQualificationByOrderRequest()
{}
long GetHotlineQualificationByOrderRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetHotlineQualificationByOrderRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetHotlineQualificationByOrderRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetHotlineQualificationByOrderRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetHotlineQualificationByOrderRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetHotlineQualificationByOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetHotlineQualificationByOrderRequest::getOrderId()const
{
return orderId_;
}
void GetHotlineQualificationByOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
long GetHotlineQualificationByOrderRequest::getOwnerId()const
{
return ownerId_;
}
void GetHotlineQualificationByOrderRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,70 @@
/*
* 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/GetHotlineQualificationByOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
GetHotlineQualificationByOrderResult::GetHotlineQualificationByOrderResult() :
ServiceResult()
{}
GetHotlineQualificationByOrderResult::GetHotlineQualificationByOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetHotlineQualificationByOrderResult::~GetHotlineQualificationByOrderResult()
{}
void GetHotlineQualificationByOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["QualificationId"].isNull())
data_.qualificationId = dataNode["QualificationId"].asString();
if(!dataNode["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetHotlineQualificationByOrderResult::getMessage()const
{
return message_;
}
GetHotlineQualificationByOrderResult::Data GetHotlineQualificationByOrderResult::getData()const
{
return data_;
}
std::string GetHotlineQualificationByOrderResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/GetTokenRequest.h>
using AlibabaCloud::Dyvmsapi::Model::GetTokenRequest;
GetTokenRequest::GetTokenRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "GetToken")
{
setMethod(HttpRequest::Method::Post);
}
GetTokenRequest::~GetTokenRequest()
{}
long GetTokenRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetTokenRequest::getTokenType()const
{
return tokenType_;
}
void GetTokenRequest::setTokenType(const std::string& tokenType)
{
tokenType_ = tokenType;
setParameter("TokenType", tokenType);
}
std::string GetTokenRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetTokenRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetTokenRequest::getOwnerId()const
{
return ownerId_;
}
void GetTokenRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,72 @@
/*
* 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/GetTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
GetTokenResult::GetTokenResult() :
ServiceResult()
{}
GetTokenResult::GetTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTokenResult::~GetTokenResult()
{}
void GetTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Token"].isNull())
token_ = value["Token"].asString();
}
std::string GetTokenResult::getMessage()const
{
return message_;
}
std::string GetTokenResult::getToken()const
{
return token_;
}
std::string GetTokenResult::getCode()const
{
return code_;
}
bool GetTokenResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,128 @@
/*
* 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/ListCallTaskDetailRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ListCallTaskDetailRequest;
ListCallTaskDetailRequest::ListCallTaskDetailRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ListCallTaskDetail")
{
setMethod(HttpRequest::Method::Post);
}
ListCallTaskDetailRequest::~ListCallTaskDetailRequest()
{}
long ListCallTaskDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListCallTaskDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int ListCallTaskDetailRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCallTaskDetailRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCallTaskDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCallTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int ListCallTaskDetailRequest::getPageSize()const
{
return pageSize_;
}
void ListCallTaskDetailRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCallTaskDetailRequest::getCalledNum()const
{
return calledNum_;
}
void ListCallTaskDetailRequest::setCalledNum(const std::string& calledNum)
{
calledNum_ = calledNum;
setParameter("CalledNum", calledNum);
}
long ListCallTaskDetailRequest::getTaskId()const
{
return taskId_;
}
void ListCallTaskDetailRequest::setTaskId(long taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}
std::string ListCallTaskDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListCallTaskDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ListCallTaskDetailRequest::getOwnerId()const
{
return ownerId_;
}
void ListCallTaskDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListCallTaskDetailRequest::getStatus()const
{
return status_;
}
void ListCallTaskDetailRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/ListCallTaskDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ListCallTaskDetailResult::ListCallTaskDetailResult() :
ServiceResult()
{}
ListCallTaskDetailResult::ListCallTaskDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCallTaskDetailResult::~ListCallTaskDetailResult()
{}
void ListCallTaskDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Caller"].isNull())
dataObject.caller = valueDataDataItem["Caller"].asString();
if(!valueDataDataItem["CalledNum"].isNull())
dataObject.calledNum = valueDataDataItem["CalledNum"].asString();
if(!valueDataDataItem["Status"].isNull())
dataObject.status = valueDataDataItem["Status"].asString();
if(!valueDataDataItem["Duration"].isNull())
dataObject.duration = std::stol(valueDataDataItem["Duration"].asString());
if(!valueDataDataItem["Id"].isNull())
dataObject.id = std::stol(valueDataDataItem["Id"].asString());
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
if(!value["TotalPage"].isNull())
totalPage_ = std::stol(value["TotalPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
}
long ListCallTaskDetailResult::getTotalPage()const
{
return totalPage_;
}
long ListCallTaskDetailResult::getPageSize()const
{
return pageSize_;
}
long ListCallTaskDetailResult::getPageNumber()const
{
return pageNumber_;
}
long ListCallTaskDetailResult::getTotal()const
{
return total_;
}
std::vector<ListCallTaskDetailResult::DataItem> ListCallTaskDetailResult::getData()const
{
return data_;
}
std::string ListCallTaskDetailResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,150 @@
/*
* 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/ListCallTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ListCallTaskRequest;
ListCallTaskRequest::ListCallTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ListCallTask")
{
setMethod(HttpRequest::Method::Post);
}
ListCallTaskRequest::~ListCallTaskRequest()
{}
long ListCallTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListCallTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListCallTaskRequest::getTaskName()const
{
return taskName_;
}
void ListCallTaskRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setParameter("TaskName", taskName);
}
int ListCallTaskRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCallTaskRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCallTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCallTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int ListCallTaskRequest::getPageSize()const
{
return pageSize_;
}
void ListCallTaskRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCallTaskRequest::getTemplateName()const
{
return templateName_;
}
void ListCallTaskRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
std::string ListCallTaskRequest::getTaskId()const
{
return taskId_;
}
void ListCallTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
std::string ListCallTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListCallTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ListCallTaskRequest::getOwnerId()const
{
return ownerId_;
}
void ListCallTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListCallTaskRequest::getBizType()const
{
return bizType_;
}
void ListCallTaskRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string ListCallTaskRequest::getStatus()const
{
return status_;
}
void ListCallTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,113 @@
/*
* 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/ListCallTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ListCallTaskResult::ListCallTaskResult() :
ServiceResult()
{}
ListCallTaskResult::ListCallTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCallTaskResult::~ListCallTaskResult()
{}
void ListCallTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Id"].isNull())
dataObject.id = std::stol(valueDataDataItem["Id"].asString());
if(!valueDataDataItem["TaskName"].isNull())
dataObject.taskName = valueDataDataItem["TaskName"].asString();
if(!valueDataDataItem["TemplateName"].isNull())
dataObject.templateName = valueDataDataItem["TemplateName"].asString();
if(!valueDataDataItem["BizType"].isNull())
dataObject.bizType = valueDataDataItem["BizType"].asString();
if(!valueDataDataItem["Resource"].isNull())
dataObject.resource = valueDataDataItem["Resource"].asString();
if(!valueDataDataItem["FireTime"].isNull())
dataObject.fireTime = valueDataDataItem["FireTime"].asString();
if(!valueDataDataItem["CompleteTime"].isNull())
dataObject.completeTime = valueDataDataItem["CompleteTime"].asString();
if(!valueDataDataItem["Status"].isNull())
dataObject.status = valueDataDataItem["Status"].asString();
if(!valueDataDataItem["StopTime"].isNull())
dataObject.stopTime = valueDataDataItem["StopTime"].asString();
if(!valueDataDataItem["TemplateCode"].isNull())
dataObject.templateCode = valueDataDataItem["TemplateCode"].asString();
if(!valueDataDataItem["Data"].isNull())
dataObject.data = valueDataDataItem["Data"].asString();
if(!valueDataDataItem["DataType"].isNull())
dataObject.dataType = valueDataDataItem["DataType"].asString();
if(!valueDataDataItem["TotalCount"].isNull())
dataObject.totalCount = std::stol(valueDataDataItem["TotalCount"].asString());
if(!valueDataDataItem["CompletedCount"].isNull())
dataObject.completedCount = std::stol(valueDataDataItem["CompletedCount"].asString());
if(!valueDataDataItem["CompletedRate"].isNull())
dataObject.completedRate = std::stoi(valueDataDataItem["CompletedRate"].asString());
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long ListCallTaskResult::getPageSize()const
{
return pageSize_;
}
long ListCallTaskResult::getPageNumber()const
{
return pageNumber_;
}
long ListCallTaskResult::getTotal()const
{
return total_;
}
std::vector<ListCallTaskResult::DataItem> ListCallTaskResult::getData()const
{
return data_;
}
std::string ListCallTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/ListHotlineTransferNumberRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ListHotlineTransferNumberRequest;
ListHotlineTransferNumberRequest::ListHotlineTransferNumberRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ListHotlineTransferNumber")
{
setMethod(HttpRequest::Method::Post);
}
ListHotlineTransferNumberRequest::~ListHotlineTransferNumberRequest()
{}
long ListHotlineTransferNumberRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListHotlineTransferNumberRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListHotlineTransferNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListHotlineTransferNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ListHotlineTransferNumberRequest::getHotlineNumber()const
{
return hotlineNumber_;
}
void ListHotlineTransferNumberRequest::setHotlineNumber(const std::string& hotlineNumber)
{
hotlineNumber_ = hotlineNumber;
setParameter("HotlineNumber", hotlineNumber);
}
int ListHotlineTransferNumberRequest::getPageSize()const
{
return pageSize_;
}
void ListHotlineTransferNumberRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListHotlineTransferNumberRequest::getQualificationId()const
{
return qualificationId_;
}
void ListHotlineTransferNumberRequest::setQualificationId(const std::string& qualificationId)
{
qualificationId_ = qualificationId;
setParameter("QualificationId", qualificationId);
}
std::string ListHotlineTransferNumberRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListHotlineTransferNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ListHotlineTransferNumberRequest::getOwnerId()const
{
return ownerId_;
}
void ListHotlineTransferNumberRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int ListHotlineTransferNumberRequest::getPageNo()const
{
return pageNo_;
}
void ListHotlineTransferNumberRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}

View File

@@ -0,0 +1,88 @@
/*
* 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/ListHotlineTransferNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ListHotlineTransferNumberResult::ListHotlineTransferNumberResult() :
ServiceResult()
{}
ListHotlineTransferNumberResult::ListHotlineTransferNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListHotlineTransferNumberResult::~ListHotlineTransferNumberResult()
{}
void ListHotlineTransferNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stol(dataNode["Total"].asString());
if(!dataNode["PageNo"].isNull())
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
auto allValuesNode = dataNode["Values"]["ValuesItem"];
for (auto dataNodeValuesValuesItem : allValuesNode)
{
Data::ValuesItem valuesItemObject;
if(!dataNodeValuesValuesItem["QualificationId"].isNull())
valuesItemObject.qualificationId = dataNodeValuesValuesItem["QualificationId"].asString();
if(!dataNodeValuesValuesItem["PhoneNumber"].isNull())
valuesItemObject.phoneNumber = dataNodeValuesValuesItem["PhoneNumber"].asString();
if(!dataNodeValuesValuesItem["NumberOwnerName"].isNull())
valuesItemObject.numberOwnerName = dataNodeValuesValuesItem["NumberOwnerName"].asString();
if(!dataNodeValuesValuesItem["IdentityCard"].isNull())
valuesItemObject.identityCard = dataNodeValuesValuesItem["IdentityCard"].asString();
if(!dataNodeValuesValuesItem["ResUniqueCode"].isNull())
valuesItemObject.resUniqueCode = dataNodeValuesValuesItem["ResUniqueCode"].asString();
if(!dataNodeValuesValuesItem["HotlineNumber"].isNull())
valuesItemObject.hotlineNumber = dataNodeValuesValuesItem["HotlineNumber"].asString();
data_.values.push_back(valuesItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListHotlineTransferNumberResult::getMessage()const
{
return message_;
}
ListHotlineTransferNumberResult::Data ListHotlineTransferNumberResult::getData()const
{
return data_;
}
std::string ListHotlineTransferNumberResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/ListHotlineTransferRegisterFileRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ListHotlineTransferRegisterFileRequest;
ListHotlineTransferRegisterFileRequest::ListHotlineTransferRegisterFileRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ListHotlineTransferRegisterFile")
{
setMethod(HttpRequest::Method::Post);
}
ListHotlineTransferRegisterFileRequest::~ListHotlineTransferRegisterFileRequest()
{}
long ListHotlineTransferRegisterFileRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListHotlineTransferRegisterFileRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListHotlineTransferRegisterFileRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListHotlineTransferRegisterFileRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ListHotlineTransferRegisterFileRequest::getHotlineNumber()const
{
return hotlineNumber_;
}
void ListHotlineTransferRegisterFileRequest::setHotlineNumber(const std::string& hotlineNumber)
{
hotlineNumber_ = hotlineNumber;
setParameter("HotlineNumber", hotlineNumber);
}
int ListHotlineTransferRegisterFileRequest::getPageSize()const
{
return pageSize_;
}
void ListHotlineTransferRegisterFileRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListHotlineTransferRegisterFileRequest::getQualificationId()const
{
return qualificationId_;
}
void ListHotlineTransferRegisterFileRequest::setQualificationId(const std::string& qualificationId)
{
qualificationId_ = qualificationId;
setParameter("QualificationId", qualificationId);
}
std::string ListHotlineTransferRegisterFileRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListHotlineTransferRegisterFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ListHotlineTransferRegisterFileRequest::getOwnerId()const
{
return ownerId_;
}
void ListHotlineTransferRegisterFileRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int ListHotlineTransferRegisterFileRequest::getPageNo()const
{
return pageNo_;
}
void ListHotlineTransferRegisterFileRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}

View File

@@ -0,0 +1,94 @@
/*
* 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/ListHotlineTransferRegisterFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ListHotlineTransferRegisterFileResult::ListHotlineTransferRegisterFileResult() :
ServiceResult()
{}
ListHotlineTransferRegisterFileResult::ListHotlineTransferRegisterFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListHotlineTransferRegisterFileResult::~ListHotlineTransferRegisterFileResult()
{}
void ListHotlineTransferRegisterFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stol(dataNode["Total"].asString());
if(!dataNode["PageNo"].isNull())
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
auto allValuesNode = dataNode["Values"]["ValuesItem"];
for (auto dataNodeValuesValuesItem : allValuesNode)
{
Data::ValuesItem valuesItemObject;
if(!dataNodeValuesValuesItem["QualificationId"].isNull())
valuesItemObject.qualificationId = dataNodeValuesValuesItem["QualificationId"].asString();
if(!dataNodeValuesValuesItem["CorpName"].isNull())
valuesItemObject.corpName = dataNodeValuesValuesItem["CorpName"].asString();
if(!dataNodeValuesValuesItem["MngOpName"].isNull())
valuesItemObject.mngOpName = dataNodeValuesValuesItem["MngOpName"].asString();
if(!dataNodeValuesValuesItem["MngOpMail"].isNull())
valuesItemObject.mngOpMail = dataNodeValuesValuesItem["MngOpMail"].asString();
if(!dataNodeValuesValuesItem["MngOpMobile"].isNull())
valuesItemObject.mngOpMobile = dataNodeValuesValuesItem["MngOpMobile"].asString();
if(!dataNodeValuesValuesItem["MngOpIdentityCard"].isNull())
valuesItemObject.mngOpIdentityCard = dataNodeValuesValuesItem["MngOpIdentityCard"].asString();
if(!dataNodeValuesValuesItem["Agree"].isNull())
valuesItemObject.agree = dataNodeValuesValuesItem["Agree"].asString();
if(!dataNodeValuesValuesItem["ResUniqueCode"].isNull())
valuesItemObject.resUniqueCode = std::stol(dataNodeValuesValuesItem["ResUniqueCode"].asString());
if(!dataNodeValuesValuesItem["HotlineNumber"].isNull())
valuesItemObject.hotlineNumber = dataNodeValuesValuesItem["HotlineNumber"].asString();
data_.values.push_back(valuesItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListHotlineTransferRegisterFileResult::getMessage()const
{
return message_;
}
ListHotlineTransferRegisterFileResult::Data ListHotlineTransferRegisterFileResult::getData()const
{
return data_;
}
std::string ListHotlineTransferRegisterFileResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,183 @@
/*
* 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/ListRobotTaskCallsRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ListRobotTaskCallsRequest;
ListRobotTaskCallsRequest::ListRobotTaskCallsRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ListRobotTaskCalls")
{
setMethod(HttpRequest::Method::Post);
}
ListRobotTaskCallsRequest::~ListRobotTaskCallsRequest()
{}
long ListRobotTaskCallsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListRobotTaskCallsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListRobotTaskCallsRequest::getCalled()const
{
return called_;
}
void ListRobotTaskCallsRequest::setCalled(const std::string& called)
{
called_ = called;
setParameter("Called", called);
}
std::string ListRobotTaskCallsRequest::getDialogCountTo()const
{
return dialogCountTo_;
}
void ListRobotTaskCallsRequest::setDialogCountTo(const std::string& dialogCountTo)
{
dialogCountTo_ = dialogCountTo;
setParameter("DialogCountTo", dialogCountTo);
}
std::string ListRobotTaskCallsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListRobotTaskCallsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ListRobotTaskCallsRequest::getDurationFrom()const
{
return durationFrom_;
}
void ListRobotTaskCallsRequest::setDurationFrom(const std::string& durationFrom)
{
durationFrom_ = durationFrom;
setParameter("DurationFrom", durationFrom);
}
int ListRobotTaskCallsRequest::getPageSize()const
{
return pageSize_;
}
void ListRobotTaskCallsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListRobotTaskCallsRequest::getTaskId()const
{
return taskId_;
}
void ListRobotTaskCallsRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
std::string ListRobotTaskCallsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListRobotTaskCallsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListRobotTaskCallsRequest::getDialogCountFrom()const
{
return dialogCountFrom_;
}
void ListRobotTaskCallsRequest::setDialogCountFrom(const std::string& dialogCountFrom)
{
dialogCountFrom_ = dialogCountFrom;
setParameter("DialogCountFrom", dialogCountFrom);
}
std::string ListRobotTaskCallsRequest::getDurationTo()const
{
return durationTo_;
}
void ListRobotTaskCallsRequest::setDurationTo(const std::string& durationTo)
{
durationTo_ = durationTo;
setParameter("DurationTo", durationTo);
}
std::string ListRobotTaskCallsRequest::getHangupDirection()const
{
return hangupDirection_;
}
void ListRobotTaskCallsRequest::setHangupDirection(const std::string& hangupDirection)
{
hangupDirection_ = hangupDirection;
setParameter("HangupDirection", hangupDirection);
}
long ListRobotTaskCallsRequest::getOwnerId()const
{
return ownerId_;
}
void ListRobotTaskCallsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int ListRobotTaskCallsRequest::getPageNo()const
{
return pageNo_;
}
void ListRobotTaskCallsRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}
std::string ListRobotTaskCallsRequest::getCallResult()const
{
return callResult_;
}
void ListRobotTaskCallsRequest::setCallResult(const std::string& callResult)
{
callResult_ = callResult;
setParameter("CallResult", callResult);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/ListRobotTaskCallsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ListRobotTaskCallsResult::ListRobotTaskCallsResult() :
ServiceResult()
{}
ListRobotTaskCallsResult::ListRobotTaskCallsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRobotTaskCallsResult::~ListRobotTaskCallsResult()
{}
void ListRobotTaskCallsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["PageNo"].isNull())
pageNo_ = value["PageNo"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListRobotTaskCallsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListRobotTaskCallsResult::getPageSize()const
{
return pageSize_;
}
std::string ListRobotTaskCallsResult::getMessage()const
{
return message_;
}
std::string ListRobotTaskCallsResult::getData()const
{
return data_;
}
std::string ListRobotTaskCallsResult::getPageNo()const
{
return pageNo_;
}
std::string ListRobotTaskCallsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/QueryCallInPoolTransferConfigRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryCallInPoolTransferConfigRequest;
QueryCallInPoolTransferConfigRequest::QueryCallInPoolTransferConfigRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallInPoolTransferConfig")
{
setMethod(HttpRequest::Method::Post);
}
QueryCallInPoolTransferConfigRequest::~QueryCallInPoolTransferConfigRequest()
{}
long QueryCallInPoolTransferConfigRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryCallInPoolTransferConfigRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryCallInPoolTransferConfigRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void QueryCallInPoolTransferConfigRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
std::string QueryCallInPoolTransferConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryCallInPoolTransferConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryCallInPoolTransferConfigRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryCallInPoolTransferConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryCallInPoolTransferConfigRequest::getOwnerId()const
{
return ownerId_;
}
void QueryCallInPoolTransferConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,78 @@
/*
* 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/QueryCallInPoolTransferConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryCallInPoolTransferConfigResult::QueryCallInPoolTransferConfigResult() :
ServiceResult()
{}
QueryCallInPoolTransferConfigResult::QueryCallInPoolTransferConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCallInPoolTransferConfigResult::~QueryCallInPoolTransferConfigResult()
{}
void QueryCallInPoolTransferConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TransferTimeout"].isNull())
data_.transferTimeout = dataNode["TransferTimeout"].asString();
if(!dataNode["CalledRouteMode"].isNull())
data_.calledRouteMode = dataNode["CalledRouteMode"].asString();
if(!dataNode["GmtCreate"].isNull())
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
auto allDetailsNode = dataNode["Details"]["DetailsItem"];
for (auto dataNodeDetailsDetailsItem : allDetailsNode)
{
Data::DetailsItem detailsItemObject;
if(!dataNodeDetailsDetailsItem["Called"].isNull())
detailsItemObject.called = dataNodeDetailsDetailsItem["Called"].asString();
data_.details.push_back(detailsItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryCallInPoolTransferConfigResult::getMessage()const
{
return message_;
}
QueryCallInPoolTransferConfigResult::Data QueryCallInPoolTransferConfigResult::getData()const
{
return data_;
}
std::string QueryCallInPoolTransferConfigResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,128 @@
/*
* 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/QueryCallInTransferRecordRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryCallInTransferRecordRequest;
QueryCallInTransferRecordRequest::QueryCallInTransferRecordRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallInTransferRecord")
{
setMethod(HttpRequest::Method::Post);
}
QueryCallInTransferRecordRequest::~QueryCallInTransferRecordRequest()
{}
long QueryCallInTransferRecordRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryCallInTransferRecordRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryCallInTransferRecordRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void QueryCallInTransferRecordRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
std::string QueryCallInTransferRecordRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryCallInTransferRecordRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long QueryCallInTransferRecordRequest::getPageSize()const
{
return pageSize_;
}
void QueryCallInTransferRecordRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryCallInTransferRecordRequest::getQueryDate()const
{
return queryDate_;
}
void QueryCallInTransferRecordRequest::setQueryDate(const std::string& queryDate)
{
queryDate_ = queryDate;
setParameter("QueryDate", queryDate);
}
std::string QueryCallInTransferRecordRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryCallInTransferRecordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryCallInTransferRecordRequest::getOwnerId()const
{
return ownerId_;
}
void QueryCallInTransferRecordRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long QueryCallInTransferRecordRequest::getPageNo()const
{
return pageNo_;
}
void QueryCallInTransferRecordRequest::setPageNo(long pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}
std::string QueryCallInTransferRecordRequest::getCallInCaller()const
{
return callInCaller_;
}
void QueryCallInTransferRecordRequest::setCallInCaller(const std::string& callInCaller)
{
callInCaller_ = callInCaller;
setParameter("CallInCaller", callInCaller);
}

View File

@@ -0,0 +1,88 @@
/*
* 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/QueryCallInTransferRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryCallInTransferRecordResult::QueryCallInTransferRecordResult() :
ServiceResult()
{}
QueryCallInTransferRecordResult::QueryCallInTransferRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCallInTransferRecordResult::~QueryCallInTransferRecordResult()
{}
void QueryCallInTransferRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stol(dataNode["Total"].asString());
if(!dataNode["PageNo"].isNull())
data_.pageNo = std::stol(dataNode["PageNo"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stol(dataNode["PageSize"].asString());
auto allValuesNode = dataNode["Values"]["ValuesItem"];
for (auto dataNodeValuesValuesItem : allValuesNode)
{
Data::ValuesItem valuesItemObject;
if(!dataNodeValuesValuesItem["CallInCaller"].isNull())
valuesItemObject.callInCaller = dataNodeValuesValuesItem["CallInCaller"].asString();
if(!dataNodeValuesValuesItem["CallInCalled"].isNull())
valuesItemObject.callInCalled = dataNodeValuesValuesItem["CallInCalled"].asString();
if(!dataNodeValuesValuesItem["TransferCaller"].isNull())
valuesItemObject.transferCaller = dataNodeValuesValuesItem["TransferCaller"].asString();
if(!dataNodeValuesValuesItem["TransferCalled"].isNull())
valuesItemObject.transferCalled = dataNodeValuesValuesItem["TransferCalled"].asString();
if(!dataNodeValuesValuesItem["RecordUrl"].isNull())
valuesItemObject.recordUrl = dataNodeValuesValuesItem["RecordUrl"].asString();
if(!dataNodeValuesValuesItem["GmtCreate"].isNull())
valuesItemObject.gmtCreate = std::stol(dataNodeValuesValuesItem["GmtCreate"].asString());
data_.values.push_back(valuesItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryCallInTransferRecordResult::getMessage()const
{
return message_;
}
QueryCallInTransferRecordResult::Data QueryCallInTransferRecordResult::getData()const
{
return data_;
}
std::string QueryCallInTransferRecordResult::getCode()const
{
return code_;
}

View File

@@ -41,6 +41,12 @@ void QueryRobotTaskListResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["PageNo"].isNull())
pageNo_ = value["PageNo"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -48,6 +54,16 @@ void QueryRobotTaskListResult::parse(const std::string &payload)
}
std::string QueryRobotTaskListResult::getTotalCount()const
{
return totalCount_;
}
std::string QueryRobotTaskListResult::getPageSize()const
{
return pageSize_;
}
std::string QueryRobotTaskListResult::getMessage()const
{
return message_;
@@ -58,6 +74,11 @@ std::string QueryRobotTaskListResult::getData()const
return data_;
}
std::string QueryRobotTaskListResult::getPageNo()const
{
return pageNo_;
}
std::string QueryRobotTaskListResult::getCode()const
{
return code_;

View File

@@ -0,0 +1,172 @@
/*
* 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/QueryVirtualNumberRelationRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryVirtualNumberRelationRequest;
QueryVirtualNumberRelationRequest::QueryVirtualNumberRelationRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryVirtualNumberRelation")
{
setMethod(HttpRequest::Method::Post);
}
QueryVirtualNumberRelationRequest::~QueryVirtualNumberRelationRequest()
{}
long QueryVirtualNumberRelationRequest::getSpecId()const
{
return specId_;
}
void QueryVirtualNumberRelationRequest::setSpecId(long specId)
{
specId_ = specId;
setParameter("SpecId", std::to_string(specId));
}
long QueryVirtualNumberRelationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryVirtualNumberRelationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryVirtualNumberRelationRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryVirtualNumberRelationRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int QueryVirtualNumberRelationRequest::getRouteType()const
{
return routeType_;
}
void QueryVirtualNumberRelationRequest::setRouteType(int routeType)
{
routeType_ = routeType;
setParameter("RouteType", std::to_string(routeType));
}
int QueryVirtualNumberRelationRequest::getPageSize()const
{
return pageSize_;
}
void QueryVirtualNumberRelationRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryVirtualNumberRelationRequest::getRelatedNum()const
{
return relatedNum_;
}
void QueryVirtualNumberRelationRequest::setRelatedNum(const std::string& relatedNum)
{
relatedNum_ = relatedNum;
setParameter("RelatedNum", relatedNum);
}
std::string QueryVirtualNumberRelationRequest::getRegionNameCity()const
{
return regionNameCity_;
}
void QueryVirtualNumberRelationRequest::setRegionNameCity(const std::string& regionNameCity)
{
regionNameCity_ = regionNameCity;
setParameter("RegionNameCity", regionNameCity);
}
long QueryVirtualNumberRelationRequest::getQualificationId()const
{
return qualificationId_;
}
void QueryVirtualNumberRelationRequest::setQualificationId(long qualificationId)
{
qualificationId_ = qualificationId;
setParameter("QualificationId", std::to_string(qualificationId));
}
std::string QueryVirtualNumberRelationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryVirtualNumberRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryVirtualNumberRelationRequest::getProdCode()const
{
return prodCode_;
}
void QueryVirtualNumberRelationRequest::setProdCode(const std::string& prodCode)
{
prodCode_ = prodCode;
setParameter("ProdCode", prodCode);
}
std::string QueryVirtualNumberRelationRequest::getPhoneNum()const
{
return phoneNum_;
}
void QueryVirtualNumberRelationRequest::setPhoneNum(const std::string& phoneNum)
{
phoneNum_ = phoneNum;
setParameter("PhoneNum", phoneNum);
}
long QueryVirtualNumberRelationRequest::getOwnerId()const
{
return ownerId_;
}
void QueryVirtualNumberRelationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryVirtualNumberRelationRequest::getPageNo()const
{
return pageNo_;
}
void QueryVirtualNumberRelationRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/QueryVirtualNumberRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryVirtualNumberRelationResult::QueryVirtualNumberRelationResult() :
ServiceResult()
{}
QueryVirtualNumberRelationResult::QueryVirtualNumberRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVirtualNumberRelationResult::~QueryVirtualNumberRelationResult()
{}
void QueryVirtualNumberRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string QueryVirtualNumberRelationResult::getData()const
{
return data_;
}
std::string QueryVirtualNumberRelationResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/QueryVirtualNumberRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryVirtualNumberRequest;
QueryVirtualNumberRequest::QueryVirtualNumberRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryVirtualNumber")
{
setMethod(HttpRequest::Method::Post);
}
QueryVirtualNumberRequest::~QueryVirtualNumberRequest()
{}
long QueryVirtualNumberRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryVirtualNumberRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryVirtualNumberRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryVirtualNumberRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int QueryVirtualNumberRequest::getRouteType()const
{
return routeType_;
}
void QueryVirtualNumberRequest::setRouteType(int routeType)
{
routeType_ = routeType;
setParameter("RouteType", std::to_string(routeType));
}
int QueryVirtualNumberRequest::getPageSize()const
{
return pageSize_;
}
void QueryVirtualNumberRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryVirtualNumberRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryVirtualNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryVirtualNumberRequest::getProdCode()const
{
return prodCode_;
}
void QueryVirtualNumberRequest::setProdCode(const std::string& prodCode)
{
prodCode_ = prodCode;
setParameter("ProdCode", prodCode);
}
long QueryVirtualNumberRequest::getOwnerId()const
{
return ownerId_;
}
void QueryVirtualNumberRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int QueryVirtualNumberRequest::getPageNo()const
{
return pageNo_;
}
void QueryVirtualNumberRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/QueryVirtualNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryVirtualNumberResult::QueryVirtualNumberResult() :
ServiceResult()
{}
QueryVirtualNumberResult::QueryVirtualNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVirtualNumberResult::~QueryVirtualNumberResult()
{}
void QueryVirtualNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string QueryVirtualNumberResult::getData()const
{
return data_;
}
std::string QueryVirtualNumberResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/SendVerificationRequest.h>
using AlibabaCloud::Dyvmsapi::Model::SendVerificationRequest;
SendVerificationRequest::SendVerificationRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "SendVerification")
{
setMethod(HttpRequest::Method::Post);
}
SendVerificationRequest::~SendVerificationRequest()
{}
long SendVerificationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SendVerificationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SendVerificationRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendVerificationRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SendVerificationRequest::getVerifyType()const
{
return verifyType_;
}
void SendVerificationRequest::setVerifyType(const std::string& verifyType)
{
verifyType_ = verifyType;
setParameter("VerifyType", verifyType);
}
std::string SendVerificationRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SendVerificationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long SendVerificationRequest::getOwnerId()const
{
return ownerId_;
}
void SendVerificationRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SendVerificationRequest::getTarget()const
{
return target_;
}
void SendVerificationRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}
std::string SendVerificationRequest::getBizType()const
{
return bizType_;
}
void SendVerificationRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/SendVerificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
SendVerificationResult::SendVerificationResult() :
ServiceResult()
{}
SendVerificationResult::SendVerificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SendVerificationResult::~SendVerificationResult()
{}
void SendVerificationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SendVerificationResult::getMessage()const
{
return message_;
}
bool SendVerificationResult::getData()const
{
return data_;
}
std::string SendVerificationResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,122 @@
/*
* 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/SetTransferCalleePoolConfigRequest.h>
using AlibabaCloud::Dyvmsapi::Model::SetTransferCalleePoolConfigRequest;
SetTransferCalleePoolConfigRequest::SetTransferCalleePoolConfigRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "SetTransferCalleePoolConfig")
{
setMethod(HttpRequest::Method::Post);
}
SetTransferCalleePoolConfigRequest::~SetTransferCalleePoolConfigRequest()
{}
long SetTransferCalleePoolConfigRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SetTransferCalleePoolConfigRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SetTransferCalleePoolConfigRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void SetTransferCalleePoolConfigRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
std::string SetTransferCalleePoolConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetTransferCalleePoolConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::vector<SetTransferCalleePoolConfigRequest::Details> SetTransferCalleePoolConfigRequest::getDetails()const
{
return details_;
}
void SetTransferCalleePoolConfigRequest::setDetails(const std::vector<Details>& details)
{
details_ = details;
for(int dep1 = 0; dep1!= details.size(); dep1++) {
auto detailsObj = details.at(dep1);
std::string detailsObjStr = "Details." + std::to_string(dep1 + 1);
setParameter(detailsObjStr + ".Caller", detailsObj.caller);
setParameter(detailsObjStr + ".Called", detailsObj.called);
}
}
std::string SetTransferCalleePoolConfigRequest::getCalledRouteMode()const
{
return calledRouteMode_;
}
void SetTransferCalleePoolConfigRequest::setCalledRouteMode(const std::string& calledRouteMode)
{
calledRouteMode_ = calledRouteMode;
setParameter("CalledRouteMode", calledRouteMode);
}
std::string SetTransferCalleePoolConfigRequest::getQualificationId()const
{
return qualificationId_;
}
void SetTransferCalleePoolConfigRequest::setQualificationId(const std::string& qualificationId)
{
qualificationId_ = qualificationId;
setParameter("QualificationId", qualificationId);
}
std::string SetTransferCalleePoolConfigRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SetTransferCalleePoolConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long SetTransferCalleePoolConfigRequest::getOwnerId()const
{
return ownerId_;
}
void SetTransferCalleePoolConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/SetTransferCalleePoolConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
SetTransferCalleePoolConfigResult::SetTransferCalleePoolConfigResult() :
ServiceResult()
{}
SetTransferCalleePoolConfigResult::SetTransferCalleePoolConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetTransferCalleePoolConfigResult::~SetTransferCalleePoolConfigResult()
{}
void SetTransferCalleePoolConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetTransferCalleePoolConfigResult::getMessage()const
{
return message_;
}
bool SetTransferCalleePoolConfigResult::getData()const
{
return data_;
}
std::string SetTransferCalleePoolConfigResult::getCode()const
{
return code_;
}

View File

@@ -236,6 +236,17 @@ void SmartCallRequest::setTtsVolume(int ttsVolume)
setParameter("TtsVolume", std::to_string(ttsVolume));
}
int SmartCallRequest::getStreamAsr()const
{
return streamAsr_;
}
void SmartCallRequest::setStreamAsr(int streamAsr)
{
streamAsr_ = streamAsr;
setParameter("StreamAsr", std::to_string(streamAsr));
}
int SmartCallRequest::getVolume()const
{
return volume_;

View File

@@ -0,0 +1,189 @@
/*
* 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/SubmitHotlineTransferRegisterRequest.h>
using AlibabaCloud::Dyvmsapi::Model::SubmitHotlineTransferRegisterRequest;
SubmitHotlineTransferRegisterRequest::SubmitHotlineTransferRegisterRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "SubmitHotlineTransferRegister")
{
setMethod(HttpRequest::Method::Post);
}
SubmitHotlineTransferRegisterRequest::~SubmitHotlineTransferRegisterRequest()
{}
std::string SubmitHotlineTransferRegisterRequest::getOperatorIdentityCard()const
{
return operatorIdentityCard_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorIdentityCard(const std::string& operatorIdentityCard)
{
operatorIdentityCard_ = operatorIdentityCard;
setParameter("OperatorIdentityCard", operatorIdentityCard);
}
long SubmitHotlineTransferRegisterRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitHotlineTransferRegisterRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitHotlineTransferRegisterRequest::getOperatorMail()const
{
return operatorMail_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorMail(const std::string& operatorMail)
{
operatorMail_ = operatorMail;
setParameter("OperatorMail", operatorMail);
}
std::string SubmitHotlineTransferRegisterRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitHotlineTransferRegisterRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitHotlineTransferRegisterRequest::getHotlineNumber()const
{
return hotlineNumber_;
}
void SubmitHotlineTransferRegisterRequest::setHotlineNumber(const std::string& hotlineNumber)
{
hotlineNumber_ = hotlineNumber;
setParameter("HotlineNumber", hotlineNumber);
}
std::vector<SubmitHotlineTransferRegisterRequest::TransferPhoneNumberInfos> SubmitHotlineTransferRegisterRequest::getTransferPhoneNumberInfos()const
{
return transferPhoneNumberInfos_;
}
void SubmitHotlineTransferRegisterRequest::setTransferPhoneNumberInfos(const std::vector<TransferPhoneNumberInfos>& transferPhoneNumberInfos)
{
transferPhoneNumberInfos_ = transferPhoneNumberInfos;
for(int dep1 = 0; dep1!= transferPhoneNumberInfos.size(); dep1++) {
auto transferPhoneNumberInfosObj = transferPhoneNumberInfos.at(dep1);
std::string transferPhoneNumberInfosObjStr = "TransferPhoneNumberInfos." + std::to_string(dep1 + 1);
setParameter(transferPhoneNumberInfosObjStr + ".PhoneNumber", transferPhoneNumberInfosObj.phoneNumber);
setParameter(transferPhoneNumberInfosObjStr + ".PhoneNumberOwnerName", transferPhoneNumberInfosObj.phoneNumberOwnerName);
setParameter(transferPhoneNumberInfosObjStr + ".IdentityCard", transferPhoneNumberInfosObj.identityCard);
}
}
std::string SubmitHotlineTransferRegisterRequest::getOperatorMobileVerifyCode()const
{
return operatorMobileVerifyCode_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorMobileVerifyCode(const std::string& operatorMobileVerifyCode)
{
operatorMobileVerifyCode_ = operatorMobileVerifyCode;
setParameter("OperatorMobileVerifyCode", operatorMobileVerifyCode);
}
std::string SubmitHotlineTransferRegisterRequest::getAgreement()const
{
return agreement_;
}
void SubmitHotlineTransferRegisterRequest::setAgreement(const std::string& agreement)
{
agreement_ = agreement;
setParameter("Agreement", agreement);
}
std::string SubmitHotlineTransferRegisterRequest::getQualificationId()const
{
return qualificationId_;
}
void SubmitHotlineTransferRegisterRequest::setQualificationId(const std::string& qualificationId)
{
qualificationId_ = qualificationId;
setParameter("QualificationId", qualificationId);
}
std::string SubmitHotlineTransferRegisterRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitHotlineTransferRegisterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long SubmitHotlineTransferRegisterRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitHotlineTransferRegisterRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitHotlineTransferRegisterRequest::getOperatorMobile()const
{
return operatorMobile_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorMobile(const std::string& operatorMobile)
{
operatorMobile_ = operatorMobile;
setParameter("OperatorMobile", operatorMobile);
}
std::string SubmitHotlineTransferRegisterRequest::getOperatorMailVerifyCode()const
{
return operatorMailVerifyCode_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorMailVerifyCode(const std::string& operatorMailVerifyCode)
{
operatorMailVerifyCode_ = operatorMailVerifyCode;
setParameter("OperatorMailVerifyCode", operatorMailVerifyCode);
}
std::string SubmitHotlineTransferRegisterRequest::getOperatorName()const
{
return operatorName_;
}
void SubmitHotlineTransferRegisterRequest::setOperatorName(const std::string& operatorName)
{
operatorName_ = operatorName;
setParameter("OperatorName", operatorName);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/SubmitHotlineTransferRegisterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
SubmitHotlineTransferRegisterResult::SubmitHotlineTransferRegisterResult() :
ServiceResult()
{}
SubmitHotlineTransferRegisterResult::SubmitHotlineTransferRegisterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitHotlineTransferRegisterResult::~SubmitHotlineTransferRegisterResult()
{}
void SubmitHotlineTransferRegisterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = std::stol(value["Data"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubmitHotlineTransferRegisterResult::getMessage()const
{
return message_;
}
long SubmitHotlineTransferRegisterResult::getData()const
{
return data_;
}
std::string SubmitHotlineTransferRegisterResult::getCode()const
{
return code_;
}