Compare commits

..

69 Commits

Author SHA1 Message Date
sdk-team
353bb56a9b Update GetSyncResult. 2021-11-26 07:08:47 +00:00
sdk-team
c1390eb44e Supported new features etc. 2021-11-25 10:59:06 +00:00
sdk-team
e39d422408 Supported new features etc. 2021-11-25 08:00:29 +00:00
sdk-team
6c4aa68089 Supported new features for outbound. 2021-11-25 07:38:52 +00:00
sdk-team
de92956a15 Delete some abandoned interface. 2021-11-25 06:28:55 +00:00
sdk-team
befec9ee53 Minor changes. 2021-11-25 02:45:18 +00:00
sdk-team
9ca2a7694b Delete some abandoned interface in SDK. 2021-11-24 08:11:13 +00:00
sdk-team
caafbf0de9 Set API DescribeVodDomainSrcBpsData to public. 2021-11-24 03:51:24 +00:00
sdk-team
1c7304d44c Delete some abandoned interface in SDK. 2021-11-23 12:38:57 +00:00
sdk-team
a34003466f Update RecognizeCharacter. 2021-11-23 06:55:48 +00:00
sdk-team
14dc74bf6a Generated 2016-04-08 for Emr. 2021-11-23 06:39:37 +00:00
sdk-team
2373071165 Fix BdsColdStorage. 2021-11-23 04:28:47 +00:00
sdk-team
13d4cbf2f9 Support the IP restrictions in ram policy. 2021-11-23 03:26:55 +00:00
sdk-team
650feae280 Add site monitoring dial DNS_ match_ rule. 2021-11-19 04:26:31 +00:00
sdk-team
d1aee32108 Update apm interface parameter. 2021-11-17 02:30:14 +00:00
sdk-team
607556b08a Add parameter type HDRType. 2021-11-16 10:54:12 +00:00
sdk-team
28afe651a7 Update apm interface parameter. 2021-11-16 09:47:13 +00:00
sdk-team
096a349c41 Update apm interface parameter. 2021-11-16 09:34:07 +00:00
sdk-team
191dc8eb68 Generated 2017-12-28 for ddoscoo. 2021-11-16 09:33:44 +00:00
sdk-team
7a98ea847f Update SetCdnDomainSMCertificate. 2021-11-16 08:48:22 +00:00
sdk-team
d2e8acabaa Update apm interface parameter. 2021-11-16 02:46:18 +00:00
sdk-team
fdda25160a Generated 2020-01-01 for ddoscoo. 2021-11-15 11:53:23 +00:00
sdk-team
96f811507e Add Ext parameter to image translation API. 2021-11-15 06:45:14 +00:00
sdk-team
cf62272b5b Update DetectVehicleICongestion DetectVehicleIllegalParking. 2021-11-15 03:12:50 +00:00
sdk-team
75a15fd95e Update by sdk platform. 2021-11-12 07:13:42 +00:00
sdk-team
4dea18972d Optimize the API for querying storage package information. 2021-11-12 02:05:07 +00:00
sdk-team
a6a706f7bd Supported apm restful api. 2021-11-08 08:26:12 +00:00
sdk-team
ba89b8f5b6 Add SetDcdnDomainSMCertificate. 2021-11-05 09:18:11 +00:00
sdk-team
602862cc5e Add SetCdnDomainSMCertificate. 2021-11-05 09:16:56 +00:00
sdk-team
914402ac4e Update OTA API, including CreateOTAVerifyJob. 2021-11-05 01:36:34 +00:00
sdk-team
3a7cca96e3 Adjust some param. 2021-11-04 08:44:54 +00:00
sdk-team
3d527e15e0 Add GetVideoPlayAuth API parameter. 2021-11-02 12:10:30 +00:00
sdk-team
54a8427771 Add GetVideoPlayAuth API parameter. 2021-11-02 11:15:20 +00:00
sdk-team
5f1578fdbe Support multi language. 2021-11-02 07:14:08 +00:00
sdk-team
e4fc46970b Add API UploadStreamByURL. 2021-11-02 04:10:06 +00:00
sdk-team
a6fdb87ef4 Fixed SDK update delay. 2021-11-02 03:20:53 +00:00
sdk-team
754add8798 Release DetectKitchenAnimals DetectWorkwear. 2021-11-01 06:46:12 +00:00
sdk-team
1044402e1d Add no data alarm processing. 2021-10-28 11:08:30 +00:00
sdk-team
8cc78b3a3e Updated tag api. 2021-10-28 08:27:14 +00:00
sdk-team
0cf5861ece Fix ModifyInstanceName. 2021-10-27 05:59:10 +00:00
sdk-team
524b68ac01 Add QueryEmbedTokenInfo,DeleteEmbedToken,CreateEmbedToken,DelayEmbedToken,BuildSignatureUrl, and update QueryDatasetInfo,AuthorizeMenu,AddUserTagMeta,AddUser. 2021-10-26 12:24:04 +00:00
sdk-team
e6902accf9 Update Dyvmsapi SDK. 2021-10-26 02:42:18 +00:00
sdk-team
eda4d09d82 DescribeDtsJobs api, delay filed change from int to long. 2021-10-25 12:10:42 +00:00
sdk-team
537988875e Generated 2016-04-08 for Emr. 2021-10-25 03:40:00 +00:00
sdk-team
d6278ad8a3 Generated 2016-11-01 for live. 2021-10-25 03:26:38 +00:00
sdk-team
c0e3f6e782 Update Open API. 2021-10-21 13:39:55 +00:00
sdk-team
8778009aff Generated 2020-05-18 for dataworks-public. 2021-10-21 09:41:39 +00:00
sdk-team
7b81c413a1 Release AddQualityScore. 2021-10-21 07:31:07 +00:00
sdk-team
27a39a83b5 Generated 2020-05-18 for dataworks-public. 2021-10-21 02:37:49 +00:00
sdk-team
c132dd86ae Add DeviceCenter API, including CreateDeviceDynamicGroup, DeleteDeviceDynamicGroup, QueryDynamicGroupDevices. 2021-10-20 13:11:16 +00:00
sdk-team
f73358f7e8 Supported ScaleApp totalPartitions. 2021-10-19 07:14:01 +00:00
sdk-team
23c07a12a3 Generated 2019-09-10, 2018-01-17 for waf-openapi. 2021-10-18 08:06:15 +00:00
sdk-team
8e7691c351 Adjust ecs openapi endpoint. 2021-10-18 03:53:09 +00:00
sdk-team
a5a5b1c4eb Added audit status. 2021-10-15 08:56:22 +00:00
sdk-team
bdb663548a Generated 2020-02-01 for cloudesl. 2021-10-15 06:41:20 +00:00
sdk-team
1862b4677d Add API for predictive dialer. 2021-10-14 13:11:36 +00:00
sdk-team
34093b78ef Adjust ecs openapi endpoint. 2021-10-08 09:51:03 +00:00
sdk-team
59616fc161 Fixed SDK update delay. 2021-10-08 09:38:54 +00:00
sdk-team
a1f3045396 Fixed SDK update delay. 2021-10-08 09:37:10 +00:00
sdk-team
0fe872d573 Fixed SDK update delay. 2021-10-08 09:32:50 +00:00
sdk-team
5f50d51531 Release SearchFace BatchAddFaces. 2021-10-08 06:07:30 +00:00
sdk-team
bb60ca8fb6 Supported AssumeRoleWithOIDC. 2021-09-29 08:13:52 +00:00
sdk-team
2482eecd86 Add new internal API. 2021-09-28 09:06:22 +00:00
sdk-team
4edd799a79 Support odcap device. 2021-09-26 10:08:42 +00:00
sdk-team
d03f6c2f9d Support odcap device. 2021-09-26 10:00:28 +00:00
sdk-team
47e98acc6f Update imageenhan. 2021-09-26 07:22:48 +00:00
sdk-team
4c50775cc9 Supported sdk for sddp. 2021-09-26 02:43:46 +00:00
sdk-team
53b22dba98 Release RetouchSkin LiquifyFace. 2021-09-24 07:26:00 +00:00
sdk-team
e2b6c81588 Supports the purchase of polardb storage packages. 2021-09-23 08:52:35 +00:00
4565 changed files with 190250 additions and 159642 deletions

216
CHANGELOG
View File

@@ -1,3 +1,219 @@
2021-11-26 Version: 1.36.951
- Update GetSyncResult.
2021-11-25 Version: 1.36.950
- Supported new features etc.
2021-11-25 Version: 1.36.949
- Supported new features etc.
2021-11-25 Version: 1.36.948
- Supported new features for outbound.
2021-11-25 Version: 1.36.947
- Delete some abandoned interface.
- Add some interfaces.
2021-11-25 Version: 1.36.946
- Minor changes.
2021-11-24 Version: 1.36.945
- Delete some abandoned interface in SDK.
2021-11-24 Version: 1.36.944
- Set API DescribeVodDomainSrcBpsData to public.
2021-11-23 Version: 1.36.943
- Delete some abandoned interface in SDK.
- Add AutoLiveStream series interfaces.
- Add UpdateMPUTask, CreateRecordIndexFile interfaces.
2021-11-23 Version: 1.36.942
- Update RecognizeCharacter.
2021-11-23 Version: 1.36.941
- Generated 2016-04-08 for `Emr`.
2021-11-23 Version: 1.36.940
- Fix BdsColdStorage.
2021-11-23 Version: 1.36.939
- Support the IP restrictions in ram policy.
2021-11-19 Version: 1.36.938
- Add site monitoring dial DNS_ match_ rule.
2021-11-17 Version: 1.36.937
- Update apm interface parameter.
2021-11-16 Version: 1.36.936
- Add parameter type HDRType.
2021-11-16 Version: 1.36.935
- Update apm interface parameter.
2021-11-16 Version: 1.36.934
- Update apm interface parameter.
2021-11-16 Version: 1.36.933
- Generated 2017-12-28 for `ddoscoo`.
2021-11-16 Version: 1.36.932
- Update SetCdnDomainSMCertificate.
2021-11-16 Version: 1.36.931
- Update apm interface parameter.
2021-11-15 Version: 1.36.930
- Generated 2020-01-01 for `ddoscoo`.
2021-11-15 Version: 1.36.929
- Add Ext parameter to image translation API.
2021-11-15 Version: 1.36.928
- Update DetectVehicleICongestion DetectVehicleIllegalParking.
2021-11-12 Version: 1.36.927
- Update by sdk platform.
2021-11-12 Version: 1.36.926
- Optimize the API for querying storage package information.
2021-11-08 Version: 1.36.925
- Supported apm restful api.
2021-11-05 Version: 1.36.924
- Add SetDcdnDomainSMCertificate.
2021-11-05 Version: 1.36.923
- Add SetCdnDomainSMCertificate.
2021-11-05 Version: 1.36.922
- Update OTA API, including CreateOTAVerifyJob.
2021-11-04 Version: 1.36.921
- Adjust some param.
2021-11-02 Version: 1.36.920
- Add GetVideoPlayAuth API parameter.
2021-11-02 Version: 1.36.919
- Add GetVideoPlayAuth API parameter.
2021-11-02 Version: 1.36.918
- Support multi language.
2021-11-02 Version: 1.36.917
- Add API UploadStreamByURL.
2021-11-02 Version: 1.36.916
- Fixed SDK update delay.
2021-11-01 Version: 1.36.915
- Release DetectKitchenAnimals DetectWorkwear.
2021-10-28 Version: 1.36.914
- Add no data alarm processing.
2021-10-28 Version: 1.36.913
- Updated tag api.
- Updated DescribeTask api to get relatedResourceId info.
2021-10-27 Version: 1.36.912
- Fix ModifyInstanceName.
2021-10-26 Version: 1.36.911
- Add QueryEmbedTokenInfo,DeleteEmbedToken,CreateEmbedToken,DelayEmbedToken,BuildSignatureUrl, and update QueryDatasetInfo,AuthorizeMenu,AddUserTagMeta,AddUser.
2021-10-26 Version: 1.36.910
- Update Dyvmsapi SDK.
2021-10-25 Version: 1.36.909
- DescribeDtsJobs api, delay filed change from int to long.
2021-10-25 Version: 1.36.908
- Generated 2016-04-08 for `Emr`.
2021-10-25 Version: 1.36.907
- Generated 2016-11-01 for `live`.
2021-10-21 Version: 1.36.906
- Update Open API.
2021-10-21 Version: 1.36.905
- Generated 2020-05-18 for `dataworks-public`.
2021-10-21 Version: 1.36.904
- Release AddQualityScore.
2021-10-21 Version: 1.36.903
- Generated 2020-05-18 for `dataworks-public`.
2021-10-20 Version: 1.36.902
- Add DeviceCenter API, including CreateDeviceDynamicGroup, DeleteDeviceDynamicGroup, QueryDynamicGroupDevices.
- Update DeviceCenter API, including SetDeviceGroupTags, QueryDeviceGroupByFuzzyName, QueryDeviceGroupByDevice, QueryDeviceGroupTagList, UpdateDeviceGroup, QueryDeviceGroupList, QueryDeviceGroupInfo.
- Update OTA API, including CreateOTADynamicUpgradeJob, CreateOTAStaticUpgradeJob, QueryOTAJob.
2021-10-19 Version: 1.36.901
- Supported ScaleApp totalPartitions.
2021-10-18 Version: 1.36.900
- Generated 2019-09-10, 2018-01-17 for `waf-openapi`.
2021-10-18 Version: 1.36.899
- Adjust ecs openapi endpoint.
- Fix SDK array format.
2021-10-15 Version: 1.36.898
- Added audit status.
2021-10-15 Version: 1.36.897
- Generated 2020-02-01 for `cloudesl`.
2021-10-14 Version: 1.36.896
- Add API for predictive dialer.
2021-10-08 Version: 1.36.895
- Adjust ecs openapi endpoint.
2021-10-08 Version: 1.36.894
- Fixed SDK update delay.
2021-10-08 Version: 1.36.893
- Fixed SDK update delay.
2021-10-08 Version: 1.36.892
- Fixed SDK update delay.
2021-10-08 Version: 1.36.891
- Release SearchFace BatchAddFaces.
2021-09-29 Version: 1.36.890
- Supported AssumeRoleWithOIDC.
2021-09-28 Version: 1.36.889
- Add new internal API.
2021-09-26 Version: 1.36.888
- Support odcap device.
2021-09-26 Version: 1.36.887
- Support odcap device.
2021-09-26 Version: 1.36.886
- Update imageenhan.
2021-09-26 Version: 1.36.885
- Supported sdk for sddp.
2021-09-24 Version: 1.36.884
- Release RetouchSkin LiquifyFace.
2021-09-23 Version: 1.36.883
- Supports the purchase of polardb storage packages.
- Support temporary upgrades and allocations of instances.
- Query the detailed information of the node returned by the GDN instance.
2021-09-23 Version: 1.36.882
- Update by sdk platform.

View File

@@ -1 +1 @@
1.36.882
1.36.951

View File

@@ -43,6 +43,10 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
include/alibabacloud/alimt/model/GetTranslateReportRequest.h
include/alibabacloud/alimt/model/GetTranslateReportResult.h
include/alibabacloud/alimt/model/GetUserRequest.h
include/alibabacloud/alimt/model/GetUserResult.h
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
@@ -52,7 +56,9 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
include/alibabacloud/alimt/model/TranslateECommerceResult.h
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
include/alibabacloud/alimt/model/TranslateGeneralResult.h )
include/alibabacloud/alimt/model/TranslateGeneralResult.h
include/alibabacloud/alimt/model/TranslateImageRequest.h
include/alibabacloud/alimt/model/TranslateImageResult.h )
set(alimt_src
src/AlimtClient.cc
@@ -78,6 +84,10 @@ set(alimt_src
src/model/GetTitleGenerateResult.cc
src/model/GetTitleIntelligenceRequest.cc
src/model/GetTitleIntelligenceResult.cc
src/model/GetTranslateReportRequest.cc
src/model/GetTranslateReportResult.cc
src/model/GetUserRequest.cc
src/model/GetUserResult.cc
src/model/OpenAlimtServiceRequest.cc
src/model/OpenAlimtServiceResult.cc
src/model/TranslateRequest.cc
@@ -87,7 +97,9 @@ set(alimt_src
src/model/TranslateECommerceRequest.cc
src/model/TranslateECommerceResult.cc
src/model/TranslateGeneralRequest.cc
src/model/TranslateGeneralResult.cc )
src/model/TranslateGeneralResult.cc
src/model/TranslateImageRequest.cc
src/model/TranslateImageResult.cc )
add_library(alimt ${LIB_TYPE}
${alimt_public_header}

View File

@@ -44,6 +44,10 @@
#include "model/GetTitleGenerateResult.h"
#include "model/GetTitleIntelligenceRequest.h"
#include "model/GetTitleIntelligenceResult.h"
#include "model/GetTranslateReportRequest.h"
#include "model/GetTranslateReportResult.h"
#include "model/GetUserRequest.h"
#include "model/GetUserResult.h"
#include "model/OpenAlimtServiceRequest.h"
#include "model/OpenAlimtServiceResult.h"
#include "model/TranslateRequest.h"
@@ -54,6 +58,8 @@
#include "model/TranslateECommerceResult.h"
#include "model/TranslateGeneralRequest.h"
#include "model/TranslateGeneralResult.h"
#include "model/TranslateImageRequest.h"
#include "model/TranslateImageResult.h"
namespace AlibabaCloud
@@ -96,6 +102,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
typedef Outcome<Error, Model::GetTranslateReportResult> GetTranslateReportOutcome;
typedef std::future<GetTranslateReportOutcome> GetTranslateReportOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTranslateReportRequest&, const GetTranslateReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTranslateReportAsyncHandler;
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
@@ -111,6 +123,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TranslateGeneralResult> TranslateGeneralOutcome;
typedef std::future<TranslateGeneralOutcome> TranslateGeneralOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateGeneralRequest&, const TranslateGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateGeneralAsyncHandler;
typedef Outcome<Error, Model::TranslateImageResult> TranslateImageOutcome;
typedef std::future<TranslateImageOutcome> TranslateImageOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateImageRequest&, const TranslateImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateImageAsyncHandler;
AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration);
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -149,6 +164,12 @@ namespace AlibabaCloud
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
GetTranslateReportOutcome getTranslateReport(const Model::GetTranslateReportRequest &request)const;
void getTranslateReportAsync(const Model::GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTranslateReportOutcomeCallable getTranslateReportCallable(const Model::GetTranslateReportRequest& request) const;
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
@@ -164,6 +185,9 @@ namespace AlibabaCloud
TranslateGeneralOutcome translateGeneral(const Model::TranslateGeneralRequest &request)const;
void translateGeneralAsync(const Model::TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateGeneralOutcomeCallable translateGeneralCallable(const Model::TranslateGeneralRequest& request) const;
TranslateImageOutcome translateImage(const Model::TranslateImageRequest &request)const;
void translateImageAsync(const Model::TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateImageOutcomeCallable translateImageCallable(const Model::TranslateImageRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -1,63 +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_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getFileUrl()const;
void setFileUrl(const std::string& fileUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
std::string getCallbackUrl()const;
void setCallbackUrl(const std::string& callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest {
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getFileUrl() const;
void setFileUrl(const std::string &fileUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getCallbackUrl() const;
void setCallbackUrl(const std::string &callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getUrlList()const;
void setUrlList(const std::string& urlList);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest {
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUrlList() const;
void setUrlList(const std::string &urlList);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,63 +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_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest
{
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getApiType()const;
void setApiType(const std::string& apiType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest {
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest
{
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
private:
std::string sourceText_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest {
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
private:
std::string sourceText_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest
{
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest {
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,51 +1,45 @@
/*
* 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_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest
{
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
std::string url_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest {
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
std::string url_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_

View File

@@ -1,57 +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.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest
{
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest {
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest
{
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest {
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest
{
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest {
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_

View File

@@ -41,9 +41,9 @@ namespace AlibabaCloud
std::string overLengthLimit;
std::string totalScore;
std::string duplicateWords;
std::string wordSpelledCorrectError;
std::string allUppercaseWords;
std::string languageQualityScore;
std::string allUppercaseWords;
std::string wordSpelledCorrectError;
};

View File

@@ -1,66 +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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest
{
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getAttributes()const;
void setAttributes(const std::string& attributes);
std::string getHotWords()const;
void setHotWords(const std::string& hotWords);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest {
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getAttributes() const;
void setAttributes(const std::string &attributes);
std::string getHotWords() const;
void setHotWords(const std::string &hotWords);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
{
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId()const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId()const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords()const;
void setKeywords(const std::string& keywords);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest {
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId() const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId() const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords() const;
void setKeywords(const std::string &keywords);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportRequest : public RpcServiceRequest {
public:
GetTranslateReportRequest();
~GetTranslateReportRequest();
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getBeginTime() const;
void setBeginTime(const std::string &beginTime);
std::string getApiName() const;
void setApiName(const std::string &apiName);
std::string getGroup() const;
void setGroup(const std::string &group);
private:
std::string endTime_;
std::string beginTime_;
std::string apiName_;
std::string group_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportResult : public ServiceResult
{
public:
GetTranslateReportResult();
explicit GetTranslateReportResult(const std::string &payload);
~GetTranslateReportResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_

View File

@@ -0,0 +1,39 @@
/*
* 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_ALIMT_MODEL_GETUSERREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetUserRequest : public RpcServiceRequest {
public:
GetUserRequest();
~GetUserRequest();
private:
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_ALIMT_MODEL_GETUSERRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetUserResult : public ServiceResult
{
public:
GetUserResult();
explicit GetUserResult(const std::string &payload);
~GetUserResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_

View File

@@ -1,51 +1,45 @@
/*
* 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_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
{
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getType()const;
void setType(const std::string& type);
private:
long ownerId_;
std::string type_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest {
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getType() const;
void setType(const std::string &type);
private:
long ownerId_;
std::string type_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest
{
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getCertificateType()const;
void setCertificateType(const std::string& certificateType);
std::string getResultType()const;
void setResultType(const std::string& resultType);
std::string getImageUrl()const;
void setImageUrl(const std::string& imageUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest {
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getCertificateType() const;
void setCertificateType(const std::string &certificateType);
std::string getResultType() const;
void setResultType(const std::string &resultType);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string ext_;
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest
{
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest {
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest
{
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest {
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_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_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageRequest : public RpcServiceRequest {
public:
TranslateImageRequest();
~TranslateImageRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getField() const;
void setField(const std::string &field);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getImageBase64() const;
void setImageBase64(const std::string &imageBase64);
private:
std::string ext_;
std::string sourceLanguage_;
std::string field_;
std::string imageUrl_;
std::string targetLanguage_;
std::string imageBase64_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageResult : public ServiceResult
{
public:
struct Data
{
std::string inPaintingUrl;
std::string templateJson;
std::string finalImageUrl;
};
TranslateImageResult();
explicit TranslateImageResult(const std::string &payload);
~TranslateImageResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest
{
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest {
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_

View File

@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::~AlimtClient()
@@ -447,6 +447,78 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
return task->get_future();
}
AlimtClient::GetTranslateReportOutcome AlimtClient::getTranslateReport(const GetTranslateReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTranslateReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTranslateReportOutcome(GetTranslateReportResult(outcome.result()));
else
return GetTranslateReportOutcome(outcome.error());
}
void AlimtClient::getTranslateReportAsync(const GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTranslateReport(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTranslateReportOutcomeCallable AlimtClient::getTranslateReportCallable(const GetTranslateReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTranslateReportOutcome()>>(
[this, request]()
{
return this->getTranslateReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetUserOutcome AlimtClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserOutcome(GetUserResult(outcome.result()));
else
return GetUserOutcome(outcome.error());
}
void AlimtClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUser(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetUserOutcomeCallable AlimtClient::getUserCallable(const GetUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
[this, request]()
{
return this->getUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,3 +699,39 @@ AlimtClient::TranslateGeneralOutcomeCallable AlimtClient::translateGeneralCallab
return task->get_future();
}
AlimtClient::TranslateImageOutcome AlimtClient::translateImage(const TranslateImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TranslateImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TranslateImageOutcome(TranslateImageResult(outcome.result()));
else
return TranslateImageOutcome(outcome.error());
}
void AlimtClient::translateImageAsync(const TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, translateImage(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::TranslateImageOutcomeCallable AlimtClient::translateImageCallable(const TranslateImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TranslateImageOutcome()>>(
[this, request]()
{
return this->translateImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,95 +1,81 @@
/*
* 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/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
{}
std::string CreateDocTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest() {}
std::string CreateDocTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateDocTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateDocTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDocTranslateTaskRequest::getScene()const
{
return scene_;
void CreateDocTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string CreateDocTranslateTaskRequest::getScene() const {
return scene_;
}
std::string CreateDocTranslateTaskRequest::getFileUrl()const
{
return fileUrl_;
void CreateDocTranslateTaskRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
{
fileUrl_ = fileUrl;
setBodyParameter("FileUrl", fileUrl);
std::string CreateDocTranslateTaskRequest::getFileUrl() const {
return fileUrl_;
}
std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateDocTranslateTaskRequest::setFileUrl(const std::string &fileUrl) {
fileUrl_ = fileUrl;
setBodyParameter(std::string("FileUrl"), fileUrl);
}
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateDocTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
{
return callbackUrl_;
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
{
callbackUrl_ = callbackUrl;
setBodyParameter("CallbackUrl", callbackUrl);
std::string CreateDocTranslateTaskRequest::getCallbackUrl() const {
return callbackUrl_;
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string &callbackUrl) {
callbackUrl_ = callbackUrl;
setBodyParameter(std::string("CallbackUrl"), callbackUrl);
}

View File

@@ -39,10 +39,10 @@ void CreateDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}

View File

@@ -1,84 +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/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest()
{}
std::string CreateImageTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest() {}
std::string CreateImageTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateImageTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateImageTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateImageTranslateTaskRequest::getUrlList()const
{
return urlList_;
void CreateImageTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
{
urlList_ = urlList;
setBodyParameter("UrlList", urlList);
std::string CreateImageTranslateTaskRequest::getUrlList() const {
return urlList_;
}
std::string CreateImageTranslateTaskRequest::getExtra()const
{
return extra_;
void CreateImageTranslateTaskRequest::setUrlList(const std::string &urlList) {
urlList_ = urlList;
setBodyParameter(std::string("UrlList"), urlList);
}
void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string CreateImageTranslateTaskRequest::getExtra() const {
return extra_;
}
std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateImageTranslateTaskRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateImageTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,95 +1,81 @@
/*
* 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/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetBatchTranslateRequest::~GetBatchTranslateRequest()
{}
std::string GetBatchTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetBatchTranslateRequest::~GetBatchTranslateRequest() {}
std::string GetBatchTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetBatchTranslateRequest::getSourceText()const
{
return sourceText_;
void GetBatchTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string GetBatchTranslateRequest::getSourceText() const {
return sourceText_;
}
std::string GetBatchTranslateRequest::getFormatType()const
{
return formatType_;
void GetBatchTranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string GetBatchTranslateRequest::getFormatType() const {
return formatType_;
}
std::string GetBatchTranslateRequest::getApiType()const
{
return apiType_;
void GetBatchTranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
{
apiType_ = apiType;
setBodyParameter("ApiType", apiType);
std::string GetBatchTranslateRequest::getApiType() const {
return apiType_;
}
std::string GetBatchTranslateRequest::getScene()const
{
return scene_;
void GetBatchTranslateRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
void GetBatchTranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string GetBatchTranslateRequest::getScene() const {
return scene_;
}
std::string GetBatchTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetBatchTranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetBatchTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage")
{
setMethod(HttpRequest::Method::Post);
}
GetDetectLanguageRequest::~GetDetectLanguageRequest()
{}
std::string GetDetectLanguageRequest::getSourceText()const
{
return sourceText_;
*/
#include <alibabacloud/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage") {
setMethod(HttpRequest::Method::Post);
}
void GetDetectLanguageRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
GetDetectLanguageRequest::~GetDetectLanguageRequest() {}
std::string GetDetectLanguageRequest::getSourceText() const {
return sourceText_;
}
void GetDetectLanguageRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
{
setMethod(HttpRequest::Method::Get);
}
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
{}
std::string GetDocTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask") {
setMethod(HttpRequest::Method::Get);
}
void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest() {}
std::string GetDocTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetDocTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}

View File

@@ -39,18 +39,18 @@ void GetDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TranslateFileUrl"].isNull())
translateFileUrl_ = value["TranslateFileUrl"].asString();
if(!value["TranslateErrorCode"].isNull())
translateErrorCode_ = value["TranslateErrorCode"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
if(!value["PageCount"].isNull())
pageCount_ = std::stoi(value["PageCount"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
}

View File

@@ -1,51 +1,45 @@
/*
* 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/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
{}
std::string GetImageDiagnoseRequest::getUrl()const
{
return url_;
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetImageDiagnoseRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
GetImageDiagnoseRequest::~GetImageDiagnoseRequest() {}
std::string GetImageDiagnoseRequest::getUrl() const {
return url_;
}
std::string GetImageDiagnoseRequest::getExtra()const
{
return extra_;
void GetImageDiagnoseRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageDiagnoseRequest::getExtra() const {
return extra_;
}
void GetImageDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

View File

@@ -1,73 +1,63 @@
/*
* 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/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateRequest::~GetImageTranslateRequest()
{}
std::string GetImageTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetImageTranslateRequest::~GetImageTranslateRequest() {}
std::string GetImageTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetImageTranslateRequest::getUrl()const
{
return url_;
void GetImageTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetImageTranslateRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
std::string GetImageTranslateRequest::getUrl() const {
return url_;
}
std::string GetImageTranslateRequest::getExtra()const
{
return extra_;
void GetImageTranslateRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageTranslateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageTranslateRequest::getExtra() const {
return extra_;
}
std::string GetImageTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetImageTranslateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetImageTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetImageTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest()
{}
std::string GetImageTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest() {}
std::string GetImageTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetImageTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setBodyParameter(std::string("TaskId"), taskId);
}

View File

@@ -1,84 +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/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
{}
std::string GetTitleDiagnoseRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest() {}
std::string GetTitleDiagnoseRequest::getLanguage() const {
return language_;
}
std::string GetTitleDiagnoseRequest::getTitle()const
{
return title_;
void GetTitleDiagnoseRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleDiagnoseRequest::getTitle() const {
return title_;
}
std::string GetTitleDiagnoseRequest::getPlatform()const
{
return platform_;
void GetTitleDiagnoseRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleDiagnoseRequest::getPlatform() const {
return platform_;
}
std::string GetTitleDiagnoseRequest::getExtra()const
{
return extra_;
void GetTitleDiagnoseRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleDiagnoseRequest::getExtra() const {
return extra_;
}
std::string GetTitleDiagnoseRequest::getCategoryId()const
{
return categoryId_;
void GetTitleDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleDiagnoseRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -40,26 +40,26 @@ void GetTitleDiagnoseResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["DuplicateWords"].isNull())
data_.duplicateWords = dataNode["DuplicateWords"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["LanguageQualityScore"].isNull())
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -1,106 +1,90 @@
/*
* 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/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleGenerateRequest::~GetTitleGenerateRequest()
{}
std::string GetTitleGenerateRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleGenerateRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
std::string GetTitleGenerateRequest::getLanguage() const {
return language_;
}
std::string GetTitleGenerateRequest::getTitle()const
{
return title_;
void GetTitleGenerateRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleGenerateRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleGenerateRequest::getTitle() const {
return title_;
}
std::string GetTitleGenerateRequest::getPlatform()const
{
return platform_;
void GetTitleGenerateRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleGenerateRequest::getPlatform() const {
return platform_;
}
std::string GetTitleGenerateRequest::getExtra()const
{
return extra_;
void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleGenerateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleGenerateRequest::getExtra() const {
return extra_;
}
std::string GetTitleGenerateRequest::getAttributes()const
{
return attributes_;
void GetTitleGenerateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
{
attributes_ = attributes;
setBodyParameter("Attributes", attributes);
std::string GetTitleGenerateRequest::getAttributes() const {
return attributes_;
}
std::string GetTitleGenerateRequest::getHotWords()const
{
return hotWords_;
void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
attributes_ = attributes;
setBodyParameter(std::string("Attributes"), attributes);
}
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
{
hotWords_ = hotWords;
setBodyParameter("HotWords", hotWords);
std::string GetTitleGenerateRequest::getHotWords() const {
return hotWords_;
}
std::string GetTitleGenerateRequest::getCategoryId()const
{
return categoryId_;
void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
hotWords_ = hotWords;
setBodyParameter(std::string("HotWords"), hotWords);
}
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleGenerateRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -1,84 +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/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
{}
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
{
return catLevelThreeId_;
*/
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
{
catLevelThreeId_ = catLevelThreeId;
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest() {}
long GetTitleIntelligenceRequest::getCatLevelThreeId() const {
return catLevelThreeId_;
}
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
{
return catLevelTwoId_;
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId) {
catLevelThreeId_ = catLevelThreeId;
setBodyParameter(std::string("CatLevelThreeId"), std::to_string(catLevelThreeId));
}
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
{
catLevelTwoId_ = catLevelTwoId;
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
long GetTitleIntelligenceRequest::getCatLevelTwoId() const {
return catLevelTwoId_;
}
std::string GetTitleIntelligenceRequest::getKeywords()const
{
return keywords_;
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId) {
catLevelTwoId_ = catLevelTwoId;
setBodyParameter(std::string("CatLevelTwoId"), std::to_string(catLevelTwoId));
}
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
{
keywords_ = keywords;
setBodyParameter("Keywords", keywords);
std::string GetTitleIntelligenceRequest::getKeywords() const {
return keywords_;
}
std::string GetTitleIntelligenceRequest::getPlatform()const
{
return platform_;
void GetTitleIntelligenceRequest::setKeywords(const std::string &keywords) {
keywords_ = keywords;
setBodyParameter(std::string("Keywords"), keywords);
}
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleIntelligenceRequest::getPlatform() const {
return platform_;
}
std::string GetTitleIntelligenceRequest::getExtra()const
{
return extra_;
void GetTitleIntelligenceRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleIntelligenceRequest::getExtra() const {
return extra_;
}
void GetTitleIntelligenceRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

View File

@@ -0,0 +1,63 @@
/*
* 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/alimt/model/GetTranslateReportRequest.h>
using AlibabaCloud::Alimt::Model::GetTranslateReportRequest;
GetTranslateReportRequest::GetTranslateReportRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTranslateReport") {
setMethod(HttpRequest::Method::Post);
}
GetTranslateReportRequest::~GetTranslateReportRequest() {}
std::string GetTranslateReportRequest::getEndTime() const {
return endTime_;
}
void GetTranslateReportRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string GetTranslateReportRequest::getBeginTime() const {
return beginTime_;
}
void GetTranslateReportRequest::setBeginTime(const std::string &beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), beginTime);
}
std::string GetTranslateReportRequest::getApiName() const {
return apiName_;
}
void GetTranslateReportRequest::setApiName(const std::string &apiName) {
apiName_ = apiName;
setParameter(std::string("ApiName"), apiName);
}
std::string GetTranslateReportRequest::getGroup() const {
return group_;
}
void GetTranslateReportRequest::setGroup(const std::string &group) {
group_ = group;
setParameter(std::string("Group"), group);
}

View File

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

View File

@@ -0,0 +1,27 @@
/*
* 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/alimt/model/GetUserRequest.h>
using AlibabaCloud::Alimt::Model::GetUserRequest;
GetUserRequest::GetUserRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetUser") {
setMethod(HttpRequest::Method::Post);
}
GetUserRequest::~GetUserRequest() {}

View File

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

View File

@@ -1,51 +1,45 @@
/*
* 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/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
{
setMethod(HttpRequest::Method::Post);
}
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
{}
long OpenAlimtServiceRequest::getOwnerId()const
{
return ownerId_;
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService") {
setMethod(HttpRequest::Method::Post);
}
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
OpenAlimtServiceRequest::~OpenAlimtServiceRequest() {}
long OpenAlimtServiceRequest::getOwnerId() const {
return ownerId_;
}
std::string OpenAlimtServiceRequest::getType()const
{
return type_;
void OpenAlimtServiceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void OpenAlimtServiceRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string OpenAlimtServiceRequest::getType() const {
return type_;
}
void OpenAlimtServiceRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}

View File

@@ -1,84 +1,81 @@
/*
* 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/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateCertificateRequest::~TranslateCertificateRequest()
{}
std::string TranslateCertificateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateCertificateRequest::~TranslateCertificateRequest() {}
std::string TranslateCertificateRequest::getExt() const {
return ext_;
}
std::string TranslateCertificateRequest::getCertificateType()const
{
return certificateType_;
void TranslateCertificateRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
{
certificateType_ = certificateType;
setBodyParameter("CertificateType", certificateType);
std::string TranslateCertificateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateCertificateRequest::getResultType()const
{
return resultType_;
void TranslateCertificateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateCertificateRequest::setResultType(const std::string& resultType)
{
resultType_ = resultType;
setBodyParameter("ResultType", resultType);
std::string TranslateCertificateRequest::getCertificateType() const {
return certificateType_;
}
std::string TranslateCertificateRequest::getImageUrl()const
{
return imageUrl_;
void TranslateCertificateRequest::setCertificateType(const std::string &certificateType) {
certificateType_ = certificateType;
setBodyParameter(std::string("CertificateType"), certificateType);
}
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
{
imageUrl_ = imageUrl;
setBodyParameter("ImageUrl", imageUrl);
std::string TranslateCertificateRequest::getResultType() const {
return resultType_;
}
std::string TranslateCertificateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateCertificateRequest::setResultType(const std::string &resultType) {
resultType_ = resultType;
setBodyParameter(std::string("ResultType"), resultType);
}
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateCertificateRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateCertificateRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateCertificateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateCertificateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -44,14 +44,14 @@ void TranslateCertificateResult::parse(const std::string &payload)
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
{
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
}

View File

@@ -1,84 +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/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
{
setMethod(HttpRequest::Method::Post);
}
TranslateECommerceRequest::~TranslateECommerceRequest()
{}
std::string TranslateECommerceRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce") {
setMethod(HttpRequest::Method::Post);
}
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateECommerceRequest::~TranslateECommerceRequest() {}
std::string TranslateECommerceRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateECommerceRequest::getSourceText()const
{
return sourceText_;
void TranslateECommerceRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateECommerceRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateECommerceRequest::getFormatType()const
{
return formatType_;
void TranslateECommerceRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateECommerceRequest::getFormatType() const {
return formatType_;
}
std::string TranslateECommerceRequest::getScene()const
{
return scene_;
void TranslateECommerceRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateECommerceRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateECommerceRequest::getScene() const {
return scene_;
}
std::string TranslateECommerceRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateECommerceRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateECommerceRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateECommerceRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,84 +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/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
{
setMethod(HttpRequest::Method::Post);
}
TranslateGeneralRequest::~TranslateGeneralRequest()
{}
std::string TranslateGeneralRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral") {
setMethod(HttpRequest::Method::Post);
}
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateGeneralRequest::~TranslateGeneralRequest() {}
std::string TranslateGeneralRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateGeneralRequest::getSourceText()const
{
return sourceText_;
void TranslateGeneralRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateGeneralRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateGeneralRequest::getFormatType()const
{
return formatType_;
void TranslateGeneralRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateGeneralRequest::getFormatType() const {
return formatType_;
}
std::string TranslateGeneralRequest::getScene()const
{
return scene_;
void TranslateGeneralRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateGeneralRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateGeneralRequest::getScene() const {
return scene_;
}
std::string TranslateGeneralRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateGeneralRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateGeneralRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateGeneralRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/alimt/model/TranslateImageRequest.h>
using AlibabaCloud::Alimt::Model::TranslateImageRequest;
TranslateImageRequest::TranslateImageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateImage") {
setMethod(HttpRequest::Method::Post);
}
TranslateImageRequest::~TranslateImageRequest() {}
std::string TranslateImageRequest::getExt() const {
return ext_;
}
void TranslateImageRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
std::string TranslateImageRequest::getSourceLanguage() const {
return sourceLanguage_;
}
void TranslateImageRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
std::string TranslateImageRequest::getField() const {
return field_;
}
void TranslateImageRequest::setField(const std::string &field) {
field_ = field;
setBodyParameter(std::string("Field"), field);
}
std::string TranslateImageRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateImageRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateImageRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateImageRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
std::string TranslateImageRequest::getImageBase64() const {
return imageBase64_;
}
void TranslateImageRequest::setImageBase64(const std::string &imageBase64) {
imageBase64_ = imageBase64;
setBodyParameter(std::string("ImageBase64"), imageBase64);
}

View File

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

View File

@@ -1,84 +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/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "Translate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateRequest::~TranslateRequest()
{}
std::string TranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "Translate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateRequest::~TranslateRequest() {}
std::string TranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateRequest::getSourceText()const
{
return sourceText_;
void TranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateRequest::getFormatType()const
{
return formatType_;
void TranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateRequest::getFormatType() const {
return formatType_;
}
std::string TranslateRequest::getScene()const
{
return scene_;
void TranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateRequest::getScene() const {
return scene_;
}
std::string TranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -21,6 +21,8 @@ set(ccc_public_header
include/alibabacloud/ccc/CCCExport.h )
set(ccc_public_header_model
include/alibabacloud/ccc/model/AbortCampaignRequest.h
include/alibabacloud/ccc/model/AbortCampaignResult.h
include/alibabacloud/ccc/model/AddNumbersToSkillGroupRequest.h
include/alibabacloud/ccc/model/AddNumbersToSkillGroupResult.h
include/alibabacloud/ccc/model/AddPersonalNumbersToUserRequest.h
@@ -49,6 +51,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/CoachCallResult.h
include/alibabacloud/ccc/model/CompleteAttendedTransferRequest.h
include/alibabacloud/ccc/model/CompleteAttendedTransferResult.h
include/alibabacloud/ccc/model/CreateCampaignRequest.h
include/alibabacloud/ccc/model/CreateCampaignResult.h
include/alibabacloud/ccc/model/CreateInstanceRequest.h
include/alibabacloud/ccc/model/CreateInstanceResult.h
include/alibabacloud/ccc/model/CreateSkillGroupRequest.h
@@ -59,6 +63,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/DeleteSkillGroupResult.h
include/alibabacloud/ccc/model/GetCallDetailRecordRequest.h
include/alibabacloud/ccc/model/GetCallDetailRecordResult.h
include/alibabacloud/ccc/model/GetCampaignRequest.h
include/alibabacloud/ccc/model/GetCampaignResult.h
include/alibabacloud/ccc/model/GetHistoricalCallerReportRequest.h
include/alibabacloud/ccc/model/GetHistoricalCallerReportResult.h
include/alibabacloud/ccc/model/GetHistoricalInstanceReportRequest.h
@@ -95,10 +101,18 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/LaunchSurveyResult.h
include/alibabacloud/ccc/model/ListAgentStateLogsRequest.h
include/alibabacloud/ccc/model/ListAgentStateLogsResult.h
include/alibabacloud/ccc/model/ListAttemptsRequest.h
include/alibabacloud/ccc/model/ListAttemptsResult.h
include/alibabacloud/ccc/model/ListBriefSkillGroupsRequest.h
include/alibabacloud/ccc/model/ListBriefSkillGroupsResult.h
include/alibabacloud/ccc/model/ListCallDetailRecordsRequest.h
include/alibabacloud/ccc/model/ListCallDetailRecordsResult.h
include/alibabacloud/ccc/model/ListCampaignTrendingReportRequest.h
include/alibabacloud/ccc/model/ListCampaignTrendingReportResult.h
include/alibabacloud/ccc/model/ListCampaignsRequest.h
include/alibabacloud/ccc/model/ListCampaignsResult.h
include/alibabacloud/ccc/model/ListCasesRequest.h
include/alibabacloud/ccc/model/ListCasesResult.h
include/alibabacloud/ccc/model/ListConfigItemsRequest.h
include/alibabacloud/ccc/model/ListConfigItemsResult.h
include/alibabacloud/ccc/model/ListContactFlowsRequest.h
@@ -169,6 +183,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/MonitorCallResult.h
include/alibabacloud/ccc/model/MuteCallRequest.h
include/alibabacloud/ccc/model/MuteCallResult.h
include/alibabacloud/ccc/model/PauseCampaignRequest.h
include/alibabacloud/ccc/model/PauseCampaignResult.h
include/alibabacloud/ccc/model/PickOutboundNumbersRequest.h
include/alibabacloud/ccc/model/PickOutboundNumbersResult.h
include/alibabacloud/ccc/model/PollUserStatusRequest.h
@@ -197,6 +213,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/ResetAgentStateResult.h
include/alibabacloud/ccc/model/ResetUserPasswordRequest.h
include/alibabacloud/ccc/model/ResetUserPasswordResult.h
include/alibabacloud/ccc/model/ResumeCampaignRequest.h
include/alibabacloud/ccc/model/ResumeCampaignResult.h
include/alibabacloud/ccc/model/RetrieveCallRequest.h
include/alibabacloud/ccc/model/RetrieveCallResult.h
include/alibabacloud/ccc/model/SaveRTCStatsV2Request.h
@@ -217,6 +235,8 @@ set(ccc_public_header_model
include/alibabacloud/ccc/model/StartBack2BackCallResult.h
include/alibabacloud/ccc/model/StartPredictiveCallRequest.h
include/alibabacloud/ccc/model/StartPredictiveCallResult.h
include/alibabacloud/ccc/model/SubmitCampaignRequest.h
include/alibabacloud/ccc/model/SubmitCampaignResult.h
include/alibabacloud/ccc/model/TakeBreakRequest.h
include/alibabacloud/ccc/model/TakeBreakResult.h
include/alibabacloud/ccc/model/UnmuteCallRequest.h
@@ -226,6 +246,8 @@ set(ccc_public_header_model
set(ccc_src
src/CCCClient.cc
src/model/AbortCampaignRequest.cc
src/model/AbortCampaignResult.cc
src/model/AddNumbersToSkillGroupRequest.cc
src/model/AddNumbersToSkillGroupResult.cc
src/model/AddPersonalNumbersToUserRequest.cc
@@ -254,6 +276,8 @@ set(ccc_src
src/model/CoachCallResult.cc
src/model/CompleteAttendedTransferRequest.cc
src/model/CompleteAttendedTransferResult.cc
src/model/CreateCampaignRequest.cc
src/model/CreateCampaignResult.cc
src/model/CreateInstanceRequest.cc
src/model/CreateInstanceResult.cc
src/model/CreateSkillGroupRequest.cc
@@ -264,6 +288,8 @@ set(ccc_src
src/model/DeleteSkillGroupResult.cc
src/model/GetCallDetailRecordRequest.cc
src/model/GetCallDetailRecordResult.cc
src/model/GetCampaignRequest.cc
src/model/GetCampaignResult.cc
src/model/GetHistoricalCallerReportRequest.cc
src/model/GetHistoricalCallerReportResult.cc
src/model/GetHistoricalInstanceReportRequest.cc
@@ -300,10 +326,18 @@ set(ccc_src
src/model/LaunchSurveyResult.cc
src/model/ListAgentStateLogsRequest.cc
src/model/ListAgentStateLogsResult.cc
src/model/ListAttemptsRequest.cc
src/model/ListAttemptsResult.cc
src/model/ListBriefSkillGroupsRequest.cc
src/model/ListBriefSkillGroupsResult.cc
src/model/ListCallDetailRecordsRequest.cc
src/model/ListCallDetailRecordsResult.cc
src/model/ListCampaignTrendingReportRequest.cc
src/model/ListCampaignTrendingReportResult.cc
src/model/ListCampaignsRequest.cc
src/model/ListCampaignsResult.cc
src/model/ListCasesRequest.cc
src/model/ListCasesResult.cc
src/model/ListConfigItemsRequest.cc
src/model/ListConfigItemsResult.cc
src/model/ListContactFlowsRequest.cc
@@ -374,6 +408,8 @@ set(ccc_src
src/model/MonitorCallResult.cc
src/model/MuteCallRequest.cc
src/model/MuteCallResult.cc
src/model/PauseCampaignRequest.cc
src/model/PauseCampaignResult.cc
src/model/PickOutboundNumbersRequest.cc
src/model/PickOutboundNumbersResult.cc
src/model/PollUserStatusRequest.cc
@@ -402,6 +438,8 @@ set(ccc_src
src/model/ResetAgentStateResult.cc
src/model/ResetUserPasswordRequest.cc
src/model/ResetUserPasswordResult.cc
src/model/ResumeCampaignRequest.cc
src/model/ResumeCampaignResult.cc
src/model/RetrieveCallRequest.cc
src/model/RetrieveCallResult.cc
src/model/SaveRTCStatsV2Request.cc
@@ -422,6 +460,8 @@ set(ccc_src
src/model/StartBack2BackCallResult.cc
src/model/StartPredictiveCallRequest.cc
src/model/StartPredictiveCallResult.cc
src/model/SubmitCampaignRequest.cc
src/model/SubmitCampaignResult.cc
src/model/TakeBreakRequest.cc
src/model/TakeBreakResult.cc
src/model/UnmuteCallRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "CCCExport.h"
#include "model/AbortCampaignRequest.h"
#include "model/AbortCampaignResult.h"
#include "model/AddNumbersToSkillGroupRequest.h"
#include "model/AddNumbersToSkillGroupResult.h"
#include "model/AddPersonalNumbersToUserRequest.h"
@@ -50,6 +52,8 @@
#include "model/CoachCallResult.h"
#include "model/CompleteAttendedTransferRequest.h"
#include "model/CompleteAttendedTransferResult.h"
#include "model/CreateCampaignRequest.h"
#include "model/CreateCampaignResult.h"
#include "model/CreateInstanceRequest.h"
#include "model/CreateInstanceResult.h"
#include "model/CreateSkillGroupRequest.h"
@@ -60,6 +64,8 @@
#include "model/DeleteSkillGroupResult.h"
#include "model/GetCallDetailRecordRequest.h"
#include "model/GetCallDetailRecordResult.h"
#include "model/GetCampaignRequest.h"
#include "model/GetCampaignResult.h"
#include "model/GetHistoricalCallerReportRequest.h"
#include "model/GetHistoricalCallerReportResult.h"
#include "model/GetHistoricalInstanceReportRequest.h"
@@ -96,10 +102,18 @@
#include "model/LaunchSurveyResult.h"
#include "model/ListAgentStateLogsRequest.h"
#include "model/ListAgentStateLogsResult.h"
#include "model/ListAttemptsRequest.h"
#include "model/ListAttemptsResult.h"
#include "model/ListBriefSkillGroupsRequest.h"
#include "model/ListBriefSkillGroupsResult.h"
#include "model/ListCallDetailRecordsRequest.h"
#include "model/ListCallDetailRecordsResult.h"
#include "model/ListCampaignTrendingReportRequest.h"
#include "model/ListCampaignTrendingReportResult.h"
#include "model/ListCampaignsRequest.h"
#include "model/ListCampaignsResult.h"
#include "model/ListCasesRequest.h"
#include "model/ListCasesResult.h"
#include "model/ListConfigItemsRequest.h"
#include "model/ListConfigItemsResult.h"
#include "model/ListContactFlowsRequest.h"
@@ -170,6 +184,8 @@
#include "model/MonitorCallResult.h"
#include "model/MuteCallRequest.h"
#include "model/MuteCallResult.h"
#include "model/PauseCampaignRequest.h"
#include "model/PauseCampaignResult.h"
#include "model/PickOutboundNumbersRequest.h"
#include "model/PickOutboundNumbersResult.h"
#include "model/PollUserStatusRequest.h"
@@ -198,6 +214,8 @@
#include "model/ResetAgentStateResult.h"
#include "model/ResetUserPasswordRequest.h"
#include "model/ResetUserPasswordResult.h"
#include "model/ResumeCampaignRequest.h"
#include "model/ResumeCampaignResult.h"
#include "model/RetrieveCallRequest.h"
#include "model/RetrieveCallResult.h"
#include "model/SaveRTCStatsV2Request.h"
@@ -218,6 +236,8 @@
#include "model/StartBack2BackCallResult.h"
#include "model/StartPredictiveCallRequest.h"
#include "model/StartPredictiveCallResult.h"
#include "model/SubmitCampaignRequest.h"
#include "model/SubmitCampaignResult.h"
#include "model/TakeBreakRequest.h"
#include "model/TakeBreakResult.h"
#include "model/UnmuteCallRequest.h"
@@ -233,6 +253,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_CCC_EXPORT CCCClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AbortCampaignResult> AbortCampaignOutcome;
typedef std::future<AbortCampaignOutcome> AbortCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AbortCampaignRequest&, const AbortCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AbortCampaignAsyncHandler;
typedef Outcome<Error, Model::AddNumbersToSkillGroupResult> AddNumbersToSkillGroupOutcome;
typedef std::future<AddNumbersToSkillGroupOutcome> AddNumbersToSkillGroupOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::AddNumbersToSkillGroupRequest&, const AddNumbersToSkillGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddNumbersToSkillGroupAsyncHandler;
@@ -275,6 +298,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CompleteAttendedTransferResult> CompleteAttendedTransferOutcome;
typedef std::future<CompleteAttendedTransferOutcome> CompleteAttendedTransferOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CompleteAttendedTransferRequest&, const CompleteAttendedTransferOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompleteAttendedTransferAsyncHandler;
typedef Outcome<Error, Model::CreateCampaignResult> CreateCampaignOutcome;
typedef std::future<CreateCampaignOutcome> CreateCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CreateCampaignRequest&, const CreateCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCampaignAsyncHandler;
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
@@ -290,6 +316,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetCallDetailRecordResult> GetCallDetailRecordOutcome;
typedef std::future<GetCallDetailRecordOutcome> GetCallDetailRecordOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::GetCallDetailRecordRequest&, const GetCallDetailRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCallDetailRecordAsyncHandler;
typedef Outcome<Error, Model::GetCampaignResult> GetCampaignOutcome;
typedef std::future<GetCampaignOutcome> GetCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::GetCampaignRequest&, const GetCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCampaignAsyncHandler;
typedef Outcome<Error, Model::GetHistoricalCallerReportResult> GetHistoricalCallerReportOutcome;
typedef std::future<GetHistoricalCallerReportOutcome> GetHistoricalCallerReportOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::GetHistoricalCallerReportRequest&, const GetHistoricalCallerReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHistoricalCallerReportAsyncHandler;
@@ -344,12 +373,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListAgentStateLogsResult> ListAgentStateLogsOutcome;
typedef std::future<ListAgentStateLogsOutcome> ListAgentStateLogsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListAgentStateLogsRequest&, const ListAgentStateLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAgentStateLogsAsyncHandler;
typedef Outcome<Error, Model::ListAttemptsResult> ListAttemptsOutcome;
typedef std::future<ListAttemptsOutcome> ListAttemptsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListAttemptsRequest&, const ListAttemptsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAttemptsAsyncHandler;
typedef Outcome<Error, Model::ListBriefSkillGroupsResult> ListBriefSkillGroupsOutcome;
typedef std::future<ListBriefSkillGroupsOutcome> ListBriefSkillGroupsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListBriefSkillGroupsRequest&, const ListBriefSkillGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBriefSkillGroupsAsyncHandler;
typedef Outcome<Error, Model::ListCallDetailRecordsResult> ListCallDetailRecordsOutcome;
typedef std::future<ListCallDetailRecordsOutcome> ListCallDetailRecordsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListCallDetailRecordsRequest&, const ListCallDetailRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCallDetailRecordsAsyncHandler;
typedef Outcome<Error, Model::ListCampaignTrendingReportResult> ListCampaignTrendingReportOutcome;
typedef std::future<ListCampaignTrendingReportOutcome> ListCampaignTrendingReportOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListCampaignTrendingReportRequest&, const ListCampaignTrendingReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCampaignTrendingReportAsyncHandler;
typedef Outcome<Error, Model::ListCampaignsResult> ListCampaignsOutcome;
typedef std::future<ListCampaignsOutcome> ListCampaignsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListCampaignsRequest&, const ListCampaignsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCampaignsAsyncHandler;
typedef Outcome<Error, Model::ListCasesResult> ListCasesOutcome;
typedef std::future<ListCasesOutcome> ListCasesOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListCasesRequest&, const ListCasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCasesAsyncHandler;
typedef Outcome<Error, Model::ListConfigItemsResult> ListConfigItemsOutcome;
typedef std::future<ListConfigItemsOutcome> ListConfigItemsOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ListConfigItemsRequest&, const ListConfigItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigItemsAsyncHandler;
@@ -455,6 +496,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::MuteCallResult> MuteCallOutcome;
typedef std::future<MuteCallOutcome> MuteCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::MuteCallRequest&, const MuteCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MuteCallAsyncHandler;
typedef Outcome<Error, Model::PauseCampaignResult> PauseCampaignOutcome;
typedef std::future<PauseCampaignOutcome> PauseCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::PauseCampaignRequest&, const PauseCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PauseCampaignAsyncHandler;
typedef Outcome<Error, Model::PickOutboundNumbersResult> PickOutboundNumbersOutcome;
typedef std::future<PickOutboundNumbersOutcome> PickOutboundNumbersOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::PickOutboundNumbersRequest&, const PickOutboundNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PickOutboundNumbersAsyncHandler;
@@ -497,6 +541,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ResetUserPasswordResult> ResetUserPasswordOutcome;
typedef std::future<ResetUserPasswordOutcome> ResetUserPasswordOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ResetUserPasswordRequest&, const ResetUserPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetUserPasswordAsyncHandler;
typedef Outcome<Error, Model::ResumeCampaignResult> ResumeCampaignOutcome;
typedef std::future<ResumeCampaignOutcome> ResumeCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::ResumeCampaignRequest&, const ResumeCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResumeCampaignAsyncHandler;
typedef Outcome<Error, Model::RetrieveCallResult> RetrieveCallOutcome;
typedef std::future<RetrieveCallOutcome> RetrieveCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::RetrieveCallRequest&, const RetrieveCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetrieveCallAsyncHandler;
@@ -527,6 +574,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StartPredictiveCallResult> StartPredictiveCallOutcome;
typedef std::future<StartPredictiveCallOutcome> StartPredictiveCallOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::StartPredictiveCallRequest&, const StartPredictiveCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartPredictiveCallAsyncHandler;
typedef Outcome<Error, Model::SubmitCampaignResult> SubmitCampaignOutcome;
typedef std::future<SubmitCampaignOutcome> SubmitCampaignOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::SubmitCampaignRequest&, const SubmitCampaignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitCampaignAsyncHandler;
typedef Outcome<Error, Model::TakeBreakResult> TakeBreakOutcome;
typedef std::future<TakeBreakOutcome> TakeBreakOutcomeCallable;
typedef std::function<void(const CCCClient*, const Model::TakeBreakRequest&, const TakeBreakOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TakeBreakAsyncHandler;
@@ -541,6 +591,9 @@ namespace AlibabaCloud
CCCClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CCCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CCCClient();
AbortCampaignOutcome abortCampaign(const Model::AbortCampaignRequest &request)const;
void abortCampaignAsync(const Model::AbortCampaignRequest& request, const AbortCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AbortCampaignOutcomeCallable abortCampaignCallable(const Model::AbortCampaignRequest& request) const;
AddNumbersToSkillGroupOutcome addNumbersToSkillGroup(const Model::AddNumbersToSkillGroupRequest &request)const;
void addNumbersToSkillGroupAsync(const Model::AddNumbersToSkillGroupRequest& request, const AddNumbersToSkillGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddNumbersToSkillGroupOutcomeCallable addNumbersToSkillGroupCallable(const Model::AddNumbersToSkillGroupRequest& request) const;
@@ -583,6 +636,9 @@ namespace AlibabaCloud
CompleteAttendedTransferOutcome completeAttendedTransfer(const Model::CompleteAttendedTransferRequest &request)const;
void completeAttendedTransferAsync(const Model::CompleteAttendedTransferRequest& request, const CompleteAttendedTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CompleteAttendedTransferOutcomeCallable completeAttendedTransferCallable(const Model::CompleteAttendedTransferRequest& request) const;
CreateCampaignOutcome createCampaign(const Model::CreateCampaignRequest &request)const;
void createCampaignAsync(const Model::CreateCampaignRequest& request, const CreateCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCampaignOutcomeCallable createCampaignCallable(const Model::CreateCampaignRequest& request) const;
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
@@ -598,6 +654,9 @@ namespace AlibabaCloud
GetCallDetailRecordOutcome getCallDetailRecord(const Model::GetCallDetailRecordRequest &request)const;
void getCallDetailRecordAsync(const Model::GetCallDetailRecordRequest& request, const GetCallDetailRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCallDetailRecordOutcomeCallable getCallDetailRecordCallable(const Model::GetCallDetailRecordRequest& request) const;
GetCampaignOutcome getCampaign(const Model::GetCampaignRequest &request)const;
void getCampaignAsync(const Model::GetCampaignRequest& request, const GetCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCampaignOutcomeCallable getCampaignCallable(const Model::GetCampaignRequest& request) const;
GetHistoricalCallerReportOutcome getHistoricalCallerReport(const Model::GetHistoricalCallerReportRequest &request)const;
void getHistoricalCallerReportAsync(const Model::GetHistoricalCallerReportRequest& request, const GetHistoricalCallerReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetHistoricalCallerReportOutcomeCallable getHistoricalCallerReportCallable(const Model::GetHistoricalCallerReportRequest& request) const;
@@ -652,12 +711,24 @@ namespace AlibabaCloud
ListAgentStateLogsOutcome listAgentStateLogs(const Model::ListAgentStateLogsRequest &request)const;
void listAgentStateLogsAsync(const Model::ListAgentStateLogsRequest& request, const ListAgentStateLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAgentStateLogsOutcomeCallable listAgentStateLogsCallable(const Model::ListAgentStateLogsRequest& request) const;
ListAttemptsOutcome listAttempts(const Model::ListAttemptsRequest &request)const;
void listAttemptsAsync(const Model::ListAttemptsRequest& request, const ListAttemptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAttemptsOutcomeCallable listAttemptsCallable(const Model::ListAttemptsRequest& request) const;
ListBriefSkillGroupsOutcome listBriefSkillGroups(const Model::ListBriefSkillGroupsRequest &request)const;
void listBriefSkillGroupsAsync(const Model::ListBriefSkillGroupsRequest& request, const ListBriefSkillGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListBriefSkillGroupsOutcomeCallable listBriefSkillGroupsCallable(const Model::ListBriefSkillGroupsRequest& request) const;
ListCallDetailRecordsOutcome listCallDetailRecords(const Model::ListCallDetailRecordsRequest &request)const;
void listCallDetailRecordsAsync(const Model::ListCallDetailRecordsRequest& request, const ListCallDetailRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCallDetailRecordsOutcomeCallable listCallDetailRecordsCallable(const Model::ListCallDetailRecordsRequest& request) const;
ListCampaignTrendingReportOutcome listCampaignTrendingReport(const Model::ListCampaignTrendingReportRequest &request)const;
void listCampaignTrendingReportAsync(const Model::ListCampaignTrendingReportRequest& request, const ListCampaignTrendingReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCampaignTrendingReportOutcomeCallable listCampaignTrendingReportCallable(const Model::ListCampaignTrendingReportRequest& request) const;
ListCampaignsOutcome listCampaigns(const Model::ListCampaignsRequest &request)const;
void listCampaignsAsync(const Model::ListCampaignsRequest& request, const ListCampaignsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCampaignsOutcomeCallable listCampaignsCallable(const Model::ListCampaignsRequest& request) const;
ListCasesOutcome listCases(const Model::ListCasesRequest &request)const;
void listCasesAsync(const Model::ListCasesRequest& request, const ListCasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCasesOutcomeCallable listCasesCallable(const Model::ListCasesRequest& request) const;
ListConfigItemsOutcome listConfigItems(const Model::ListConfigItemsRequest &request)const;
void listConfigItemsAsync(const Model::ListConfigItemsRequest& request, const ListConfigItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListConfigItemsOutcomeCallable listConfigItemsCallable(const Model::ListConfigItemsRequest& request) const;
@@ -763,6 +834,9 @@ namespace AlibabaCloud
MuteCallOutcome muteCall(const Model::MuteCallRequest &request)const;
void muteCallAsync(const Model::MuteCallRequest& request, const MuteCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MuteCallOutcomeCallable muteCallCallable(const Model::MuteCallRequest& request) const;
PauseCampaignOutcome pauseCampaign(const Model::PauseCampaignRequest &request)const;
void pauseCampaignAsync(const Model::PauseCampaignRequest& request, const PauseCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PauseCampaignOutcomeCallable pauseCampaignCallable(const Model::PauseCampaignRequest& request) const;
PickOutboundNumbersOutcome pickOutboundNumbers(const Model::PickOutboundNumbersRequest &request)const;
void pickOutboundNumbersAsync(const Model::PickOutboundNumbersRequest& request, const PickOutboundNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PickOutboundNumbersOutcomeCallable pickOutboundNumbersCallable(const Model::PickOutboundNumbersRequest& request) const;
@@ -805,6 +879,9 @@ namespace AlibabaCloud
ResetUserPasswordOutcome resetUserPassword(const Model::ResetUserPasswordRequest &request)const;
void resetUserPasswordAsync(const Model::ResetUserPasswordRequest& request, const ResetUserPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetUserPasswordOutcomeCallable resetUserPasswordCallable(const Model::ResetUserPasswordRequest& request) const;
ResumeCampaignOutcome resumeCampaign(const Model::ResumeCampaignRequest &request)const;
void resumeCampaignAsync(const Model::ResumeCampaignRequest& request, const ResumeCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResumeCampaignOutcomeCallable resumeCampaignCallable(const Model::ResumeCampaignRequest& request) const;
RetrieveCallOutcome retrieveCall(const Model::RetrieveCallRequest &request)const;
void retrieveCallAsync(const Model::RetrieveCallRequest& request, const RetrieveCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RetrieveCallOutcomeCallable retrieveCallCallable(const Model::RetrieveCallRequest& request) const;
@@ -835,6 +912,9 @@ namespace AlibabaCloud
StartPredictiveCallOutcome startPredictiveCall(const Model::StartPredictiveCallRequest &request)const;
void startPredictiveCallAsync(const Model::StartPredictiveCallRequest& request, const StartPredictiveCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartPredictiveCallOutcomeCallable startPredictiveCallCallable(const Model::StartPredictiveCallRequest& request) const;
SubmitCampaignOutcome submitCampaign(const Model::SubmitCampaignRequest &request)const;
void submitCampaignAsync(const Model::SubmitCampaignRequest& request, const SubmitCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitCampaignOutcomeCallable submitCampaignCallable(const Model::SubmitCampaignRequest& request) const;
TakeBreakOutcome takeBreak(const Model::TakeBreakRequest &request)const;
void takeBreakAsync(const Model::TakeBreakRequest& request, const TakeBreakAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TakeBreakOutcomeCallable takeBreakCallable(const Model::TakeBreakRequest& request) const;

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_ABORTCAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_ABORTCAMPAIGNREQUEST_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 AbortCampaignRequest : public RpcServiceRequest
{
public:
AbortCampaignRequest();
~AbortCampaignRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
private:
std::string instanceId_;
std::string campaignId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ABORTCAMPAIGNREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_ABORTCAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_ABORTCAMPAIGNRESULT_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 AbortCampaignResult : public ServiceResult
{
public:
AbortCampaignResult();
explicit AbortCampaignResult(const std::string &payload);
~AbortCampaignResult();
std::string getMessage()const;
std::string getHttpStatusCode()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string httpStatusCode_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_ABORTCAMPAIGNRESULT_H_

View File

@@ -0,0 +1,90 @@
/*
* 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_CREATECAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_CREATECAMPAIGNREQUEST_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 CreateCampaignRequest : public RpcServiceRequest
{
public:
CreateCampaignRequest();
~CreateCampaignRequest();
std::string getQueueId()const;
void setQueueId(const std::string& queueId);
std::string getContactFlowId()const;
void setContactFlowId(const std::string& contactFlowId);
bool getSimulation()const;
void setSimulation(bool simulation);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
long getMaxAttemptCount()const;
void setMaxAttemptCount(long maxAttemptCount);
std::string getStrategyParameters()const;
void setStrategyParameters(const std::string& strategyParameters);
std::string getCaseFileKey()const;
void setCaseFileKey(const std::string& caseFileKey);
long getMinAttemptInterval()const;
void setMinAttemptInterval(long minAttemptInterval);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSimulationParameters()const;
void setSimulationParameters(const std::string& simulationParameters);
std::string getName()const;
void setName(const std::string& name);
std::string getStrategyType()const;
void setStrategyType(const std::string& strategyType);
std::string getCaseList()const;
void setCaseList(const std::string& caseList);
std::string getCallableTime()const;
void setCallableTime(const std::string& callableTime);
private:
std::string queueId_;
std::string contactFlowId_;
bool simulation_;
std::string endTime_;
std::string startTime_;
long maxAttemptCount_;
std::string strategyParameters_;
std::string caseFileKey_;
long minAttemptInterval_;
std::string instanceId_;
std::string simulationParameters_;
std::string name_;
std::string strategyType_;
std::string caseList_;
std::string callableTime_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATECAMPAIGNREQUEST_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_CREATECAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_CREATECAMPAIGNRESULT_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 CreateCampaignResult : public ServiceResult
{
public:
CreateCampaignResult();
explicit CreateCampaignResult(const std::string &payload);
~CreateCampaignResult();
std::string getMessage()const;
std::string getCampaignId()const;
long getHttpStatusCode()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string campaignId_;
long httpStatusCode_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_CREATECAMPAIGNRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNREQUEST_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 GetCampaignRequest : public RpcServiceRequest
{
public:
GetCampaignRequest();
~GetCampaignRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
private:
std::string instanceId_;
std::string campaignId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNRESULT_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 GetCampaignResult : public ServiceResult
{
public:
struct Data
{
long casesAborted;
long casesUncompleted;
long maxAttemptCount;
long minAttemptInterval;
std::string strategyType;
long casesConnected;
long planedStartTime;
std::string simulationParameters;
std::string queueId;
long totalCases;
std::string name;
long actualStartTime;
std::string strategyParameters;
bool simulation;
std::string campaignId;
std::string state;
long completedRate;
long actualEndTime;
long planedEndTime;
std::string queueName;
};
GetCampaignResult();
explicit GetCampaignResult(const std::string &payload);
~GetCampaignResult();
long getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_GETCAMPAIGNRESULT_H_

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTATTEMPTSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTATTEMPTSREQUEST_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 ListAttemptsRequest : public RpcServiceRequest
{
public:
ListAttemptsRequest();
~ListAttemptsRequest();
std::string getContactId()const;
void setContactId(const std::string& contactId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
std::string getCallee()const;
void setCallee(const std::string& callee);
long getStartTime()const;
void setStartTime(long startTime);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getQueueId()const;
void setQueueId(const std::string& queueId);
std::string getAgentId()const;
void setAgentId(const std::string& agentId);
long getEndTime()const;
void setEndTime(long endTime);
std::string getCaller()const;
void setCaller(const std::string& caller);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCaseId()const;
void setCaseId(const std::string& caseId);
std::string getAttemptId()const;
void setAttemptId(const std::string& attemptId);
private:
std::string contactId_;
std::string campaignId_;
std::string callee_;
long startTime_;
int pageNumber_;
int pageSize_;
std::string queueId_;
std::string agentId_;
long endTime_;
std::string caller_;
std::string instanceId_;
std::string caseId_;
std::string attemptId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTATTEMPTSREQUEST_H_

View File

@@ -0,0 +1,87 @@
/*
* 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_LISTATTEMPTSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTATTEMPTSRESULT_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 ListAttemptsResult : public ServiceResult
{
public:
struct Data
{
struct AttemptList
{
std::string callee;
long dialTime;
std::string attemptId;
std::string instanceId;
long agentEstablishedTime;
std::string queueId;
std::string caseId;
long dialDuration;
long queueDuration;
std::string contactId;
long ivrDuration;
long enqueueTime;
long agentRingDuration;
long assignAgentTime;
std::string campaignId;
std::string caller;
long customerReleasedTime;
std::string agentId;
long customerEstablishedTime;
long enterIvrTime;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<AttemptList> list;
};
ListAttemptsResult();
explicit ListAttemptsResult(const std::string &payload);
~ListAttemptsResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTATTEMPTSRESULT_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_LISTCAMPAIGNTRENDINGREPORTREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNTRENDINGREPORTREQUEST_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 ListCampaignTrendingReportRequest : public RpcServiceRequest
{
public:
ListCampaignTrendingReportRequest();
~ListCampaignTrendingReportRequest();
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
long getEndTime()const;
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string campaignId_;
long endTime_;
long startTime_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNTRENDINGREPORTREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* 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_LISTCAMPAIGNTRENDINGREPORTRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNTRENDINGREPORTRESULT_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 ListCampaignTrendingReportResult : public ServiceResult
{
public:
struct TrendingList
{
long breakAgents;
long concurrency;
long loggedInAgents;
long readyAgents;
long workAgents;
long talkAgents;
long datetime;
};
ListCampaignTrendingReportResult();
explicit ListCampaignTrendingReportResult(const std::string &payload);
~ListCampaignTrendingReportResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::vector<TrendingList> getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::vector<TrendingList> data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNTRENDINGREPORTRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_LISTCAMPAIGNSREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNSREQUEST_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 ListCampaignsRequest : public RpcServiceRequest
{
public:
ListCampaignsRequest();
~ListCampaignsRequest();
std::string getActualStartTimeTo()const;
void setActualStartTimeTo(const std::string& actualStartTimeTo);
std::string getQueueId()const;
void setQueueId(const std::string& queueId);
std::string getActualStartTimeFrom()const;
void setActualStartTimeFrom(const std::string& actualStartTimeFrom);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getPlanedStartTimeFrom()const;
void setPlanedStartTimeFrom(const std::string& planedStartTimeFrom);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getName()const;
void setName(const std::string& name);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getPlanedStartTimeTo()const;
void setPlanedStartTimeTo(const std::string& planedStartTimeTo);
std::string getState()const;
void setState(const std::string& state);
private:
std::string actualStartTimeTo_;
std::string queueId_;
std::string actualStartTimeFrom_;
long pageNumber_;
std::string planedStartTimeFrom_;
std::string instanceId_;
std::string name_;
long pageSize_;
std::string planedStartTimeTo_;
std::string state_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNSREQUEST_H_

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNSRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNSRESULT_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 ListCampaignsResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
long casesAborted;
long casesUncompleted;
long maxAttemptCount;
long minAttemptInterval;
std::string strategyType;
long casesConnected;
long planedStartTime;
std::string queueId;
long totalCases;
std::string name;
long actualStartTime;
std::string strategyParameters;
bool simulation;
std::string campaignId;
std::string state;
long completedRate;
long actualEndTime;
long planedEndTime;
std::string queueName;
};
long totalCount;
long pageSize;
long pageNumber;
std::vector<ListItem> list;
};
ListCampaignsResult();
explicit ListCampaignsResult(const std::string &payload);
~ListCampaignsResult();
std::string getMessage()const;
long getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
long httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCAMPAIGNSRESULT_H_

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_LISTCASESREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCASESREQUEST_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 ListCasesRequest : public RpcServiceRequest
{
public:
ListCasesRequest();
~ListCasesRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
long getPageSize()const;
void setPageSize(long pageSize);
long getPageNumber()const;
void setPageNumber(long pageNumber);
private:
std::string instanceId_;
std::string campaignId_;
std::string phoneNumber_;
long pageSize_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCASESREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* 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_LISTCASESRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_LISTCASESRESULT_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 ListCasesResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
std::string expandInfo;
long attemptCount;
std::string abandonType;
std::string state;
std::string failureReason;
std::string phoneNumber;
std::string caseId;
std::string customVariables;
};
long totalCount;
long pageSize;
long pageNumber;
std::vector<ListItem> list;
};
ListCasesResult();
explicit ListCasesResult(const std::string &payload);
~ListCasesResult();
std::string getMessage()const;
long getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
long httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_LISTCASESRESULT_H_

View File

@@ -39,21 +39,21 @@ namespace AlibabaCloud
struct Inbound
{
long totalWorkTime;
long callsRinged;
long totalHoldTime;
long callsRinged;
float averageHoldTime;
long callsOffered;
long maxRingTime;
long callsHold;
long callsOffered;
float satisfactionIndex;
long callsHold;
long totalRingTime;
float handleRate;
long totalTalkTime;
long maxTalkTime;
float satisfactionRate;
long callsAttendedTransferOut;
float averageTalkTime;
long maxHoldTime;
float averageTalkTime;
long satisfactionSurveysOffered;
long callsHandled;
long satisfactionSurveysResponded;
@@ -61,19 +61,19 @@ namespace AlibabaCloud
float averageRingTime;
float averageWorkTime;
long callsBlindTransferOut;
long callsBlindTransferIn;
long maxWorkTime;
long callsBlindTransferIn;
};
struct Outbound
{
long totalDialingTime;
long totalWorkTime;
long callsRinged;
long totalHoldTime;
long callsRinged;
float averageHoldTime;
long maxRingTime;
long callsHold;
float satisfactionIndex;
long callsHold;
long totalRingTime;
float averageDialingTime;
long callsAnswered;
@@ -84,16 +84,16 @@ namespace AlibabaCloud
float satisfactionRate;
long callsAttendedTransferOut;
float answerRate;
float averageTalkTime;
long maxHoldTime;
float averageTalkTime;
long satisfactionSurveysOffered;
long satisfactionSurveysResponded;
long callsAttendedTransferIn;
float averageRingTime;
float averageWorkTime;
long callsBlindTransferOut;
long callsBlindTransferIn;
long maxWorkTime;
long callsBlindTransferIn;
};
struct Overall
{
@@ -102,8 +102,8 @@ namespace AlibabaCloud
long totalCalls;
long totalWorkTime;
long totalHoldTime;
float averageHoldTime;
long satisfactionSurveysOffered;
float averageHoldTime;
float satisfactionIndex;
float averageBreakTime;
long satisfactionSurveysResponded;
@@ -111,19 +111,20 @@ namespace AlibabaCloud
float averageReadyTime;
long totalLoggedInTime;
long maxTalkTime;
float satisfactionRate;
float averageWorkTime;
long maxReadyTime;
float satisfactionRate;
long maxBreakTime;
long maxWorkTime;
float averageTalkTime;
long maxHoldTime;
long maxBreakTime;
float occupancyRate;
long maxHoldTime;
float averageTalkTime;
};
Outbound outbound;
Overall overall;
std::string agentId;
std::string displayId;
std::string agentName;
std::string agentId;
Inbound inbound;
};
int totalCount;

View File

@@ -46,8 +46,8 @@ namespace AlibabaCloud
};
struct UserSkillLevel
{
std::string skillGroupName;
int skillLevel;
std::string skillGroupName;
std::string skillGroupId;
};
std::string loginName;
@@ -58,6 +58,7 @@ namespace AlibabaCloud
bool primaryAccount;
std::string displayName;
std::vector<UserDetail::PhoneNumber> personalOutboundNumberList;
std::string displayId;
std::string mobile;
std::string roleId;
std::string workMode;

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_PAUSECAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_PAUSECAMPAIGNREQUEST_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 PauseCampaignRequest : public RpcServiceRequest
{
public:
PauseCampaignRequest();
~PauseCampaignRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
private:
std::string instanceId_;
std::string campaignId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_PAUSECAMPAIGNREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_PAUSECAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_PAUSECAMPAIGNRESULT_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 PauseCampaignResult : public ServiceResult
{
public:
PauseCampaignResult();
explicit PauseCampaignResult(const std::string &payload);
~PauseCampaignResult();
std::string getMessage()const;
std::string getHttpStatusCode()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string httpStatusCode_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_PAUSECAMPAIGNRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_RESUMECAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_RESUMECAMPAIGNREQUEST_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 ResumeCampaignRequest : public RpcServiceRequest
{
public:
ResumeCampaignRequest();
~ResumeCampaignRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
private:
std::string instanceId_;
std::string campaignId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_RESUMECAMPAIGNREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_RESUMECAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_RESUMECAMPAIGNRESULT_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 ResumeCampaignResult : public ServiceResult
{
public:
ResumeCampaignResult();
explicit ResumeCampaignResult(const std::string &payload);
~ResumeCampaignResult();
std::string getMessage()const;
std::string getHttpStatusCode()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string httpStatusCode_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_RESUMECAMPAIGNRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_CCC_MODEL_SUBMITCAMPAIGNREQUEST_H_
#define ALIBABACLOUD_CCC_MODEL_SUBMITCAMPAIGNREQUEST_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 SubmitCampaignRequest : public RpcServiceRequest
{
public:
SubmitCampaignRequest();
~SubmitCampaignRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCampaignId()const;
void setCampaignId(const std::string& campaignId);
private:
std::string instanceId_;
std::string campaignId_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCAMPAIGNREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_SUBMITCAMPAIGNRESULT_H_
#define ALIBABACLOUD_CCC_MODEL_SUBMITCAMPAIGNRESULT_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 SubmitCampaignResult : public ServiceResult
{
public:
SubmitCampaignResult();
explicit SubmitCampaignResult(const std::string &payload);
~SubmitCampaignResult();
std::string getMessage()const;
std::string getHttpStatusCode()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string httpStatusCode_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CCC_MODEL_SUBMITCAMPAIGNRESULT_H_

View File

@@ -51,6 +51,42 @@ CCCClient::CCCClient(const std::string & accessKeyId, const std::string & access
CCCClient::~CCCClient()
{}
CCCClient::AbortCampaignOutcome CCCClient::abortCampaign(const AbortCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AbortCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AbortCampaignOutcome(AbortCampaignResult(outcome.result()));
else
return AbortCampaignOutcome(outcome.error());
}
void CCCClient::abortCampaignAsync(const AbortCampaignRequest& request, const AbortCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, abortCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::AbortCampaignOutcomeCallable CCCClient::abortCampaignCallable(const AbortCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AbortCampaignOutcome()>>(
[this, request]()
{
return this->abortCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::AddNumbersToSkillGroupOutcome CCCClient::addNumbersToSkillGroup(const AddNumbersToSkillGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +591,42 @@ CCCClient::CompleteAttendedTransferOutcomeCallable CCCClient::completeAttendedTr
return task->get_future();
}
CCCClient::CreateCampaignOutcome CCCClient::createCampaign(const CreateCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCampaignOutcome(CreateCampaignResult(outcome.result()));
else
return CreateCampaignOutcome(outcome.error());
}
void CCCClient::createCampaignAsync(const CreateCampaignRequest& request, const CreateCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::CreateCampaignOutcomeCallable CCCClient::createCampaignCallable(const CreateCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCampaignOutcome()>>(
[this, request]()
{
return this->createCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::CreateInstanceOutcome CCCClient::createInstance(const CreateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,6 +807,42 @@ CCCClient::GetCallDetailRecordOutcomeCallable CCCClient::getCallDetailRecordCall
return task->get_future();
}
CCCClient::GetCampaignOutcome CCCClient::getCampaign(const GetCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetCampaignOutcome(GetCampaignResult(outcome.result()));
else
return GetCampaignOutcome(outcome.error());
}
void CCCClient::getCampaignAsync(const GetCampaignRequest& request, const GetCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::GetCampaignOutcomeCallable CCCClient::getCampaignCallable(const GetCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetCampaignOutcome()>>(
[this, request]()
{
return this->getCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::GetHistoricalCallerReportOutcome CCCClient::getHistoricalCallerReport(const GetHistoricalCallerReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1383,6 +1491,42 @@ CCCClient::ListAgentStateLogsOutcomeCallable CCCClient::listAgentStateLogsCallab
return task->get_future();
}
CCCClient::ListAttemptsOutcome CCCClient::listAttempts(const ListAttemptsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAttemptsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAttemptsOutcome(ListAttemptsResult(outcome.result()));
else
return ListAttemptsOutcome(outcome.error());
}
void CCCClient::listAttemptsAsync(const ListAttemptsRequest& request, const ListAttemptsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAttempts(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListAttemptsOutcomeCallable CCCClient::listAttemptsCallable(const ListAttemptsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAttemptsOutcome()>>(
[this, request]()
{
return this->listAttempts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListBriefSkillGroupsOutcome CCCClient::listBriefSkillGroups(const ListBriefSkillGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1455,6 +1599,114 @@ CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecords
return task->get_future();
}
CCCClient::ListCampaignTrendingReportOutcome CCCClient::listCampaignTrendingReport(const ListCampaignTrendingReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCampaignTrendingReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCampaignTrendingReportOutcome(ListCampaignTrendingReportResult(outcome.result()));
else
return ListCampaignTrendingReportOutcome(outcome.error());
}
void CCCClient::listCampaignTrendingReportAsync(const ListCampaignTrendingReportRequest& request, const ListCampaignTrendingReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCampaignTrendingReport(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListCampaignTrendingReportOutcomeCallable CCCClient::listCampaignTrendingReportCallable(const ListCampaignTrendingReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCampaignTrendingReportOutcome()>>(
[this, request]()
{
return this->listCampaignTrendingReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListCampaignsOutcome CCCClient::listCampaigns(const ListCampaignsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCampaignsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCampaignsOutcome(ListCampaignsResult(outcome.result()));
else
return ListCampaignsOutcome(outcome.error());
}
void CCCClient::listCampaignsAsync(const ListCampaignsRequest& request, const ListCampaignsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCampaigns(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListCampaignsOutcomeCallable CCCClient::listCampaignsCallable(const ListCampaignsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCampaignsOutcome()>>(
[this, request]()
{
return this->listCampaigns(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListCasesOutcome CCCClient::listCases(const ListCasesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCasesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCasesOutcome(ListCasesResult(outcome.result()));
else
return ListCasesOutcome(outcome.error());
}
void CCCClient::listCasesAsync(const ListCasesRequest& request, const ListCasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCases(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ListCasesOutcomeCallable CCCClient::listCasesCallable(const ListCasesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCasesOutcome()>>(
[this, request]()
{
return this->listCases(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::ListConfigItemsOutcome CCCClient::listConfigItems(const ListConfigItemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2715,6 +2967,42 @@ CCCClient::MuteCallOutcomeCallable CCCClient::muteCallCallable(const MuteCallReq
return task->get_future();
}
CCCClient::PauseCampaignOutcome CCCClient::pauseCampaign(const PauseCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PauseCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PauseCampaignOutcome(PauseCampaignResult(outcome.result()));
else
return PauseCampaignOutcome(outcome.error());
}
void CCCClient::pauseCampaignAsync(const PauseCampaignRequest& request, const PauseCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, pauseCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::PauseCampaignOutcomeCallable CCCClient::pauseCampaignCallable(const PauseCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PauseCampaignOutcome()>>(
[this, request]()
{
return this->pauseCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::PickOutboundNumbersOutcome CCCClient::pickOutboundNumbers(const PickOutboundNumbersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3219,6 +3507,42 @@ CCCClient::ResetUserPasswordOutcomeCallable CCCClient::resetUserPasswordCallable
return task->get_future();
}
CCCClient::ResumeCampaignOutcome CCCClient::resumeCampaign(const ResumeCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ResumeCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ResumeCampaignOutcome(ResumeCampaignResult(outcome.result()));
else
return ResumeCampaignOutcome(outcome.error());
}
void CCCClient::resumeCampaignAsync(const ResumeCampaignRequest& request, const ResumeCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, resumeCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::ResumeCampaignOutcomeCallable CCCClient::resumeCampaignCallable(const ResumeCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ResumeCampaignOutcome()>>(
[this, request]()
{
return this->resumeCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::RetrieveCallOutcome CCCClient::retrieveCall(const RetrieveCallRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3579,6 +3903,42 @@ CCCClient::StartPredictiveCallOutcomeCallable CCCClient::startPredictiveCallCall
return task->get_future();
}
CCCClient::SubmitCampaignOutcome CCCClient::submitCampaign(const SubmitCampaignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitCampaignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitCampaignOutcome(SubmitCampaignResult(outcome.result()));
else
return SubmitCampaignOutcome(outcome.error());
}
void CCCClient::submitCampaignAsync(const SubmitCampaignRequest& request, const SubmitCampaignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitCampaign(request), context);
};
asyncExecute(new Runnable(fn));
}
CCCClient::SubmitCampaignOutcomeCallable CCCClient::submitCampaignCallable(const SubmitCampaignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitCampaignOutcome()>>(
[this, request]()
{
return this->submitCampaign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CCCClient::TakeBreakOutcome CCCClient::takeBreak(const TakeBreakRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View 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/AbortCampaignRequest.h>
using AlibabaCloud::CCC::Model::AbortCampaignRequest;
AbortCampaignRequest::AbortCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "AbortCampaign")
{
setMethod(HttpRequest::Method::Post);
}
AbortCampaignRequest::~AbortCampaignRequest()
{}
std::string AbortCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void AbortCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AbortCampaignRequest::getCampaignId()const
{
return campaignId_;
}
void AbortCampaignRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}

View File

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

View File

@@ -0,0 +1,194 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/CreateCampaignRequest.h>
using AlibabaCloud::CCC::Model::CreateCampaignRequest;
CreateCampaignRequest::CreateCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "CreateCampaign")
{
setMethod(HttpRequest::Method::Post);
}
CreateCampaignRequest::~CreateCampaignRequest()
{}
std::string CreateCampaignRequest::getQueueId()const
{
return queueId_;
}
void CreateCampaignRequest::setQueueId(const std::string& queueId)
{
queueId_ = queueId;
setParameter("QueueId", queueId);
}
std::string CreateCampaignRequest::getContactFlowId()const
{
return contactFlowId_;
}
void CreateCampaignRequest::setContactFlowId(const std::string& contactFlowId)
{
contactFlowId_ = contactFlowId;
setParameter("ContactFlowId", contactFlowId);
}
bool CreateCampaignRequest::getSimulation()const
{
return simulation_;
}
void CreateCampaignRequest::setSimulation(bool simulation)
{
simulation_ = simulation;
setParameter("Simulation", simulation ? "true" : "false");
}
std::string CreateCampaignRequest::getEndTime()const
{
return endTime_;
}
void CreateCampaignRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string CreateCampaignRequest::getStartTime()const
{
return startTime_;
}
void CreateCampaignRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long CreateCampaignRequest::getMaxAttemptCount()const
{
return maxAttemptCount_;
}
void CreateCampaignRequest::setMaxAttemptCount(long maxAttemptCount)
{
maxAttemptCount_ = maxAttemptCount;
setParameter("MaxAttemptCount", std::to_string(maxAttemptCount));
}
std::string CreateCampaignRequest::getStrategyParameters()const
{
return strategyParameters_;
}
void CreateCampaignRequest::setStrategyParameters(const std::string& strategyParameters)
{
strategyParameters_ = strategyParameters;
setParameter("StrategyParameters", strategyParameters);
}
std::string CreateCampaignRequest::getCaseFileKey()const
{
return caseFileKey_;
}
void CreateCampaignRequest::setCaseFileKey(const std::string& caseFileKey)
{
caseFileKey_ = caseFileKey;
setParameter("CaseFileKey", caseFileKey);
}
long CreateCampaignRequest::getMinAttemptInterval()const
{
return minAttemptInterval_;
}
void CreateCampaignRequest::setMinAttemptInterval(long minAttemptInterval)
{
minAttemptInterval_ = minAttemptInterval;
setParameter("MinAttemptInterval", std::to_string(minAttemptInterval));
}
std::string CreateCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void CreateCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateCampaignRequest::getSimulationParameters()const
{
return simulationParameters_;
}
void CreateCampaignRequest::setSimulationParameters(const std::string& simulationParameters)
{
simulationParameters_ = simulationParameters;
setParameter("SimulationParameters", simulationParameters);
}
std::string CreateCampaignRequest::getName()const
{
return name_;
}
void CreateCampaignRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateCampaignRequest::getStrategyType()const
{
return strategyType_;
}
void CreateCampaignRequest::setStrategyType(const std::string& strategyType)
{
strategyType_ = strategyType;
setParameter("StrategyType", strategyType);
}
std::string CreateCampaignRequest::getCaseList()const
{
return caseList_;
}
void CreateCampaignRequest::setCaseList(const std::string& caseList)
{
caseList_ = caseList;
setParameter("CaseList", caseList);
}
std::string CreateCampaignRequest::getCallableTime()const
{
return callableTime_;
}
void CreateCampaignRequest::setCallableTime(const std::string& callableTime)
{
callableTime_ = callableTime;
setParameter("CallableTime", callableTime);
}

View File

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

View 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/GetCampaignRequest.h>
using AlibabaCloud::CCC::Model::GetCampaignRequest;
GetCampaignRequest::GetCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "GetCampaign")
{
setMethod(HttpRequest::Method::Post);
}
GetCampaignRequest::~GetCampaignRequest()
{}
std::string GetCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void GetCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetCampaignRequest::getCampaignId()const
{
return campaignId_;
}
void GetCampaignRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}

View File

@@ -0,0 +1,111 @@
/*
* 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/GetCampaignResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
GetCampaignResult::GetCampaignResult() :
ServiceResult()
{}
GetCampaignResult::GetCampaignResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCampaignResult::~GetCampaignResult()
{}
void GetCampaignResult::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["ActualEndTime"].isNull())
data_.actualEndTime = std::stol(dataNode["ActualEndTime"].asString());
if(!dataNode["ActualStartTime"].isNull())
data_.actualStartTime = std::stol(dataNode["ActualStartTime"].asString());
if(!dataNode["CasesAborted"].isNull())
data_.casesAborted = std::stol(dataNode["CasesAborted"].asString());
if(!dataNode["CasesUncompleted"].isNull())
data_.casesUncompleted = std::stol(dataNode["CasesUncompleted"].asString());
if(!dataNode["CasesConnected"].isNull())
data_.casesConnected = std::stol(dataNode["CasesConnected"].asString());
if(!dataNode["CompletedRate"].isNull())
data_.completedRate = std::stol(dataNode["CompletedRate"].asString());
if(!dataNode["MaxAttemptCount"].isNull())
data_.maxAttemptCount = std::stol(dataNode["MaxAttemptCount"].asString());
if(!dataNode["MinAttemptInterval"].isNull())
data_.minAttemptInterval = std::stol(dataNode["MinAttemptInterval"].asString());
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["PlanedEndTime"].isNull())
data_.planedEndTime = std::stol(dataNode["PlanedEndTime"].asString());
if(!dataNode["PlanedStartTime"].isNull())
data_.planedStartTime = std::stol(dataNode["PlanedStartTime"].asString());
if(!dataNode["QueueName"].isNull())
data_.queueName = dataNode["QueueName"].asString();
if(!dataNode["TotalCases"].isNull())
data_.totalCases = std::stol(dataNode["TotalCases"].asString());
if(!dataNode["State"].isNull())
data_.state = dataNode["State"].asString();
if(!dataNode["CampaignId"].isNull())
data_.campaignId = dataNode["CampaignId"].asString();
if(!dataNode["StrategyType"].isNull())
data_.strategyType = dataNode["StrategyType"].asString();
if(!dataNode["StrategyParameters"].isNull())
data_.strategyParameters = dataNode["StrategyParameters"].asString();
if(!dataNode["QueueId"].isNull())
data_.queueId = dataNode["QueueId"].asString();
if(!dataNode["Simulation"].isNull())
data_.simulation = dataNode["Simulation"].asString() == "true";
if(!dataNode["SimulationParameters"].isNull())
data_.simulationParameters = dataNode["SimulationParameters"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stol(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
long GetCampaignResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetCampaignResult::Data GetCampaignResult::getData()const
{
return data_;
}
std::string GetCampaignResult::getCode()const
{
return code_;
}
bool GetCampaignResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,172 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListAttemptsRequest.h>
using AlibabaCloud::CCC::Model::ListAttemptsRequest;
ListAttemptsRequest::ListAttemptsRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListAttempts")
{
setMethod(HttpRequest::Method::Get);
}
ListAttemptsRequest::~ListAttemptsRequest()
{}
std::string ListAttemptsRequest::getContactId()const
{
return contactId_;
}
void ListAttemptsRequest::setContactId(const std::string& contactId)
{
contactId_ = contactId;
setParameter("ContactId", contactId);
}
std::string ListAttemptsRequest::getCampaignId()const
{
return campaignId_;
}
void ListAttemptsRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}
std::string ListAttemptsRequest::getCallee()const
{
return callee_;
}
void ListAttemptsRequest::setCallee(const std::string& callee)
{
callee_ = callee;
setParameter("Callee", callee);
}
long ListAttemptsRequest::getStartTime()const
{
return startTime_;
}
void ListAttemptsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int ListAttemptsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAttemptsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListAttemptsRequest::getPageSize()const
{
return pageSize_;
}
void ListAttemptsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListAttemptsRequest::getQueueId()const
{
return queueId_;
}
void ListAttemptsRequest::setQueueId(const std::string& queueId)
{
queueId_ = queueId;
setParameter("QueueId", queueId);
}
std::string ListAttemptsRequest::getAgentId()const
{
return agentId_;
}
void ListAttemptsRequest::setAgentId(const std::string& agentId)
{
agentId_ = agentId;
setParameter("AgentId", agentId);
}
long ListAttemptsRequest::getEndTime()const
{
return endTime_;
}
void ListAttemptsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string ListAttemptsRequest::getCaller()const
{
return caller_;
}
void ListAttemptsRequest::setCaller(const std::string& caller)
{
caller_ = caller;
setParameter("Caller", caller);
}
std::string ListAttemptsRequest::getInstanceId()const
{
return instanceId_;
}
void ListAttemptsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListAttemptsRequest::getCaseId()const
{
return caseId_;
}
void ListAttemptsRequest::setCaseId(const std::string& caseId)
{
caseId_ = caseId;
setParameter("CaseId", caseId);
}
std::string ListAttemptsRequest::getAttemptId()const
{
return attemptId_;
}
void ListAttemptsRequest::setAttemptId(const std::string& attemptId)
{
attemptId_ = attemptId;
setParameter("AttemptId", attemptId);
}

View File

@@ -0,0 +1,123 @@
/*
* 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/ListAttemptsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListAttemptsResult::ListAttemptsResult() :
ServiceResult()
{}
ListAttemptsResult::ListAttemptsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAttemptsResult::~ListAttemptsResult()
{}
void ListAttemptsResult::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["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
auto allListNode = dataNode["List"]["AttemptList"];
for (auto dataNodeListAttemptList : allListNode)
{
Data::AttemptList attemptListObject;
if(!dataNodeListAttemptList["AttemptId"].isNull())
attemptListObject.attemptId = dataNodeListAttemptList["AttemptId"].asString();
if(!dataNodeListAttemptList["ContactId"].isNull())
attemptListObject.contactId = dataNodeListAttemptList["ContactId"].asString();
if(!dataNodeListAttemptList["CaseId"].isNull())
attemptListObject.caseId = dataNodeListAttemptList["CaseId"].asString();
if(!dataNodeListAttemptList["CampaignId"].isNull())
attemptListObject.campaignId = dataNodeListAttemptList["CampaignId"].asString();
if(!dataNodeListAttemptList["InstanceId"].isNull())
attemptListObject.instanceId = dataNodeListAttemptList["InstanceId"].asString();
if(!dataNodeListAttemptList["QueueId"].isNull())
attemptListObject.queueId = dataNodeListAttemptList["QueueId"].asString();
if(!dataNodeListAttemptList["Caller"].isNull())
attemptListObject.caller = dataNodeListAttemptList["Caller"].asString();
if(!dataNodeListAttemptList["Callee"].isNull())
attemptListObject.callee = dataNodeListAttemptList["Callee"].asString();
if(!dataNodeListAttemptList["AgentId"].isNull())
attemptListObject.agentId = dataNodeListAttemptList["AgentId"].asString();
if(!dataNodeListAttemptList["DialTime"].isNull())
attemptListObject.dialTime = std::stol(dataNodeListAttemptList["DialTime"].asString());
if(!dataNodeListAttemptList["DialDuration"].isNull())
attemptListObject.dialDuration = std::stol(dataNodeListAttemptList["DialDuration"].asString());
if(!dataNodeListAttemptList["CustomerEstablishedTime"].isNull())
attemptListObject.customerEstablishedTime = std::stol(dataNodeListAttemptList["CustomerEstablishedTime"].asString());
if(!dataNodeListAttemptList["CustomerReleasedTime"].isNull())
attemptListObject.customerReleasedTime = std::stol(dataNodeListAttemptList["CustomerReleasedTime"].asString());
if(!dataNodeListAttemptList["EnterIvrTime"].isNull())
attemptListObject.enterIvrTime = std::stol(dataNodeListAttemptList["EnterIvrTime"].asString());
if(!dataNodeListAttemptList["IvrDuration"].isNull())
attemptListObject.ivrDuration = std::stol(dataNodeListAttemptList["IvrDuration"].asString());
if(!dataNodeListAttemptList["EnqueueTime"].isNull())
attemptListObject.enqueueTime = std::stol(dataNodeListAttemptList["EnqueueTime"].asString());
if(!dataNodeListAttemptList["QueueDuration"].isNull())
attemptListObject.queueDuration = std::stol(dataNodeListAttemptList["QueueDuration"].asString());
if(!dataNodeListAttemptList["AssignAgentTime"].isNull())
attemptListObject.assignAgentTime = std::stol(dataNodeListAttemptList["AssignAgentTime"].asString());
if(!dataNodeListAttemptList["AgentRingDuration"].isNull())
attemptListObject.agentRingDuration = std::stol(dataNodeListAttemptList["AgentRingDuration"].asString());
if(!dataNodeListAttemptList["AgentEstablishedTime"].isNull())
attemptListObject.agentEstablishedTime = std::stol(dataNodeListAttemptList["AgentEstablishedTime"].asString());
data_.list.push_back(attemptListObject);
}
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 ListAttemptsResult::getMessage()const
{
return message_;
}
int ListAttemptsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListAttemptsResult::Data ListAttemptsResult::getData()const
{
return data_;
}
std::string ListAttemptsResult::getCode()const
{
return code_;
}

View 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/ListCampaignTrendingReportRequest.h>
using AlibabaCloud::CCC::Model::ListCampaignTrendingReportRequest;
ListCampaignTrendingReportRequest::ListCampaignTrendingReportRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListCampaignTrendingReport")
{
setMethod(HttpRequest::Method::Get);
}
ListCampaignTrendingReportRequest::~ListCampaignTrendingReportRequest()
{}
std::string ListCampaignTrendingReportRequest::getCampaignId()const
{
return campaignId_;
}
void ListCampaignTrendingReportRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}
long ListCampaignTrendingReportRequest::getEndTime()const
{
return endTime_;
}
void ListCampaignTrendingReportRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListCampaignTrendingReportRequest::getStartTime()const
{
return startTime_;
}
void ListCampaignTrendingReportRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string ListCampaignTrendingReportRequest::getInstanceId()const
{
return instanceId_;
}
void ListCampaignTrendingReportRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/ListCampaignTrendingReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListCampaignTrendingReportResult::ListCampaignTrendingReportResult() :
ServiceResult()
{}
ListCampaignTrendingReportResult::ListCampaignTrendingReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCampaignTrendingReportResult::~ListCampaignTrendingReportResult()
{}
void ListCampaignTrendingReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["TrendingList"];
for (auto valueDataTrendingList : allDataNode)
{
TrendingList dataObject;
if(!valueDataTrendingList["Datetime"].isNull())
dataObject.datetime = std::stol(valueDataTrendingList["Datetime"].asString());
if(!valueDataTrendingList["Concurrency"].isNull())
dataObject.concurrency = std::stol(valueDataTrendingList["Concurrency"].asString());
if(!valueDataTrendingList["TalkAgents"].isNull())
dataObject.talkAgents = std::stol(valueDataTrendingList["TalkAgents"].asString());
if(!valueDataTrendingList["ReadyAgents"].isNull())
dataObject.readyAgents = std::stol(valueDataTrendingList["ReadyAgents"].asString());
if(!valueDataTrendingList["WorkAgents"].isNull())
dataObject.workAgents = std::stol(valueDataTrendingList["WorkAgents"].asString());
if(!valueDataTrendingList["LoggedInAgents"].isNull())
dataObject.loggedInAgents = std::stol(valueDataTrendingList["LoggedInAgents"].asString());
if(!valueDataTrendingList["BreakAgents"].isNull())
dataObject.breakAgents = std::stol(valueDataTrendingList["BreakAgents"].asString());
data_.push_back(dataObject);
}
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 ListCampaignTrendingReportResult::getMessage()const
{
return message_;
}
int ListCampaignTrendingReportResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<ListCampaignTrendingReportResult::TrendingList> ListCampaignTrendingReportResult::getData()const
{
return data_;
}
std::string ListCampaignTrendingReportResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/ListCampaignsRequest.h>
using AlibabaCloud::CCC::Model::ListCampaignsRequest;
ListCampaignsRequest::ListCampaignsRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListCampaigns")
{
setMethod(HttpRequest::Method::Post);
}
ListCampaignsRequest::~ListCampaignsRequest()
{}
std::string ListCampaignsRequest::getActualStartTimeTo()const
{
return actualStartTimeTo_;
}
void ListCampaignsRequest::setActualStartTimeTo(const std::string& actualStartTimeTo)
{
actualStartTimeTo_ = actualStartTimeTo;
setParameter("ActualStartTimeTo", actualStartTimeTo);
}
std::string ListCampaignsRequest::getQueueId()const
{
return queueId_;
}
void ListCampaignsRequest::setQueueId(const std::string& queueId)
{
queueId_ = queueId;
setParameter("QueueId", queueId);
}
std::string ListCampaignsRequest::getActualStartTimeFrom()const
{
return actualStartTimeFrom_;
}
void ListCampaignsRequest::setActualStartTimeFrom(const std::string& actualStartTimeFrom)
{
actualStartTimeFrom_ = actualStartTimeFrom;
setParameter("ActualStartTimeFrom", actualStartTimeFrom);
}
long ListCampaignsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCampaignsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCampaignsRequest::getPlanedStartTimeFrom()const
{
return planedStartTimeFrom_;
}
void ListCampaignsRequest::setPlanedStartTimeFrom(const std::string& planedStartTimeFrom)
{
planedStartTimeFrom_ = planedStartTimeFrom;
setParameter("PlanedStartTimeFrom", planedStartTimeFrom);
}
std::string ListCampaignsRequest::getInstanceId()const
{
return instanceId_;
}
void ListCampaignsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListCampaignsRequest::getName()const
{
return name_;
}
void ListCampaignsRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long ListCampaignsRequest::getPageSize()const
{
return pageSize_;
}
void ListCampaignsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCampaignsRequest::getPlanedStartTimeTo()const
{
return planedStartTimeTo_;
}
void ListCampaignsRequest::setPlanedStartTimeTo(const std::string& planedStartTimeTo)
{
planedStartTimeTo_ = planedStartTimeTo;
setParameter("PlanedStartTimeTo", planedStartTimeTo);
}
std::string ListCampaignsRequest::getState()const
{
return state_;
}
void ListCampaignsRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListCampaignsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListCampaignsResult::ListCampaignsResult() :
ServiceResult()
{}
ListCampaignsResult::ListCampaignsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCampaignsResult::~ListCampaignsResult()
{}
void ListCampaignsResult::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::stol(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stol(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["listItem"];
for (auto dataNodeListlistItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListlistItem["ActualEndTime"].isNull())
listItemObject.actualEndTime = std::stol(dataNodeListlistItem["ActualEndTime"].asString());
if(!dataNodeListlistItem["ActualStartTime"].isNull())
listItemObject.actualStartTime = std::stol(dataNodeListlistItem["ActualStartTime"].asString());
if(!dataNodeListlistItem["CasesAborted"].isNull())
listItemObject.casesAborted = std::stol(dataNodeListlistItem["CasesAborted"].asString());
if(!dataNodeListlistItem["CasesUncompleted"].isNull())
listItemObject.casesUncompleted = std::stol(dataNodeListlistItem["CasesUncompleted"].asString());
if(!dataNodeListlistItem["CasesConnected"].isNull())
listItemObject.casesConnected = std::stol(dataNodeListlistItem["CasesConnected"].asString());
if(!dataNodeListlistItem["CompletedRate"].isNull())
listItemObject.completedRate = std::stol(dataNodeListlistItem["CompletedRate"].asString());
if(!dataNodeListlistItem["MaxAttemptCount"].isNull())
listItemObject.maxAttemptCount = std::stol(dataNodeListlistItem["MaxAttemptCount"].asString());
if(!dataNodeListlistItem["MinAttemptInterval"].isNull())
listItemObject.minAttemptInterval = std::stol(dataNodeListlistItem["MinAttemptInterval"].asString());
if(!dataNodeListlistItem["Name"].isNull())
listItemObject.name = dataNodeListlistItem["Name"].asString();
if(!dataNodeListlistItem["PlanedEndTime"].isNull())
listItemObject.planedEndTime = std::stol(dataNodeListlistItem["PlanedEndTime"].asString());
if(!dataNodeListlistItem["PlanedStartTime"].isNull())
listItemObject.planedStartTime = std::stol(dataNodeListlistItem["PlanedStartTime"].asString());
if(!dataNodeListlistItem["QueueName"].isNull())
listItemObject.queueName = dataNodeListlistItem["QueueName"].asString();
if(!dataNodeListlistItem["TotalCases"].isNull())
listItemObject.totalCases = std::stol(dataNodeListlistItem["TotalCases"].asString());
if(!dataNodeListlistItem["State"].isNull())
listItemObject.state = dataNodeListlistItem["State"].asString();
if(!dataNodeListlistItem["CampaignId"].isNull())
listItemObject.campaignId = dataNodeListlistItem["CampaignId"].asString();
if(!dataNodeListlistItem["StrategyType"].isNull())
listItemObject.strategyType = dataNodeListlistItem["StrategyType"].asString();
if(!dataNodeListlistItem["StrategyParameters"].isNull())
listItemObject.strategyParameters = dataNodeListlistItem["StrategyParameters"].asString();
if(!dataNodeListlistItem["QueueId"].isNull())
listItemObject.queueId = dataNodeListlistItem["QueueId"].asString();
if(!dataNodeListlistItem["Simulation"].isNull())
listItemObject.simulation = dataNodeListlistItem["Simulation"].asString() == "true";
data_.list.push_back(listItemObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stol(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ListCampaignsResult::getMessage()const
{
return message_;
}
long ListCampaignsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListCampaignsResult::Data ListCampaignsResult::getData()const
{
return data_;
}
std::string ListCampaignsResult::getCode()const
{
return code_;
}
bool ListCampaignsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListCasesRequest.h>
using AlibabaCloud::CCC::Model::ListCasesRequest;
ListCasesRequest::ListCasesRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ListCases")
{
setMethod(HttpRequest::Method::Post);
}
ListCasesRequest::~ListCasesRequest()
{}
std::string ListCasesRequest::getInstanceId()const
{
return instanceId_;
}
void ListCasesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListCasesRequest::getCampaignId()const
{
return campaignId_;
}
void ListCasesRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}
std::string ListCasesRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void ListCasesRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setParameter("PhoneNumber", phoneNumber);
}
long ListCasesRequest::getPageSize()const
{
return pageSize_;
}
void ListCasesRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListCasesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCasesRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ccc/model/ListCasesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CCC;
using namespace AlibabaCloud::CCC::Model;
ListCasesResult::ListCasesResult() :
ServiceResult()
{}
ListCasesResult::ListCasesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCasesResult::~ListCasesResult()
{}
void ListCasesResult::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::stol(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stol(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allListNode = dataNode["List"]["listItem"];
for (auto dataNodeListlistItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListlistItem["AbandonType"].isNull())
listItemObject.abandonType = dataNodeListlistItem["AbandonType"].asString();
if(!dataNodeListlistItem["AttemptCount"].isNull())
listItemObject.attemptCount = std::stol(dataNodeListlistItem["AttemptCount"].asString());
if(!dataNodeListlistItem["ExpandInfo"].isNull())
listItemObject.expandInfo = dataNodeListlistItem["ExpandInfo"].asString();
if(!dataNodeListlistItem["FailureReason"].isNull())
listItemObject.failureReason = dataNodeListlistItem["FailureReason"].asString();
if(!dataNodeListlistItem["PhoneNumber"].isNull())
listItemObject.phoneNumber = dataNodeListlistItem["PhoneNumber"].asString();
if(!dataNodeListlistItem["State"].isNull())
listItemObject.state = dataNodeListlistItem["State"].asString();
if(!dataNodeListlistItem["CaseId"].isNull())
listItemObject.caseId = dataNodeListlistItem["CaseId"].asString();
if(!dataNodeListlistItem["CustomVariables"].isNull())
listItemObject.customVariables = dataNodeListlistItem["CustomVariables"].asString();
data_.list.push_back(listItemObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stol(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ListCasesResult::getMessage()const
{
return message_;
}
long ListCasesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListCasesResult::Data ListCasesResult::getData()const
{
return data_;
}
std::string ListCasesResult::getCode()const
{
return code_;
}
bool ListCasesResult::getSuccess()const
{
return success_;
}

View File

@@ -50,163 +50,165 @@ void ListHistoricalAgentReportResult::parse(const std::string &payload)
for (auto dataNodeListItems : allListNode)
{
Data::Items itemsObject;
if(!dataNodeListItems["AgentId"].isNull())
itemsObject.agentId = dataNodeListItems["AgentId"].asString();
if(!dataNodeListItems["AgentName"].isNull())
itemsObject.agentName = dataNodeListItems["AgentName"].asString();
if(!dataNodeListItems["AgentId"].isNull())
itemsObject.agentId = dataNodeListItems["AgentId"].asString();
if(!dataNodeListItems["DisplayId"].isNull())
itemsObject.displayId = dataNodeListItems["DisplayId"].asString();
auto inboundNode = value["Inbound"];
if(!inboundNode["AverageHoldTime"].isNull())
itemsObject.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString());
if(!inboundNode["AverageRingTime"].isNull())
itemsObject.inbound.averageRingTime = std::stof(inboundNode["AverageRingTime"].asString());
if(!inboundNode["AverageTalkTime"].isNull())
itemsObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString());
if(!inboundNode["AverageWorkTime"].isNull())
itemsObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString());
if(!inboundNode["CallsAttendedTransferIn"].isNull())
itemsObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString());
if(!inboundNode["CallsAttendedTransferOut"].isNull())
itemsObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString());
if(!inboundNode["CallsBlindTransferIn"].isNull())
itemsObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString());
if(!inboundNode["CallsBlindTransferOut"].isNull())
itemsObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].asString());
if(!inboundNode["CallsHandled"].isNull())
itemsObject.inbound.callsHandled = std::stol(inboundNode["CallsHandled"].asString());
if(!inboundNode["CallsHold"].isNull())
itemsObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString());
if(!inboundNode["CallsOffered"].isNull())
itemsObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
if(!inboundNode["CallsRinged"].isNull())
itemsObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString());
if(!inboundNode["HandleRate"].isNull())
itemsObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString());
if(!inboundNode["MaxHoldTime"].isNull())
itemsObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString());
if(!inboundNode["MaxRingTime"].isNull())
itemsObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString());
if(!inboundNode["MaxTalkTime"].isNull())
itemsObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString());
if(!inboundNode["MaxWorkTime"].isNull())
itemsObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString());
if(!inboundNode["SatisfactionIndex"].isNull())
itemsObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString());
if(!inboundNode["SatisfactionRate"].isNull())
itemsObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].asString());
if(!inboundNode["SatisfactionSurveysOffered"].isNull())
itemsObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString());
if(!inboundNode["SatisfactionSurveysResponded"].isNull())
itemsObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString());
if(!inboundNode["TotalHoldTime"].isNull())
itemsObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString());
if(!inboundNode["TotalRingTime"].isNull())
itemsObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString());
if(!inboundNode["TotalTalkTime"].isNull())
itemsObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString());
if(!inboundNode["TotalWorkTime"].isNull())
itemsObject.inbound.totalWorkTime = std::stol(inboundNode["TotalWorkTime"].asString());
if(!inboundNode["CallsAttendedTransferOut"].isNull())
itemsObject.inbound.callsAttendedTransferOut = std::stol(inboundNode["CallsAttendedTransferOut"].asString());
if(!inboundNode["MaxWorkTime"].isNull())
itemsObject.inbound.maxWorkTime = std::stol(inboundNode["MaxWorkTime"].asString());
if(!inboundNode["TotalHoldTime"].isNull())
itemsObject.inbound.totalHoldTime = std::stol(inboundNode["TotalHoldTime"].asString());
if(!inboundNode["AverageWorkTime"].isNull())
itemsObject.inbound.averageWorkTime = std::stof(inboundNode["AverageWorkTime"].asString());
if(!inboundNode["CallsBlindTransferIn"].isNull())
itemsObject.inbound.callsBlindTransferIn = std::stol(inboundNode["CallsBlindTransferIn"].asString());
if(!inboundNode["SatisfactionIndex"].isNull())
itemsObject.inbound.satisfactionIndex = std::stof(inboundNode["SatisfactionIndex"].asString());
if(!inboundNode["CallsRinged"].isNull())
itemsObject.inbound.callsRinged = std::stol(inboundNode["CallsRinged"].asString());
if(!inboundNode["CallsAttendedTransferIn"].isNull())
itemsObject.inbound.callsAttendedTransferIn = std::stol(inboundNode["CallsAttendedTransferIn"].asString());
if(!inboundNode["CallsBlindTransferOut"].isNull())
itemsObject.inbound.callsBlindTransferOut = std::stol(inboundNode["CallsBlindTransferOut"].asString());
if(!inboundNode["TotalRingTime"].isNull())
itemsObject.inbound.totalRingTime = std::stol(inboundNode["TotalRingTime"].asString());
if(!inboundNode["MaxTalkTime"].isNull())
itemsObject.inbound.maxTalkTime = std::stol(inboundNode["MaxTalkTime"].asString());
if(!inboundNode["MaxRingTime"].isNull())
itemsObject.inbound.maxRingTime = std::stol(inboundNode["MaxRingTime"].asString());
if(!inboundNode["TotalTalkTime"].isNull())
itemsObject.inbound.totalTalkTime = std::stol(inboundNode["TotalTalkTime"].asString());
if(!inboundNode["CallsOffered"].isNull())
itemsObject.inbound.callsOffered = std::stol(inboundNode["CallsOffered"].asString());
if(!inboundNode["MaxHoldTime"].isNull())
itemsObject.inbound.maxHoldTime = std::stol(inboundNode["MaxHoldTime"].asString());
if(!inboundNode["AverageTalkTime"].isNull())
itemsObject.inbound.averageTalkTime = std::stof(inboundNode["AverageTalkTime"].asString());
if(!inboundNode["SatisfactionRate"].isNull())
itemsObject.inbound.satisfactionRate = std::stof(inboundNode["SatisfactionRate"].asString());
if(!inboundNode["CallsHold"].isNull())
itemsObject.inbound.callsHold = std::stol(inboundNode["CallsHold"].asString());
if(!inboundNode["SatisfactionSurveysOffered"].isNull())
itemsObject.inbound.satisfactionSurveysOffered = std::stol(inboundNode["SatisfactionSurveysOffered"].asString());
if(!inboundNode["HandleRate"].isNull())
itemsObject.inbound.handleRate = std::stof(inboundNode["HandleRate"].asString());
if(!inboundNode["SatisfactionSurveysResponded"].isNull())
itemsObject.inbound.satisfactionSurveysResponded = std::stol(inboundNode["SatisfactionSurveysResponded"].asString());
if(!inboundNode["AverageHoldTime"].isNull())
itemsObject.inbound.averageHoldTime = std::stof(inboundNode["AverageHoldTime"].asString());
auto outboundNode = value["Outbound"];
if(!outboundNode["AnswerRate"].isNull())
itemsObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString());
if(!outboundNode["AverageDialingTime"].isNull())
itemsObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString());
if(!outboundNode["AverageHoldTime"].isNull())
itemsObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString());
if(!outboundNode["AverageRingTime"].isNull())
itemsObject.outbound.averageRingTime = std::stof(outboundNode["AverageRingTime"].asString());
if(!outboundNode["AverageTalkTime"].isNull())
itemsObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString());
if(!outboundNode["AverageWorkTime"].isNull())
itemsObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString());
if(!outboundNode["CallsAnswered"].isNull())
itemsObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString());
if(!outboundNode["CallsAttendedTransferIn"].isNull())
itemsObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString());
if(!outboundNode["CallsAttendedTransferOut"].isNull())
itemsObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString());
if(!outboundNode["CallsBlindTransferIn"].isNull())
itemsObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString());
if(!outboundNode["CallsBlindTransferOut"].isNull())
itemsObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString());
if(!outboundNode["CallsDialed"].isNull())
itemsObject.outbound.callsDialed = std::stol(outboundNode["CallsDialed"].asString());
if(!outboundNode["CallsHold"].isNull())
itemsObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString());
if(!outboundNode["CallsRinged"].isNull())
itemsObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString());
if(!outboundNode["MaxDialingTime"].isNull())
itemsObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString());
if(!outboundNode["MaxHoldTime"].isNull())
itemsObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString());
if(!outboundNode["MaxRingTime"].isNull())
itemsObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].asString());
if(!outboundNode["MaxTalkTime"].isNull())
itemsObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString());
if(!outboundNode["CallsAnswered"].isNull())
itemsObject.outbound.callsAnswered = std::stol(outboundNode["CallsAnswered"].asString());
if(!outboundNode["TotalWorkTime"].isNull())
itemsObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString());
if(!outboundNode["CallsAttendedTransferOut"].isNull())
itemsObject.outbound.callsAttendedTransferOut = std::stol(outboundNode["CallsAttendedTransferOut"].asString());
if(!outboundNode["MaxWorkTime"].isNull())
itemsObject.outbound.maxWorkTime = std::stol(outboundNode["MaxWorkTime"].asString());
if(!outboundNode["SatisfactionIndex"].isNull())
itemsObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString());
if(!outboundNode["SatisfactionRate"].isNull())
itemsObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].asString());
if(!outboundNode["SatisfactionSurveysOffered"].isNull())
itemsObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString());
if(!outboundNode["SatisfactionSurveysResponded"].isNull())
itemsObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString());
if(!outboundNode["TotalDialingTime"].isNull())
itemsObject.outbound.totalDialingTime = std::stol(outboundNode["TotalDialingTime"].asString());
if(!outboundNode["TotalHoldTime"].isNull())
itemsObject.outbound.totalHoldTime = std::stol(outboundNode["TotalHoldTime"].asString());
if(!outboundNode["AverageWorkTime"].isNull())
itemsObject.outbound.averageWorkTime = std::stof(outboundNode["AverageWorkTime"].asString());
if(!outboundNode["CallsBlindTransferIn"].isNull())
itemsObject.outbound.callsBlindTransferIn = std::stol(outboundNode["CallsBlindTransferIn"].asString());
if(!outboundNode["SatisfactionIndex"].isNull())
itemsObject.outbound.satisfactionIndex = std::stof(outboundNode["SatisfactionIndex"].asString());
if(!outboundNode["CallsRinged"].isNull())
itemsObject.outbound.callsRinged = std::stol(outboundNode["CallsRinged"].asString());
if(!outboundNode["CallsAttendedTransferIn"].isNull())
itemsObject.outbound.callsAttendedTransferIn = std::stol(outboundNode["CallsAttendedTransferIn"].asString());
if(!outboundNode["CallsBlindTransferOut"].isNull())
itemsObject.outbound.callsBlindTransferOut = std::stol(outboundNode["CallsBlindTransferOut"].asString());
if(!outboundNode["TotalRingTime"].isNull())
itemsObject.outbound.totalRingTime = std::stol(outboundNode["TotalRingTime"].asString());
if(!outboundNode["MaxTalkTime"].isNull())
itemsObject.outbound.maxTalkTime = std::stol(outboundNode["MaxTalkTime"].asString());
if(!outboundNode["MaxRingTime"].isNull())
itemsObject.outbound.maxRingTime = std::stol(outboundNode["MaxRingTime"].asString());
if(!outboundNode["TotalTalkTime"].isNull())
itemsObject.outbound.totalTalkTime = std::stol(outboundNode["TotalTalkTime"].asString());
if(!outboundNode["TotalWorkTime"].isNull())
itemsObject.outbound.totalWorkTime = std::stol(outboundNode["TotalWorkTime"].asString());
if(!outboundNode["MaxDialingTime"].isNull())
itemsObject.outbound.maxDialingTime = std::stol(outboundNode["MaxDialingTime"].asString());
if(!outboundNode["AnswerRate"].isNull())
itemsObject.outbound.answerRate = std::stof(outboundNode["AnswerRate"].asString());
if(!outboundNode["MaxHoldTime"].isNull())
itemsObject.outbound.maxHoldTime = std::stol(outboundNode["MaxHoldTime"].asString());
if(!outboundNode["AverageTalkTime"].isNull())
itemsObject.outbound.averageTalkTime = std::stof(outboundNode["AverageTalkTime"].asString());
if(!outboundNode["SatisfactionRate"].isNull())
itemsObject.outbound.satisfactionRate = std::stof(outboundNode["SatisfactionRate"].asString());
if(!outboundNode["CallsHold"].isNull())
itemsObject.outbound.callsHold = std::stol(outboundNode["CallsHold"].asString());
if(!outboundNode["SatisfactionSurveysOffered"].isNull())
itemsObject.outbound.satisfactionSurveysOffered = std::stol(outboundNode["SatisfactionSurveysOffered"].asString());
if(!outboundNode["SatisfactionSurveysResponded"].isNull())
itemsObject.outbound.satisfactionSurveysResponded = std::stol(outboundNode["SatisfactionSurveysResponded"].asString());
if(!outboundNode["AverageHoldTime"].isNull())
itemsObject.outbound.averageHoldTime = std::stof(outboundNode["AverageHoldTime"].asString());
if(!outboundNode["AverageDialingTime"].isNull())
itemsObject.outbound.averageDialingTime = std::stof(outboundNode["AverageDialingTime"].asString());
auto overallNode = value["Overall"];
if(!overallNode["AverageBreakTime"].isNull())
itemsObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString());
if(!overallNode["AverageHoldTime"].isNull())
itemsObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString());
if(!overallNode["AverageReadyTime"].isNull())
itemsObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString());
if(!overallNode["AverageTalkTime"].isNull())
itemsObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString());
if(!overallNode["AverageWorkTime"].isNull())
itemsObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString());
if(!overallNode["MaxBreakTime"].isNull())
itemsObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString());
if(!overallNode["MaxHoldTime"].isNull())
itemsObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString());
if(!overallNode["MaxReadyTime"].isNull())
itemsObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString());
if(!overallNode["MaxTalkTime"].isNull())
itemsObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString());
if(!overallNode["MaxWorkTime"].isNull())
itemsObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString());
if(!overallNode["TotalTalkTime"].isNull())
itemsObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString());
if(!overallNode["TotalLoggedInTime"].isNull())
itemsObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString());
if(!overallNode["OccupancyRate"].isNull())
itemsObject.overall.occupancyRate = std::stof(overallNode["OccupancyRate"].asString());
if(!overallNode["SatisfactionIndex"].isNull())
itemsObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString());
if(!overallNode["TotalWorkTime"].isNull())
itemsObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString());
if(!overallNode["MaxHoldTime"].isNull())
itemsObject.overall.maxHoldTime = std::stol(overallNode["MaxHoldTime"].asString());
if(!overallNode["MaxWorkTime"].isNull())
itemsObject.overall.maxWorkTime = std::stol(overallNode["MaxWorkTime"].asString());
if(!overallNode["AverageBreakTime"].isNull())
itemsObject.overall.averageBreakTime = std::stof(overallNode["AverageBreakTime"].asString());
if(!overallNode["TotalHoldTime"].isNull())
itemsObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString());
if(!overallNode["SatisfactionRate"].isNull())
itemsObject.overall.satisfactionRate = std::stof(overallNode["SatisfactionRate"].asString());
if(!overallNode["MaxBreakTime"].isNull())
itemsObject.overall.maxBreakTime = std::stol(overallNode["MaxBreakTime"].asString());
if(!overallNode["AverageWorkTime"].isNull())
itemsObject.overall.averageWorkTime = std::stof(overallNode["AverageWorkTime"].asString());
if(!overallNode["AverageTalkTime"].isNull())
itemsObject.overall.averageTalkTime = std::stof(overallNode["AverageTalkTime"].asString());
if(!overallNode["SatisfactionIndex"].isNull())
itemsObject.overall.satisfactionIndex = std::stof(overallNode["SatisfactionIndex"].asString());
if(!overallNode["SatisfactionSurveysOffered"].isNull())
itemsObject.overall.satisfactionSurveysOffered = std::stol(overallNode["SatisfactionSurveysOffered"].asString());
if(!overallNode["SatisfactionSurveysResponded"].isNull())
itemsObject.overall.satisfactionSurveysResponded = std::stol(overallNode["SatisfactionSurveysResponded"].asString());
if(!overallNode["TotalBreakTime"].isNull())
itemsObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString());
if(!overallNode["TotalCalls"].isNull())
itemsObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
if(!overallNode["TotalHoldTime"].isNull())
itemsObject.overall.totalHoldTime = std::stol(overallNode["TotalHoldTime"].asString());
if(!overallNode["TotalLoggedInTime"].isNull())
itemsObject.overall.totalLoggedInTime = std::stol(overallNode["TotalLoggedInTime"].asString());
if(!overallNode["MaxReadyTime"].isNull())
itemsObject.overall.maxReadyTime = std::stol(overallNode["MaxReadyTime"].asString());
if(!overallNode["AverageReadyTime"].isNull())
itemsObject.overall.averageReadyTime = std::stof(overallNode["AverageReadyTime"].asString());
if(!overallNode["AverageHoldTime"].isNull())
itemsObject.overall.averageHoldTime = std::stof(overallNode["AverageHoldTime"].asString());
if(!overallNode["TotalReadyTime"].isNull())
itemsObject.overall.totalReadyTime = std::stol(overallNode["TotalReadyTime"].asString());
if(!overallNode["TotalTalkTime"].isNull())
itemsObject.overall.totalTalkTime = std::stol(overallNode["TotalTalkTime"].asString());
if(!overallNode["TotalWorkTime"].isNull())
itemsObject.overall.totalWorkTime = std::stol(overallNode["TotalWorkTime"].asString());
if(!overallNode["TotalBreakTime"].isNull())
itemsObject.overall.totalBreakTime = std::stol(overallNode["TotalBreakTime"].asString());
if(!overallNode["MaxTalkTime"].isNull())
itemsObject.overall.maxTalkTime = std::stol(overallNode["MaxTalkTime"].asString());
if(!overallNode["TotalCalls"].isNull())
itemsObject.overall.totalCalls = std::stol(overallNode["TotalCalls"].asString());
data_.list.push_back(itemsObject);
}
if(!value["Code"].isNull())

View File

@@ -52,48 +52,50 @@ void ListUsersResult::parse(const std::string &payload)
Data::UserDetail userDetailObject;
if(!dataNodeListUserDetail["DisplayName"].isNull())
userDetailObject.displayName = dataNodeListUserDetail["DisplayName"].asString();
if(!dataNodeListUserDetail["Email"].isNull())
userDetailObject.email = dataNodeListUserDetail["Email"].asString();
if(!dataNodeListUserDetail["LoginName"].isNull())
userDetailObject.loginName = dataNodeListUserDetail["LoginName"].asString();
if(!dataNodeListUserDetail["Mobile"].isNull())
userDetailObject.mobile = dataNodeListUserDetail["Mobile"].asString();
if(!dataNodeListUserDetail["RoleId"].isNull())
userDetailObject.roleId = dataNodeListUserDetail["RoleId"].asString();
if(!dataNodeListUserDetail["RoleName"].isNull())
userDetailObject.roleName = dataNodeListUserDetail["RoleName"].asString();
if(!dataNodeListUserDetail["UserId"].isNull())
userDetailObject.userId = dataNodeListUserDetail["UserId"].asString();
if(!dataNodeListUserDetail["Email"].isNull())
userDetailObject.email = dataNodeListUserDetail["Email"].asString();
if(!dataNodeListUserDetail["WorkMode"].isNull())
userDetailObject.workMode = dataNodeListUserDetail["WorkMode"].asString();
if(!dataNodeListUserDetail["Mobile"].isNull())
userDetailObject.mobile = dataNodeListUserDetail["Mobile"].asString();
if(!dataNodeListUserDetail["UserId"].isNull())
userDetailObject.userId = dataNodeListUserDetail["UserId"].asString();
if(!dataNodeListUserDetail["DisplayId"].isNull())
userDetailObject.displayId = dataNodeListUserDetail["DisplayId"].asString();
if(!dataNodeListUserDetail["RoleName"].isNull())
userDetailObject.roleName = dataNodeListUserDetail["RoleName"].asString();
if(!dataNodeListUserDetail["RoleId"].isNull())
userDetailObject.roleId = dataNodeListUserDetail["RoleId"].asString();
if(!dataNodeListUserDetail["PrimaryAccount"].isNull())
userDetailObject.primaryAccount = dataNodeListUserDetail["PrimaryAccount"].asString() == "true";
auto allPersonalOutboundNumberListNode = dataNodeListUserDetail["PersonalOutboundNumberList"]["PhoneNumber"];
for (auto dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber : allPersonalOutboundNumberListNode)
{
Data::UserDetail::PhoneNumber personalOutboundNumberListObject;
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].isNull())
personalOutboundNumberListObject.number = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].asString();
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Active"].isNull())
personalOutboundNumberListObject.active = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Active"].asString() == "true";
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["City"].isNull())
personalOutboundNumberListObject.city = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["City"].asString();
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].isNull())
personalOutboundNumberListObject.number = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Number"].asString();
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].isNull())
personalOutboundNumberListObject.province = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].asString();
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Usage"].isNull())
personalOutboundNumberListObject.usage = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Usage"].asString();
if(!dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].isNull())
personalOutboundNumberListObject.province = dataNodeListUserDetailPersonalOutboundNumberListPhoneNumber["Province"].asString();
userDetailObject.personalOutboundNumberList.push_back(personalOutboundNumberListObject);
}
auto allSkillLevelListNode = dataNodeListUserDetail["SkillLevelList"]["UserSkillLevel"];
for (auto dataNodeListUserDetailSkillLevelListUserSkillLevel : allSkillLevelListNode)
{
Data::UserDetail::UserSkillLevel skillLevelListObject;
if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].isNull())
skillLevelListObject.skillLevel = std::stoi(dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].asString());
if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupId"].isNull())
skillLevelListObject.skillGroupId = dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupId"].asString();
if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupName"].isNull())
skillLevelListObject.skillGroupName = dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillGroupName"].asString();
if(!dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].isNull())
skillLevelListObject.skillLevel = std::stoi(dataNodeListUserDetailSkillLevelListUserSkillLevel["SkillLevel"].asString());
userDetailObject.skillLevelList.push_back(skillLevelListObject);
}
data_.list.push_back(userDetailObject);

View 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/PauseCampaignRequest.h>
using AlibabaCloud::CCC::Model::PauseCampaignRequest;
PauseCampaignRequest::PauseCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "PauseCampaign")
{
setMethod(HttpRequest::Method::Post);
}
PauseCampaignRequest::~PauseCampaignRequest()
{}
std::string PauseCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void PauseCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string PauseCampaignRequest::getCampaignId()const
{
return campaignId_;
}
void PauseCampaignRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}

View File

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

View 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/ResumeCampaignRequest.h>
using AlibabaCloud::CCC::Model::ResumeCampaignRequest;
ResumeCampaignRequest::ResumeCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "ResumeCampaign")
{
setMethod(HttpRequest::Method::Post);
}
ResumeCampaignRequest::~ResumeCampaignRequest()
{}
std::string ResumeCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void ResumeCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ResumeCampaignRequest::getCampaignId()const
{
return campaignId_;
}
void ResumeCampaignRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}

View File

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

View 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/SubmitCampaignRequest.h>
using AlibabaCloud::CCC::Model::SubmitCampaignRequest;
SubmitCampaignRequest::SubmitCampaignRequest() :
RpcServiceRequest("ccc", "2020-07-01", "SubmitCampaign")
{
setMethod(HttpRequest::Method::Post);
}
SubmitCampaignRequest::~SubmitCampaignRequest()
{}
std::string SubmitCampaignRequest::getInstanceId()const
{
return instanceId_;
}
void SubmitCampaignRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string SubmitCampaignRequest::getCampaignId()const
{
return campaignId_;
}
void SubmitCampaignRequest::setCampaignId(const std::string& campaignId)
{
campaignId_ = campaignId;
setParameter("CampaignId", campaignId);
}

Some files were not shown because too many files have changed in this diff Show More