Export new API for predictive dialer.

This commit is contained in:
sdk-team
2021-03-19 06:47:12 +00:00
parent edf8a946ea
commit 5b50c4167b
9 changed files with 327 additions and 1 deletions

View File

@@ -28,6 +28,8 @@
#include "model/AddAgentDeviceResult.h"
#include "model/AddBulkPhoneNumbersRequest.h"
#include "model/AddBulkPhoneNumbersResult.h"
#include "model/AddJobsToPredictiveJobGroupRequest.h"
#include "model/AddJobsToPredictiveJobGroupResult.h"
#include "model/AddPhoneNumberRequest.h"
#include "model/AddPhoneNumberResult.h"
#include "model/AddPhoneTagsRequest.h"
@@ -344,6 +346,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddBulkPhoneNumbersResult> AddBulkPhoneNumbersOutcome;
typedef std::future<AddBulkPhoneNumbersOutcome> AddBulkPhoneNumbersOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddBulkPhoneNumbersRequest&, const AddBulkPhoneNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddBulkPhoneNumbersAsyncHandler;
typedef Outcome<Error, Model::AddJobsToPredictiveJobGroupResult> AddJobsToPredictiveJobGroupOutcome;
typedef std::future<AddJobsToPredictiveJobGroupOutcome> AddJobsToPredictiveJobGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddJobsToPredictiveJobGroupRequest&, const AddJobsToPredictiveJobGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddJobsToPredictiveJobGroupAsyncHandler;
typedef Outcome<Error, Model::AddPhoneNumberResult> AddPhoneNumberOutcome;
typedef std::future<AddPhoneNumberOutcome> AddPhoneNumberOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddPhoneNumberRequest&, const AddPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPhoneNumberAsyncHandler;
@@ -805,6 +810,9 @@ namespace AlibabaCloud
AddBulkPhoneNumbersOutcome addBulkPhoneNumbers(const Model::AddBulkPhoneNumbersRequest &request)const;
void addBulkPhoneNumbersAsync(const Model::AddBulkPhoneNumbersRequest& request, const AddBulkPhoneNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddBulkPhoneNumbersOutcomeCallable addBulkPhoneNumbersCallable(const Model::AddBulkPhoneNumbersRequest& request) const;
AddJobsToPredictiveJobGroupOutcome addJobsToPredictiveJobGroup(const Model::AddJobsToPredictiveJobGroupRequest &request)const;
void addJobsToPredictiveJobGroupAsync(const Model::AddJobsToPredictiveJobGroupRequest& request, const AddJobsToPredictiveJobGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddJobsToPredictiveJobGroupOutcomeCallable addJobsToPredictiveJobGroupCallable(const Model::AddJobsToPredictiveJobGroupRequest& request) const;
AddPhoneNumberOutcome addPhoneNumber(const Model::AddPhoneNumberRequest &request)const;
void addPhoneNumberAsync(const Model::AddPhoneNumberRequest& request, const AddPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddPhoneNumberOutcomeCallable addPhoneNumberCallable(const Model::AddPhoneNumberRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupRequest : public RpcServiceRequest
{
public:
AddJobsToPredictiveJobGroupRequest();
~AddJobsToPredictiveJobGroupRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::vector<std::string> getJobsJson()const;
void setJobsJson(const std::vector<std::string>& jobsJson);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
std::string getJobGroupId()const;
void setJobGroupId(const std::string& jobGroupId);
private:
std::string clientToken_;
std::vector<std::string> jobsJson_;
std::string instanceId_;
std::string skillGroupId_;
std::string jobGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ccc/CCCExport.h>
namespace AlibabaCloud
{
namespace CCC
{
namespace Model
{
class ALIBABACLOUD_CCC_EXPORT AddJobsToPredictiveJobGroupResult : public ServiceResult
{
public:
AddJobsToPredictiveJobGroupResult();
explicit AddJobsToPredictiveJobGroupResult(const std::string &payload);
~AddJobsToPredictiveJobGroupResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ADDJOBSTOPREDICTIVEJOBGROUPRESULT_H_