Export config api.
This commit is contained in:
@@ -51,6 +51,114 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access
|
||||
CCCClient::~CCCClient()
|
||||
{}
|
||||
|
||||
CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddNumbersToSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddNumbersToSkillGroupOutcome(AddNumbersToSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return AddNumbersToSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::addNumbersToSkillGroupAsync(const AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addNumbersToSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::AddNumbersToSkillGroupOutcomeCallable CCCClient::addNumbersToSkillGroupCallable(const AddNumbersToSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddNumbersToSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addNumbersToSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::AddPhoneNumberToSkillGroupsOutcome CCCClient::addPhoneNumberToSkillGroups(const AddPhoneNumberToSkillGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddPhoneNumberToSkillGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddPhoneNumberToSkillGroupsOutcome(AddPhoneNumberToSkillGroupsResult(outcome.result()));
|
||||
else
|
||||
return AddPhoneNumberToSkillGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::addPhoneNumberToSkillGroupsAsync(const AddPhoneNumberToSkillGroupsRequest& request, const AddPhoneNumberToSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addPhoneNumberToSkillGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::AddPhoneNumberToSkillGroupsOutcomeCallable CCCClient::addPhoneNumberToSkillGroupsCallable(const AddPhoneNumberToSkillGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddPhoneNumberToSkillGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addPhoneNumberToSkillGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::AddSkillGroupsToUserOutcome CCCClient::addSkillGroupsToUser(const AddSkillGroupsToUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddSkillGroupsToUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddSkillGroupsToUserOutcome(AddSkillGroupsToUserResult(outcome.result()));
|
||||
else
|
||||
return AddSkillGroupsToUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::addSkillGroupsToUserAsync(const AddSkillGroupsToUserRequest& request, const AddSkillGroupsToUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addSkillGroupsToUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::AddSkillGroupsToUserOutcomeCallable CCCClient::addSkillGroupsToUserCallable(const AddSkillGroupsToUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddSkillGroupsToUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addSkillGroupsToUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::AnswerCallOutcome CCCClient::answerCall(const AnswerCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +375,114 @@ CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::CreateSkillGroupOutcome CCCClient::createSkillGroup(const CreateSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSkillGroupOutcome(CreateSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::createSkillGroupAsync(const CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::CreateSkillGroupOutcomeCallable CCCClient::createSkillGroupCallable(const CreateSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::CreateUserOutcome CCCClient::createUser(const CreateUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateUserOutcome(CreateUserResult(outcome.result()));
|
||||
else
|
||||
return CreateUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::createUserAsync(const CreateUserRequest& request, const CreateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::CreateUserOutcomeCallable CCCClient::createUserCallable(const CreateUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSkillGroupOutcome(DeleteSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::deleteSkillGroupAsync(const DeleteSkillGroupRequest& request, const DeleteSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(const DeleteSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::GetLoginDetailsOutcome CCCClient::getLoginDetails(const GetLoginDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +987,42 @@ CCCClient::ListConfigItemsOutcomeCallable CCCClient::listConfigItemsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListContactFlowsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListContactFlowsOutcome(ListContactFlowsResult(outcome.result()));
|
||||
else
|
||||
return ListContactFlowsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listContactFlowsAsync(const ListContactFlowsRequest& request, const ListContactFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listContactFlows(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(const ListContactFlowsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListContactFlowsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listContactFlows(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListDevicesOutcome CCCClient::listDevices(const ListDevicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +1095,42 @@ CCCClient::ListHistoricalAgentReportOutcomeCallable CCCClient::listHistoricalAge
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListInstancesOfUserOutcome CCCClient::listInstancesOfUser(const ListInstancesOfUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstancesOfUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstancesOfUserOutcome(ListInstancesOfUserResult(outcome.result()));
|
||||
else
|
||||
return ListInstancesOfUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listInstancesOfUserAsync(const ListInstancesOfUserRequest& request, const ListInstancesOfUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstancesOfUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListInstancesOfUserOutcomeCallable CCCClient::listInstancesOfUserCallable(const ListInstancesOfUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstancesOfUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstancesOfUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListOutboundNumbersOfUserOutcome CCCClient::listOutboundNumbersOfUser(const ListOutboundNumbersOfUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1311,42 @@ CCCClient::ListSkillLevelsOfUserOutcomeCallable CCCClient::listSkillLevelsOfUser
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ListUserLevelsOfSkillGroupOutcome CCCClient::listUserLevelsOfSkillGroup(const ListUserLevelsOfSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUserLevelsOfSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUserLevelsOfSkillGroupOutcome(ListUserLevelsOfSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return ListUserLevelsOfSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::listUserLevelsOfSkillGroupAsync(const ListUserLevelsOfSkillGroupRequest& request, const ListUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUserLevelsOfSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ListUserLevelsOfSkillGroupOutcomeCallable CCCClient::listUserLevelsOfSkillGroupCallable(const ListUserLevelsOfSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUserLevelsOfSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUserLevelsOfSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::MakeCallOutcome CCCClient::makeCall(const MakeCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1383,150 @@ CCCClient::MakeCallOutcomeCallable CCCClient::makeCallCallable(const MakeCallReq
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyPhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyPhoneNumberOutcome(ModifyPhoneNumberResult(outcome.result()));
|
||||
else
|
||||
return ModifyPhoneNumberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::modifyPhoneNumberAsync(const ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyPhoneNumber(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable(const ModifyPhoneNumberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyPhoneNumberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyPhoneNumber(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ModifySkillGroupOutcome CCCClient::modifySkillGroup(const ModifySkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifySkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifySkillGroupOutcome(ModifySkillGroupResult(outcome.result()));
|
||||
else
|
||||
return ModifySkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::modifySkillGroupAsync(const ModifySkillGroupRequest& request, const ModifySkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifySkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ModifySkillGroupOutcomeCallable CCCClient::modifySkillGroupCallable(const ModifySkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifySkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifySkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ModifyUserOutcome CCCClient::modifyUser(const ModifyUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyUserOutcome(ModifyUserResult(outcome.result()));
|
||||
else
|
||||
return ModifyUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::modifyUserAsync(const ModifyUserRequest& request, const ModifyUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ModifyUserOutcomeCallable CCCClient::modifyUserCallable(const ModifyUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ModifyUserLevelsOfSkillGroupOutcome CCCClient::modifyUserLevelsOfSkillGroup(const ModifyUserLevelsOfSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyUserLevelsOfSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyUserLevelsOfSkillGroupOutcome(ModifyUserLevelsOfSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return ModifyUserLevelsOfSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::modifyUserLevelsOfSkillGroupAsync(const ModifyUserLevelsOfSkillGroupRequest& request, const ModifyUserLevelsOfSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyUserLevelsOfSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::ModifyUserLevelsOfSkillGroupOutcomeCallable CCCClient::modifyUserLevelsOfSkillGroupCallable(const ModifyUserLevelsOfSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyUserLevelsOfSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyUserLevelsOfSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::MonitorCallOutcome CCCClient::monitorCall(const MonitorCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1779,42 @@ CCCClient::ReleaseCallOutcomeCallable CCCClient::releaseCallCallable(const Relea
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::RemovePhoneNumbersFromSkillGroupOutcome CCCClient::removePhoneNumbersFromSkillGroup(const RemovePhoneNumbersFromSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemovePhoneNumbersFromSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemovePhoneNumbersFromSkillGroupOutcome(RemovePhoneNumbersFromSkillGroupResult(outcome.result()));
|
||||
else
|
||||
return RemovePhoneNumbersFromSkillGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::removePhoneNumbersFromSkillGroupAsync(const RemovePhoneNumbersFromSkillGroupRequest& request, const RemovePhoneNumbersFromSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removePhoneNumbersFromSkillGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::RemovePhoneNumbersFromSkillGroupOutcomeCallable CCCClient::removePhoneNumbersFromSkillGroupCallable(const RemovePhoneNumbersFromSkillGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemovePhoneNumbersFromSkillGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removePhoneNumbersFromSkillGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::ResetAgentStateOutcome CCCClient::resetAgentState(const ResetAgentStateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,6 +1995,42 @@ CCCClient::SignOutGroupOutcomeCallable CCCClient::signOutGroupCallable(const Sig
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::StartBack2BackCallOutcome CCCClient::startBack2BackCall(const StartBack2BackCallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartBack2BackCallOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartBack2BackCallOutcome(StartBack2BackCallResult(outcome.result()));
|
||||
else
|
||||
return StartBack2BackCallOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CCCClient::startBack2BackCallAsync(const StartBack2BackCallRequest& request, const StartBack2BackCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startBack2BackCall(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CCCClient::StartBack2BackCallOutcomeCallable CCCClient::startBack2BackCallCallable(const StartBack2BackCallRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartBack2BackCallOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startBack2BackCall(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
ccc/src/model/AddNumbersToSkillGroupRequest.cc
Normal file
62
ccc/src/model/AddNumbersToSkillGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/AddNumbersToSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddNumbersToSkillGroupRequest;
|
||||
|
||||
AddNumbersToSkillGroupRequest::AddNumbersToSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddNumbersToSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddNumbersToSkillGroupRequest::~AddNumbersToSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AddNumbersToSkillGroupRequest::getNumberList()const
|
||||
{
|
||||
return numberList_;
|
||||
}
|
||||
|
||||
void AddNumbersToSkillGroupRequest::setNumberList(const std::string& numberList)
|
||||
{
|
||||
numberList_ = numberList;
|
||||
setParameter("NumberList", numberList);
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddNumbersToSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void AddNumbersToSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
65
ccc/src/model/AddNumbersToSkillGroupResult.cc
Normal file
65
ccc/src/model/AddNumbersToSkillGroupResult.cc
Normal 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/ccc/model/AddNumbersToSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddNumbersToSkillGroupResult::AddNumbersToSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddNumbersToSkillGroupResult::~AddNumbersToSkillGroupResult()
|
||||
{}
|
||||
|
||||
void AddNumbersToSkillGroupResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddNumbersToSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddNumbersToSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc
Normal file
62
ccc/src/model/AddPhoneNumberToSkillGroupsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/AddPhoneNumberToSkillGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddPhoneNumberToSkillGroupsRequest;
|
||||
|
||||
AddPhoneNumberToSkillGroupsRequest::AddPhoneNumberToSkillGroupsRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddPhoneNumberToSkillGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPhoneNumberToSkillGroupsRequest::~AddPhoneNumberToSkillGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsRequest::getSkillGroupIdList()const
|
||||
{
|
||||
return skillGroupIdList_;
|
||||
}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsRequest::setSkillGroupIdList(const std::string& skillGroupIdList)
|
||||
{
|
||||
skillGroupIdList_ = skillGroupIdList;
|
||||
setParameter("SkillGroupIdList", skillGroupIdList);
|
||||
}
|
||||
|
||||
65
ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc
Normal file
65
ccc/src/model/AddPhoneNumberToSkillGroupsResult.cc
Normal 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/ccc/model/AddPhoneNumberToSkillGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::AddPhoneNumberToSkillGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPhoneNumberToSkillGroupsResult::~AddPhoneNumberToSkillGroupsResult()
|
||||
{}
|
||||
|
||||
void AddPhoneNumberToSkillGroupsResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddPhoneNumberToSkillGroupsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddPhoneNumberToSkillGroupsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/AddSkillGroupsToUserRequest.cc
Normal file
62
ccc/src/model/AddSkillGroupsToUserRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/AddSkillGroupsToUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::AddSkillGroupsToUserRequest;
|
||||
|
||||
AddSkillGroupsToUserRequest::AddSkillGroupsToUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "AddSkillGroupsToUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSkillGroupsToUserRequest::~AddSkillGroupsToUserRequest()
|
||||
{}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserRequest::getSkillLevelList()const
|
||||
{
|
||||
return skillLevelList_;
|
||||
}
|
||||
|
||||
void AddSkillGroupsToUserRequest::setSkillLevelList(const std::string& skillLevelList)
|
||||
{
|
||||
skillLevelList_ = skillLevelList;
|
||||
setParameter("SkillLevelList", skillLevelList);
|
||||
}
|
||||
|
||||
73
ccc/src/model/AddSkillGroupsToUserResult.cc
Normal file
73
ccc/src/model/AddSkillGroupsToUserResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ccc/model/AddSkillGroupsToUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
AddSkillGroupsToUserResult::AddSkillGroupsToUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddSkillGroupsToUserResult::AddSkillGroupsToUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddSkillGroupsToUserResult::~AddSkillGroupsToUserResult()
|
||||
{}
|
||||
|
||||
void AddSkillGroupsToUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddSkillGroupsToUserResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AddSkillGroupsToUserResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string AddSkillGroupsToUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/CreateSkillGroupRequest.cc
Normal file
73
ccc/src/model/CreateSkillGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateSkillGroupRequest;
|
||||
|
||||
CreateSkillGroupRequest::CreateSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CreateSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSkillGroupRequest::~CreateSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSkillGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
79
ccc/src/model/CreateSkillGroupResult.cc
Normal file
79
ccc/src/model/CreateSkillGroupResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/ccc/model/CreateSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateSkillGroupResult::CreateSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSkillGroupResult::CreateSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSkillGroupResult::~CreateSkillGroupResult()
|
||||
{}
|
||||
|
||||
void CreateSkillGroupResult::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["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["SkillGroupId"].isNull())
|
||||
data_.skillGroupId = dataNode["SkillGroupId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateSkillGroupResult::Data CreateSkillGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
128
ccc/src/model/CreateUserRequest.cc
Normal file
128
ccc/src/model/CreateUserRequest.cc
Normal 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/ccc/model/CreateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "CreateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserRequest::getLoginName()const
|
||||
{
|
||||
return loginName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setLoginName(const std::string& loginName)
|
||||
{
|
||||
loginName_ = loginName;
|
||||
setParameter("LoginName", loginName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRoleId(const std::string& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", roleId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getWorkMode()const
|
||||
{
|
||||
return workMode_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setWorkMode(const std::string& workMode)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setParameter("WorkMode", workMode);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
bool CreateUserRequest::getResetPassword()const
|
||||
{
|
||||
return resetPassword_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResetPassword(bool resetPassword)
|
||||
{
|
||||
resetPassword_ = resetPassword;
|
||||
setParameter("ResetPassword", resetPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getSkillLevelList()const
|
||||
{
|
||||
return skillLevelList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setSkillLevelList(const std::string& skillLevelList)
|
||||
{
|
||||
skillLevelList_ = skillLevelList;
|
||||
setParameter("SkillLevelList", skillLevelList);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
93
ccc/src/model/CreateUserResult.cc
Normal file
93
ccc/src/model/CreateUserResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/CreateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
CreateUserResult::CreateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserResult::CreateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserResult::~CreateUserResult()
|
||||
{}
|
||||
|
||||
void CreateUserResult::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["DisplayName"].isNull())
|
||||
data_.displayName = dataNode["DisplayName"].asString();
|
||||
if(!dataNode["Email"].isNull())
|
||||
data_.email = dataNode["Email"].asString();
|
||||
if(!dataNode["Extension"].isNull())
|
||||
data_.extension = dataNode["Extension"].asString();
|
||||
if(!dataNode["LoginName"].isNull())
|
||||
data_.loginName = dataNode["LoginName"].asString();
|
||||
if(!dataNode["Mobile"].isNull())
|
||||
data_.mobile = dataNode["Mobile"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["WorkMode"].isNull())
|
||||
data_.workMode = dataNode["WorkMode"].asString();
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateUserResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateUserResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
CreateUserResult::Data CreateUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/DeleteSkillGroupRequest.cc
Normal file
62
ccc/src/model/DeleteSkillGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/DeleteSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::DeleteSkillGroupRequest;
|
||||
|
||||
DeleteSkillGroupRequest::DeleteSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "DeleteSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSkillGroupRequest::~DeleteSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
bool DeleteSkillGroupRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", force ? "true" : "false");
|
||||
}
|
||||
|
||||
65
ccc/src/model/DeleteSkillGroupResult.cc
Normal file
65
ccc/src/model/DeleteSkillGroupResult.cc
Normal 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/ccc/model/DeleteSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
DeleteSkillGroupResult::DeleteSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSkillGroupResult::DeleteSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSkillGroupResult::~DeleteSkillGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteSkillGroupResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/ListContactFlowsRequest.cc
Normal file
73
ccc/src/model/ListContactFlowsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ccc/model/ListContactFlowsRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListContactFlowsRequest;
|
||||
|
||||
ListContactFlowsRequest::ListContactFlowsRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListContactFlows")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListContactFlowsRequest::~ListContactFlowsRequest()
|
||||
{}
|
||||
|
||||
std::string ListContactFlowsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListContactFlowsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
int ListContactFlowsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListContactFlowsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListContactFlowsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListContactFlowsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListContactFlowsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListContactFlowsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
108
ccc/src/model/ListContactFlowsResult.cc
Normal file
108
ccc/src/model/ListContactFlowsResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/ccc/model/ListContactFlowsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListContactFlowsResult::ListContactFlowsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListContactFlowsResult::ListContactFlowsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListContactFlowsResult::~ListContactFlowsResult()
|
||||
{}
|
||||
|
||||
void ListContactFlowsResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allListNode = dataNode["List"]["ContactFlow"];
|
||||
for (auto dataNodeListContactFlow : allListNode)
|
||||
{
|
||||
Data::ContactFlow contactFlowObject;
|
||||
if(!dataNodeListContactFlow["ContactFlowId"].isNull())
|
||||
contactFlowObject.contactFlowId = dataNodeListContactFlow["ContactFlowId"].asString();
|
||||
if(!dataNodeListContactFlow["CreatedTime"].isNull())
|
||||
contactFlowObject.createdTime = dataNodeListContactFlow["CreatedTime"].asString();
|
||||
if(!dataNodeListContactFlow["Definition"].isNull())
|
||||
contactFlowObject.definition = dataNodeListContactFlow["Definition"].asString();
|
||||
if(!dataNodeListContactFlow["Description"].isNull())
|
||||
contactFlowObject.description = dataNodeListContactFlow["Description"].asString();
|
||||
if(!dataNodeListContactFlow["DraftId"].isNull())
|
||||
contactFlowObject.draftId = dataNodeListContactFlow["DraftId"].asString();
|
||||
if(!dataNodeListContactFlow["Editor"].isNull())
|
||||
contactFlowObject.editor = dataNodeListContactFlow["Editor"].asString();
|
||||
if(!dataNodeListContactFlow["InstanceId"].isNull())
|
||||
contactFlowObject.instanceId = dataNodeListContactFlow["InstanceId"].asString();
|
||||
if(!dataNodeListContactFlow["Name"].isNull())
|
||||
contactFlowObject.name = dataNodeListContactFlow["Name"].asString();
|
||||
if(!dataNodeListContactFlow["Published"].isNull())
|
||||
contactFlowObject.published = dataNodeListContactFlow["Published"].asString() == "true";
|
||||
if(!dataNodeListContactFlow["Type"].isNull())
|
||||
contactFlowObject.type = dataNodeListContactFlow["Type"].asString();
|
||||
if(!dataNodeListContactFlow["UpdatedTime"].isNull())
|
||||
contactFlowObject.updatedTime = dataNodeListContactFlow["UpdatedTime"].asString();
|
||||
auto allNumberList = value["NumberList"]["NumberList"];
|
||||
for (auto value : allNumberList)
|
||||
contactFlowObject.numberList.push_back(value.asString());
|
||||
data_.list.push_back(contactFlowObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListContactFlowsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListContactFlowsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListContactFlowsResult::Data ListContactFlowsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListContactFlowsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/ListInstancesOfUserRequest.cc
Normal file
51
ccc/src/model/ListInstancesOfUserRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/ccc/model/ListInstancesOfUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListInstancesOfUserRequest;
|
||||
|
||||
ListInstancesOfUserRequest::ListInstancesOfUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListInstancesOfUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstancesOfUserRequest::~ListInstancesOfUserRequest()
|
||||
{}
|
||||
|
||||
int ListInstancesOfUserRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListInstancesOfUserRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListInstancesOfUserRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListInstancesOfUserRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
173
ccc/src/model/ListInstancesOfUserResult.cc
Normal file
173
ccc/src/model/ListInstancesOfUserResult.cc
Normal file
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* 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/ccc/model/ListInstancesOfUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListInstancesOfUserResult::ListInstancesOfUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstancesOfUserResult::ListInstancesOfUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstancesOfUserResult::~ListInstancesOfUserResult()
|
||||
{}
|
||||
|
||||
void ListInstancesOfUserResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allListNode = dataNode["List"]["CallCenterInstance"];
|
||||
for (auto dataNodeListCallCenterInstance : allListNode)
|
||||
{
|
||||
Data::CallCenterInstance callCenterInstanceObject;
|
||||
if(!dataNodeListCallCenterInstance["AliyunUid"].isNull())
|
||||
callCenterInstanceObject.aliyunUid = dataNodeListCallCenterInstance["AliyunUid"].asString();
|
||||
if(!dataNodeListCallCenterInstance["ConsoleUrl"].isNull())
|
||||
callCenterInstanceObject.consoleUrl = dataNodeListCallCenterInstance["ConsoleUrl"].asString();
|
||||
if(!dataNodeListCallCenterInstance["Description"].isNull())
|
||||
callCenterInstanceObject.description = dataNodeListCallCenterInstance["Description"].asString();
|
||||
if(!dataNodeListCallCenterInstance["DomainName"].isNull())
|
||||
callCenterInstanceObject.domainName = dataNodeListCallCenterInstance["DomainName"].asString();
|
||||
if(!dataNodeListCallCenterInstance["Id"].isNull())
|
||||
callCenterInstanceObject.id = dataNodeListCallCenterInstance["Id"].asString();
|
||||
if(!dataNodeListCallCenterInstance["Name"].isNull())
|
||||
callCenterInstanceObject.name = dataNodeListCallCenterInstance["Name"].asString();
|
||||
if(!dataNodeListCallCenterInstance["Status"].isNull())
|
||||
callCenterInstanceObject.status = dataNodeListCallCenterInstance["Status"].asString();
|
||||
auto allAdminListNode = dataNodeListCallCenterInstance["AdminList"]["User"];
|
||||
for (auto dataNodeListCallCenterInstanceAdminListUser : allAdminListNode)
|
||||
{
|
||||
Data::CallCenterInstance::User adminListObject;
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["DisplayName"].isNull())
|
||||
adminListObject.displayName = dataNodeListCallCenterInstanceAdminListUser["DisplayName"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["Email"].isNull())
|
||||
adminListObject.email = dataNodeListCallCenterInstanceAdminListUser["Email"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["Extension"].isNull())
|
||||
adminListObject.extension = dataNodeListCallCenterInstanceAdminListUser["Extension"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["InstanceId"].isNull())
|
||||
adminListObject.instanceId = dataNodeListCallCenterInstanceAdminListUser["InstanceId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["LoginName"].isNull())
|
||||
adminListObject.loginName = dataNodeListCallCenterInstanceAdminListUser["LoginName"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["Mobile"].isNull())
|
||||
adminListObject.mobile = dataNodeListCallCenterInstanceAdminListUser["Mobile"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["RoleId"].isNull())
|
||||
adminListObject.roleId = dataNodeListCallCenterInstanceAdminListUser["RoleId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["RoleName"].isNull())
|
||||
adminListObject.roleName = dataNodeListCallCenterInstanceAdminListUser["RoleName"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["UserId"].isNull())
|
||||
adminListObject.userId = dataNodeListCallCenterInstanceAdminListUser["UserId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceAdminListUser["WorkMode"].isNull())
|
||||
adminListObject.workMode = dataNodeListCallCenterInstanceAdminListUser["WorkMode"].asString();
|
||||
callCenterInstanceObject.adminList.push_back(adminListObject);
|
||||
}
|
||||
auto allNumberListNode = dataNodeListCallCenterInstance["NumberList"]["PhoneNumber"];
|
||||
for (auto dataNodeListCallCenterInstanceNumberListPhoneNumber : allNumberListNode)
|
||||
{
|
||||
Data::CallCenterInstance::PhoneNumber numberListObject;
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].isNull())
|
||||
numberListObject.active = dataNodeListCallCenterInstanceNumberListPhoneNumber["Active"].asString() == "true";
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].isNull())
|
||||
numberListObject.city = dataNodeListCallCenterInstanceNumberListPhoneNumber["City"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].isNull())
|
||||
numberListObject.contactFlowId = dataNodeListCallCenterInstanceNumberListPhoneNumber["ContactFlowId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].isNull())
|
||||
numberListObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumber["InstanceId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].isNull())
|
||||
numberListObject.number = dataNodeListCallCenterInstanceNumberListPhoneNumber["Number"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].isNull())
|
||||
numberListObject.province = dataNodeListCallCenterInstanceNumberListPhoneNumber["Province"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].isNull())
|
||||
numberListObject.usage = dataNodeListCallCenterInstanceNumberListPhoneNumber["Usage"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].isNull())
|
||||
numberListObject.userId = dataNodeListCallCenterInstanceNumberListPhoneNumber["UserId"].asString();
|
||||
auto allSkillGroupsNode = dataNodeListCallCenterInstanceNumberListPhoneNumber["SkillGroups"]["SkillGroup"];
|
||||
for (auto dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup : allSkillGroupsNode)
|
||||
{
|
||||
Data::CallCenterInstance::PhoneNumber::SkillGroup skillGroupsObject;
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].isNull())
|
||||
skillGroupsObject.description = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Description"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].isNull())
|
||||
skillGroupsObject.displayName = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["DisplayName"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].isNull())
|
||||
skillGroupsObject.instanceId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["InstanceId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].isNull())
|
||||
skillGroupsObject.name = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["Name"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].isNull())
|
||||
skillGroupsObject.phoneNumberCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["PhoneNumberCount"].asString());
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].isNull())
|
||||
skillGroupsObject.skillGroupId = dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["SkillGroupId"].asString();
|
||||
if(!dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].isNull())
|
||||
skillGroupsObject.userCount = std::stoi(dataNodeListCallCenterInstanceNumberListPhoneNumberSkillGroupsSkillGroup["UserCount"].asString());
|
||||
numberListObject.skillGroups.push_back(skillGroupsObject);
|
||||
}
|
||||
callCenterInstanceObject.numberList.push_back(numberListObject);
|
||||
}
|
||||
data_.list.push_back(callCenterInstanceObject);
|
||||
}
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListInstancesOfUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListInstancesOfUserResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListInstancesOfUserResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
ListInstancesOfUserResult::Data ListInstancesOfUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListInstancesOfUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc
Normal file
95
ccc/src/model/ListUserLevelsOfSkillGroupRequest.cc
Normal 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/ccc/model/ListUserLevelsOfSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ListUserLevelsOfSkillGroupRequest;
|
||||
|
||||
ListUserLevelsOfSkillGroupRequest::ListUserLevelsOfSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ListUserLevelsOfSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUserLevelsOfSkillGroupRequest::~ListUserLevelsOfSkillGroupRequest()
|
||||
{}
|
||||
|
||||
bool ListUserLevelsOfSkillGroupRequest::getIsMember()const
|
||||
{
|
||||
return isMember_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setIsMember(bool isMember)
|
||||
{
|
||||
isMember_ = isMember;
|
||||
setParameter("IsMember", isMember ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListUserLevelsOfSkillGroupRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListUserLevelsOfSkillGroupRequest::getSearchPattern()const
|
||||
{
|
||||
return searchPattern_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setSearchPattern(const std::string& searchPattern)
|
||||
{
|
||||
searchPattern_ = searchPattern;
|
||||
setParameter("SearchPattern", searchPattern);
|
||||
}
|
||||
|
||||
std::string ListUserLevelsOfSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListUserLevelsOfSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
int ListUserLevelsOfSkillGroupRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUserLevelsOfSkillGroupRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
99
ccc/src/model/ListUserLevelsOfSkillGroupResult.cc
Normal file
99
ccc/src/model/ListUserLevelsOfSkillGroupResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/ccc/model/ListUserLevelsOfSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserLevelsOfSkillGroupResult::ListUserLevelsOfSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserLevelsOfSkillGroupResult::~ListUserLevelsOfSkillGroupResult()
|
||||
{}
|
||||
|
||||
void ListUserLevelsOfSkillGroupResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allListNode = dataNode["List"]["UserSkillLevel"];
|
||||
for (auto dataNodeListUserSkillLevel : allListNode)
|
||||
{
|
||||
Data::UserSkillLevel userSkillLevelObject;
|
||||
if(!dataNodeListUserSkillLevel["DisplayName"].isNull())
|
||||
userSkillLevelObject.displayName = dataNodeListUserSkillLevel["DisplayName"].asString();
|
||||
if(!dataNodeListUserSkillLevel["LoginName"].isNull())
|
||||
userSkillLevelObject.loginName = dataNodeListUserSkillLevel["LoginName"].asString();
|
||||
if(!dataNodeListUserSkillLevel["RoleId"].isNull())
|
||||
userSkillLevelObject.roleId = dataNodeListUserSkillLevel["RoleId"].asString();
|
||||
if(!dataNodeListUserSkillLevel["RoleName"].isNull())
|
||||
userSkillLevelObject.roleName = dataNodeListUserSkillLevel["RoleName"].asString();
|
||||
if(!dataNodeListUserSkillLevel["SkillGroupId"].isNull())
|
||||
userSkillLevelObject.skillGroupId = dataNodeListUserSkillLevel["SkillGroupId"].asString();
|
||||
if(!dataNodeListUserSkillLevel["SkillGroupName"].isNull())
|
||||
userSkillLevelObject.skillGroupName = dataNodeListUserSkillLevel["SkillGroupName"].asString();
|
||||
if(!dataNodeListUserSkillLevel["SkillLevel"].isNull())
|
||||
userSkillLevelObject.skillLevel = std::stoi(dataNodeListUserSkillLevel["SkillLevel"].asString());
|
||||
if(!dataNodeListUserSkillLevel["UserId"].isNull())
|
||||
userSkillLevelObject.userId = dataNodeListUserSkillLevel["UserId"].asString();
|
||||
data_.list.push_back(userSkillLevelObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListUserLevelsOfSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListUserLevelsOfSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListUserLevelsOfSkillGroupResult::Data ListUserLevelsOfSkillGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListUserLevelsOfSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/ModifyPhoneNumberRequest.cc
Normal file
73
ccc/src/model/ModifyPhoneNumberRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ccc/model/ModifyPhoneNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ModifyPhoneNumberRequest;
|
||||
|
||||
ModifyPhoneNumberRequest::ModifyPhoneNumberRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ModifyPhoneNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyPhoneNumberRequest::~ModifyPhoneNumberRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyPhoneNumberRequest::getContactFlowId()const
|
||||
{
|
||||
return contactFlowId_;
|
||||
}
|
||||
|
||||
void ModifyPhoneNumberRequest::setContactFlowId(const std::string& contactFlowId)
|
||||
{
|
||||
contactFlowId_ = contactFlowId;
|
||||
setParameter("ContactFlowId", contactFlowId);
|
||||
}
|
||||
|
||||
std::string ModifyPhoneNumberRequest::getUsage()const
|
||||
{
|
||||
return usage_;
|
||||
}
|
||||
|
||||
void ModifyPhoneNumberRequest::setUsage(const std::string& usage)
|
||||
{
|
||||
usage_ = usage;
|
||||
setParameter("Usage", usage);
|
||||
}
|
||||
|
||||
std::string ModifyPhoneNumberRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
}
|
||||
|
||||
void ModifyPhoneNumberRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
}
|
||||
|
||||
std::string ModifyPhoneNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyPhoneNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
65
ccc/src/model/ModifyPhoneNumberResult.cc
Normal file
65
ccc/src/model/ModifyPhoneNumberResult.cc
Normal 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/ccc/model/ModifyPhoneNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifyPhoneNumberResult::ModifyPhoneNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyPhoneNumberResult::ModifyPhoneNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyPhoneNumberResult::~ModifyPhoneNumberResult()
|
||||
{}
|
||||
|
||||
void ModifyPhoneNumberResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyPhoneNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyPhoneNumberResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifyPhoneNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/ModifySkillGroupRequest.cc
Normal file
73
ccc/src/model/ModifySkillGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ccc/model/ModifySkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ModifySkillGroupRequest;
|
||||
|
||||
ModifySkillGroupRequest::ModifySkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ModifySkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySkillGroupRequest::~ModifySkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ModifySkillGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifySkillGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string ModifySkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifySkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifySkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void ModifySkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
std::string ModifySkillGroupRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void ModifySkillGroupRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
65
ccc/src/model/ModifySkillGroupResult.cc
Normal file
65
ccc/src/model/ModifySkillGroupResult.cc
Normal 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/ccc/model/ModifySkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifySkillGroupResult::ModifySkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySkillGroupResult::ModifySkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySkillGroupResult::~ModifySkillGroupResult()
|
||||
{}
|
||||
|
||||
void ModifySkillGroupResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifySkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifySkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifySkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc
Normal file
62
ccc/src/model/ModifyUserLevelsOfSkillGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/ModifyUserLevelsOfSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ModifyUserLevelsOfSkillGroupRequest;
|
||||
|
||||
ModifyUserLevelsOfSkillGroupRequest::ModifyUserLevelsOfSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ModifyUserLevelsOfSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyUserLevelsOfSkillGroupRequest::~ModifyUserLevelsOfSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupRequest::getUserLevelList()const
|
||||
{
|
||||
return userLevelList_;
|
||||
}
|
||||
|
||||
void ModifyUserLevelsOfSkillGroupRequest::setUserLevelList(const std::string& userLevelList)
|
||||
{
|
||||
userLevelList_ = userLevelList;
|
||||
setParameter("UserLevelList", userLevelList);
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyUserLevelsOfSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void ModifyUserLevelsOfSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
72
ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc
Normal file
72
ccc/src/model/ModifyUserLevelsOfSkillGroupResult.cc
Normal 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/ccc/model/ModifyUserLevelsOfSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::ModifyUserLevelsOfSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyUserLevelsOfSkillGroupResult::~ModifyUserLevelsOfSkillGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyUserLevelsOfSkillGroupResult::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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyUserLevelsOfSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyUserLevelsOfSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
ccc/src/model/ModifyUserRequest.cc
Normal file
84
ccc/src/model/ModifyUserRequest.cc
Normal 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/ccc/model/ModifyUserRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::ModifyUserRequest;
|
||||
|
||||
ModifyUserRequest::ModifyUserRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "ModifyUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyUserRequest::~ModifyUserRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyUserRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setRoleId(const std::string& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", roleId);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getWorkMode()const
|
||||
{
|
||||
return workMode_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setWorkMode(const std::string& workMode)
|
||||
{
|
||||
workMode_ = workMode;
|
||||
setParameter("WorkMode", workMode);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
80
ccc/src/model/ModifyUserResult.cc
Normal file
80
ccc/src/model/ModifyUserResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/ccc/model/ModifyUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
ModifyUserResult::ModifyUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyUserResult::ModifyUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyUserResult::~ModifyUserResult()
|
||||
{}
|
||||
|
||||
void ModifyUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyUserResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyUserResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
std::string ModifyUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc
Normal file
62
ccc/src/model/RemovePhoneNumbersFromSkillGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/ccc/model/RemovePhoneNumbersFromSkillGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::RemovePhoneNumbersFromSkillGroupRequest;
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupRequest::RemovePhoneNumbersFromSkillGroupRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "RemovePhoneNumbersFromSkillGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupRequest::~RemovePhoneNumbersFromSkillGroupRequest()
|
||||
{}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupRequest::getNumberList()const
|
||||
{
|
||||
return numberList_;
|
||||
}
|
||||
|
||||
void RemovePhoneNumbersFromSkillGroupRequest::setNumberList(const std::string& numberList)
|
||||
{
|
||||
numberList_ = numberList;
|
||||
setParameter("NumberList", numberList);
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RemovePhoneNumbersFromSkillGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupRequest::getSkillGroupId()const
|
||||
{
|
||||
return skillGroupId_;
|
||||
}
|
||||
|
||||
void RemovePhoneNumbersFromSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId)
|
||||
{
|
||||
skillGroupId_ = skillGroupId;
|
||||
setParameter("SkillGroupId", skillGroupId);
|
||||
}
|
||||
|
||||
65
ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc
Normal file
65
ccc/src/model/RemovePhoneNumbersFromSkillGroupResult.cc
Normal 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/ccc/model/RemovePhoneNumbersFromSkillGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::RemovePhoneNumbersFromSkillGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemovePhoneNumbersFromSkillGroupResult::~RemovePhoneNumbersFromSkillGroupResult()
|
||||
{}
|
||||
|
||||
void RemovePhoneNumbersFromSkillGroupResult::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["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int RemovePhoneNumbersFromSkillGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string RemovePhoneNumbersFromSkillGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
ccc/src/model/StartBack2BackCallRequest.cc
Normal file
117
ccc/src/model/StartBack2BackCallRequest.cc
Normal 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/ccc/model/StartBack2BackCallRequest.h>
|
||||
|
||||
using AlibabaCloud::CCC::Model::StartBack2BackCallRequest;
|
||||
|
||||
StartBack2BackCallRequest::StartBack2BackCallRequest() :
|
||||
RpcServiceRequest("ccc", "2020-07-01", "StartBack2BackCall")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartBack2BackCallRequest::~StartBack2BackCallRequest()
|
||||
{}
|
||||
|
||||
std::string StartBack2BackCallRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getBroker()const
|
||||
{
|
||||
return broker_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setBroker(const std::string& broker)
|
||||
{
|
||||
broker_ = broker;
|
||||
setParameter("Broker", broker);
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getAdditionalBroker()const
|
||||
{
|
||||
return additionalBroker_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setAdditionalBroker(const std::string& additionalBroker)
|
||||
{
|
||||
additionalBroker_ = additionalBroker;
|
||||
setParameter("AdditionalBroker", additionalBroker);
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
int StartBack2BackCallRequest::getTimeoutSeconds()const
|
||||
{
|
||||
return timeoutSeconds_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setTimeoutSeconds(int timeoutSeconds)
|
||||
{
|
||||
timeoutSeconds_ = timeoutSeconds;
|
||||
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setCaller(const std::string& caller)
|
||||
{
|
||||
caller_ = caller;
|
||||
setParameter("Caller", caller);
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void StartBack2BackCallRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
150
ccc/src/model/StartBack2BackCallResult.cc
Normal file
150
ccc/src/model/StartBack2BackCallResult.cc
Normal 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/ccc/model/StartBack2BackCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
StartBack2BackCallResult::StartBack2BackCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartBack2BackCallResult::StartBack2BackCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartBack2BackCallResult::~StartBack2BackCallResult()
|
||||
{}
|
||||
|
||||
void StartBack2BackCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto callContextNode = dataNode["CallContext"];
|
||||
if(!callContextNode["CallType"].isNull())
|
||||
data_.callContext.callType = callContextNode["CallType"].asString();
|
||||
if(!callContextNode["InstanceId"].isNull())
|
||||
data_.callContext.instanceId = callContextNode["InstanceId"].asString();
|
||||
if(!callContextNode["JobId"].isNull())
|
||||
data_.callContext.jobId = callContextNode["JobId"].asString();
|
||||
auto allChannelContextsNode = callContextNode["ChannelContexts"]["ChannelContext"];
|
||||
for (auto callContextNodeChannelContextsChannelContext : allChannelContextsNode)
|
||||
{
|
||||
Data::CallContext::ChannelContext channelContextObject;
|
||||
if(!callContextNodeChannelContextsChannelContext["AssociatedData"].isNull())
|
||||
channelContextObject.associatedData = callContextNodeChannelContextsChannelContext["AssociatedData"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["CallType"].isNull())
|
||||
channelContextObject.callType = callContextNodeChannelContextsChannelContext["CallType"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelFlags"].isNull())
|
||||
channelContextObject.channelFlags = callContextNodeChannelContextsChannelContext["ChannelFlags"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelId"].isNull())
|
||||
channelContextObject.channelId = callContextNodeChannelContextsChannelContext["ChannelId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ChannelState"].isNull())
|
||||
channelContextObject.channelState = callContextNodeChannelContextsChannelContext["ChannelState"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Destination"].isNull())
|
||||
channelContextObject.destination = callContextNodeChannelContextsChannelContext["Destination"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["JobId"].isNull())
|
||||
channelContextObject.jobId = callContextNodeChannelContextsChannelContext["JobId"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Originator"].isNull())
|
||||
channelContextObject.originator = callContextNodeChannelContextsChannelContext["Originator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseInitiator"].isNull())
|
||||
channelContextObject.releaseInitiator = callContextNodeChannelContextsChannelContext["ReleaseInitiator"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["ReleaseReason"].isNull())
|
||||
channelContextObject.releaseReason = callContextNodeChannelContextsChannelContext["ReleaseReason"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["Timestamp"].isNull())
|
||||
channelContextObject.timestamp = std::stol(callContextNodeChannelContextsChannelContext["Timestamp"].asString());
|
||||
if(!callContextNodeChannelContextsChannelContext["UserExtension"].isNull())
|
||||
channelContextObject.userExtension = callContextNodeChannelContextsChannelContext["UserExtension"].asString();
|
||||
if(!callContextNodeChannelContextsChannelContext["UserId"].isNull())
|
||||
channelContextObject.userId = callContextNodeChannelContextsChannelContext["UserId"].asString();
|
||||
data_.callContext.channelContexts.push_back(channelContextObject);
|
||||
}
|
||||
auto userContextNode = dataNode["UserContext"];
|
||||
if(!userContextNode["BreakCode"].isNull())
|
||||
data_.userContext.breakCode = userContextNode["BreakCode"].asString();
|
||||
if(!userContextNode["DeviceId"].isNull())
|
||||
data_.userContext.deviceId = userContextNode["DeviceId"].asString();
|
||||
if(!userContextNode["DeviceState"].isNull())
|
||||
data_.userContext.deviceState = userContextNode["DeviceState"].asString();
|
||||
if(!userContextNode["Extension"].isNull())
|
||||
data_.userContext.extension = userContextNode["Extension"].asString();
|
||||
if(!userContextNode["Heartbeat"].isNull())
|
||||
data_.userContext.heartbeat = std::stol(userContextNode["Heartbeat"].asString());
|
||||
if(!userContextNode["InstanceId"].isNull())
|
||||
data_.userContext.instanceId = userContextNode["InstanceId"].asString();
|
||||
if(!userContextNode["JobId"].isNull())
|
||||
data_.userContext.jobId = userContextNode["JobId"].asString();
|
||||
if(!userContextNode["Mobile"].isNull())
|
||||
data_.userContext.mobile = userContextNode["Mobile"].asString();
|
||||
if(!userContextNode["OutboundScenario"].isNull())
|
||||
data_.userContext.outboundScenario = userContextNode["OutboundScenario"].asString() == "true";
|
||||
if(!userContextNode["Reserved"].isNull())
|
||||
data_.userContext.reserved = std::stol(userContextNode["Reserved"].asString());
|
||||
if(!userContextNode["Uri"].isNull())
|
||||
data_.userContext.uri = userContextNode["Uri"].asString();
|
||||
if(!userContextNode["UserId"].isNull())
|
||||
data_.userContext.userId = userContextNode["UserId"].asString();
|
||||
if(!userContextNode["UserState"].isNull())
|
||||
data_.userContext.userState = userContextNode["UserState"].asString();
|
||||
if(!userContextNode["WorkMode"].isNull())
|
||||
data_.userContext.workMode = userContextNode["WorkMode"].asString();
|
||||
auto allSignedSkillGroupIdList = userContextNode["SignedSkillGroupIdList"]["SkillGroupId"];
|
||||
for (auto value : allSignedSkillGroupIdList)
|
||||
data_.userContext.signedSkillGroupIdList.push_back(value.asString());
|
||||
auto allParams = value["Params"]["Param"];
|
||||
for (const auto &item : allParams)
|
||||
params_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int StartBack2BackCallResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> StartBack2BackCallResult::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
StartBack2BackCallResult::Data StartBack2BackCallResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartBack2BackCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user