Compare commits
69 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
353bb56a9b | ||
|
|
c1390eb44e | ||
|
|
e39d422408 | ||
|
|
6c4aa68089 | ||
|
|
de92956a15 | ||
|
|
befec9ee53 | ||
|
|
9ca2a7694b | ||
|
|
caafbf0de9 | ||
|
|
1c7304d44c | ||
|
|
a34003466f | ||
|
|
14dc74bf6a | ||
|
|
2373071165 | ||
|
|
13d4cbf2f9 | ||
|
|
650feae280 | ||
|
|
d1aee32108 | ||
|
|
607556b08a | ||
|
|
28afe651a7 | ||
|
|
096a349c41 | ||
|
|
191dc8eb68 | ||
|
|
7a98ea847f | ||
|
|
d2e8acabaa | ||
|
|
fdda25160a | ||
|
|
96f811507e | ||
|
|
cf62272b5b | ||
|
|
75a15fd95e | ||
|
|
4dea18972d | ||
|
|
a6a706f7bd | ||
|
|
ba89b8f5b6 | ||
|
|
602862cc5e | ||
|
|
914402ac4e | ||
|
|
3a7cca96e3 | ||
|
|
3d527e15e0 | ||
|
|
54a8427771 | ||
|
|
5f1578fdbe | ||
|
|
e4fc46970b | ||
|
|
a6fdb87ef4 | ||
|
|
754add8798 | ||
|
|
1044402e1d | ||
|
|
8cc78b3a3e | ||
|
|
0cf5861ece | ||
|
|
524b68ac01 | ||
|
|
e6902accf9 | ||
|
|
eda4d09d82 | ||
|
|
537988875e | ||
|
|
d6278ad8a3 | ||
|
|
c0e3f6e782 | ||
|
|
8778009aff | ||
|
|
7b81c413a1 | ||
|
|
27a39a83b5 | ||
|
|
c132dd86ae | ||
|
|
f73358f7e8 | ||
|
|
23c07a12a3 | ||
|
|
8e7691c351 | ||
|
|
a5a5b1c4eb | ||
|
|
bdb663548a | ||
|
|
1862b4677d | ||
|
|
34093b78ef | ||
|
|
59616fc161 | ||
|
|
a1f3045396 | ||
|
|
0fe872d573 | ||
|
|
5f50d51531 | ||
|
|
bb60ca8fb6 | ||
|
|
2482eecd86 | ||
|
|
4edd799a79 | ||
|
|
d03f6c2f9d | ||
|
|
47e98acc6f | ||
|
|
4c50775cc9 | ||
|
|
53b22dba98 | ||
|
|
e2b6c81588 |
216
CHANGELOG
216
CHANGELOG
@@ -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.
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
39
alimt/include/alibabacloud/alimt/model/GetUserRequest.h
Normal file
39
alimt/include/alibabacloud/alimt/model/GetUserRequest.h
Normal 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_
|
||||
55
alimt/include/alibabacloud/alimt/model/GetUserResult.h
Normal file
55
alimt/include/alibabacloud/alimt/model/GetUserResult.h
Normal 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_
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
63
alimt/src/model/GetTranslateReportRequest.cc
Normal file
63
alimt/src/model/GetTranslateReportRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
65
alimt/src/model/GetTranslateReportResult.cc
Normal file
65
alimt/src/model/GetTranslateReportResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
27
alimt/src/model/GetUserRequest.cc
Normal file
27
alimt/src/model/GetUserRequest.cc
Normal 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() {}
|
||||
|
||||
65
alimt/src/model/GetUserResult.cc
Normal file
65
alimt/src/model/GetUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
81
alimt/src/model/TranslateImageRequest.cc
Normal file
81
alimt/src/model/TranslateImageRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
70
alimt/src/model/TranslateImageResult.cc
Normal file
70
alimt/src/model/TranslateImageResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
51
ccc/include/alibabacloud/ccc/model/AbortCampaignRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/AbortCampaignRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
55
ccc/include/alibabacloud/ccc/model/AbortCampaignResult.h
Normal file
55
ccc/include/alibabacloud/ccc/model/AbortCampaignResult.h
Normal 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_
|
||||
90
ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h
Normal file
90
ccc/include/alibabacloud/ccc/model/CreateCampaignRequest.h
Normal 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_
|
||||
57
ccc/include/alibabacloud/ccc/model/CreateCampaignResult.h
Normal file
57
ccc/include/alibabacloud/ccc/model/CreateCampaignResult.h
Normal 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_
|
||||
51
ccc/include/alibabacloud/ccc/model/GetCampaignRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/GetCampaignRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
80
ccc/include/alibabacloud/ccc/model/GetCampaignResult.h
Normal file
80
ccc/include/alibabacloud/ccc/model/GetCampaignResult.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
84
ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h
Normal file
84
ccc/include/alibabacloud/ccc/model/ListAttemptsRequest.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
87
ccc/include/alibabacloud/ccc/model/ListAttemptsResult.h
Normal file
87
ccc/include/alibabacloud/ccc/model/ListAttemptsResult.h
Normal 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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
75
ccc/include/alibabacloud/ccc/model/ListCampaignsRequest.h
Normal file
75
ccc/include/alibabacloud/ccc/model/ListCampaignsRequest.h
Normal 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_
|
||||
88
ccc/include/alibabacloud/ccc/model/ListCampaignsResult.h
Normal file
88
ccc/include/alibabacloud/ccc/model/ListCampaignsResult.h
Normal 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_
|
||||
60
ccc/include/alibabacloud/ccc/model/ListCasesRequest.h
Normal file
60
ccc/include/alibabacloud/ccc/model/ListCasesRequest.h
Normal 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_
|
||||
77
ccc/include/alibabacloud/ccc/model/ListCasesResult.h
Normal file
77
ccc/include/alibabacloud/ccc/model/ListCasesResult.h
Normal 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_
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
51
ccc/include/alibabacloud/ccc/model/PauseCampaignRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/PauseCampaignRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
55
ccc/include/alibabacloud/ccc/model/PauseCampaignResult.h
Normal file
55
ccc/include/alibabacloud/ccc/model/PauseCampaignResult.h
Normal 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_
|
||||
51
ccc/include/alibabacloud/ccc/model/ResumeCampaignRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/ResumeCampaignRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
55
ccc/include/alibabacloud/ccc/model/ResumeCampaignResult.h
Normal file
55
ccc/include/alibabacloud/ccc/model/ResumeCampaignResult.h
Normal 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_
|
||||
51
ccc/include/alibabacloud/ccc/model/SubmitCampaignRequest.h
Normal file
51
ccc/include/alibabacloud/ccc/model/SubmitCampaignRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
55
ccc/include/alibabacloud/ccc/model/SubmitCampaignResult.h
Normal file
55
ccc/include/alibabacloud/ccc/model/SubmitCampaignResult.h
Normal 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_
|
||||
@@ -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();
|
||||
|
||||
51
ccc/src/model/AbortCampaignRequest.cc
Normal file
51
ccc/src/model/AbortCampaignRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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);
|
||||
}
|
||||
|
||||
65
ccc/src/model/AbortCampaignResult.cc
Normal file
65
ccc/src/model/AbortCampaignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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_;
|
||||
}
|
||||
|
||||
194
ccc/src/model/CreateCampaignRequest.cc
Normal file
194
ccc/src/model/CreateCampaignRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
72
ccc/src/model/CreateCampaignResult.cc
Normal file
72
ccc/src/model/CreateCampaignResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/GetCampaignRequest.cc
Normal file
51
ccc/src/model/GetCampaignRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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);
|
||||
}
|
||||
|
||||
111
ccc/src/model/GetCampaignResult.cc
Normal file
111
ccc/src/model/GetCampaignResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
172
ccc/src/model/ListAttemptsRequest.cc
Normal file
172
ccc/src/model/ListAttemptsRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
123
ccc/src/model/ListAttemptsResult.cc
Normal file
123
ccc/src/model/ListAttemptsResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
73
ccc/src/model/ListCampaignTrendingReportRequest.cc
Normal file
73
ccc/src/model/ListCampaignTrendingReportRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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);
|
||||
}
|
||||
|
||||
90
ccc/src/model/ListCampaignTrendingReportResult.cc
Normal file
90
ccc/src/model/ListCampaignTrendingReportResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
139
ccc/src/model/ListCampaignsRequest.cc
Normal file
139
ccc/src/model/ListCampaignsRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
128
ccc/src/model/ListCampaignsResult.cc
Normal file
128
ccc/src/model/ListCampaignsResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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_;
|
||||
}
|
||||
|
||||
84
ccc/src/model/ListCasesRequest.cc
Normal file
84
ccc/src/model/ListCasesRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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));
|
||||
}
|
||||
|
||||
106
ccc/src/model/ListCasesResult.cc
Normal file
106
ccc/src/model/ListCasesResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
51
ccc/src/model/PauseCampaignRequest.cc
Normal file
51
ccc/src/model/PauseCampaignRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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);
|
||||
}
|
||||
|
||||
65
ccc/src/model/PauseCampaignResult.cc
Normal file
65
ccc/src/model/PauseCampaignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/ResumeCampaignRequest.cc
Normal file
51
ccc/src/model/ResumeCampaignRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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);
|
||||
}
|
||||
|
||||
65
ccc/src/model/ResumeCampaignResult.cc
Normal file
65
ccc/src/model/ResumeCampaignResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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_;
|
||||
}
|
||||
|
||||
51
ccc/src/model/SubmitCampaignRequest.cc
Normal file
51
ccc/src/model/SubmitCampaignRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ccc/model/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
Reference in New Issue
Block a user