diff --git a/CHANGELOG b/CHANGELOG index 8df58bdb9..1ff2a21db 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-19 Version: 1.36.744 +- Publish multi language sdk. + 2021-05-18 Version: 1.36.743 - Add IoT Studio SetStudioProjectCooperation API. - Add IoT Studio QueryStudioProjectList API. diff --git a/VERSION b/VERSION index b6734e752..342c70398 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.743 \ No newline at end of file +1.36.744 \ No newline at end of file diff --git a/scsp/CMakeLists.txt b/scsp/CMakeLists.txt new file mode 100644 index 000000000..998646bd7 --- /dev/null +++ b/scsp/CMakeLists.txt @@ -0,0 +1,402 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(scsp_public_header + include/alibabacloud/scsp/ScspClient.h + include/alibabacloud/scsp/ScspExport.h ) + +set(scsp_public_header_model + include/alibabacloud/scsp/model/AnswerCallRequest.h + include/alibabacloud/scsp/model/AnswerCallResult.h + include/alibabacloud/scsp/model/AppMessagePushRequest.h + include/alibabacloud/scsp/model/AppMessagePushResult.h + include/alibabacloud/scsp/model/AssignTicketRequest.h + include/alibabacloud/scsp/model/AssignTicketResult.h + include/alibabacloud/scsp/model/ChangeChatAgentStatusRequest.h + include/alibabacloud/scsp/model/ChangeChatAgentStatusResult.h + include/alibabacloud/scsp/model/CloseTicketRequest.h + include/alibabacloud/scsp/model/CloseTicketResult.h + include/alibabacloud/scsp/model/CreateAgentRequest.h + include/alibabacloud/scsp/model/CreateAgentResult.h + include/alibabacloud/scsp/model/CreateCustomerRequest.h + include/alibabacloud/scsp/model/CreateCustomerResult.h + include/alibabacloud/scsp/model/CreateEntityIvrRouteRequest.h + include/alibabacloud/scsp/model/CreateEntityIvrRouteResult.h + include/alibabacloud/scsp/model/CreateOuterCallCenterDataRequest.h + include/alibabacloud/scsp/model/CreateOuterCallCenterDataResult.h + include/alibabacloud/scsp/model/CreateRoleRequest.h + include/alibabacloud/scsp/model/CreateRoleResult.h + include/alibabacloud/scsp/model/CreateSkillGroupRequest.h + include/alibabacloud/scsp/model/CreateSkillGroupResult.h + include/alibabacloud/scsp/model/CreateThirdSsoAgentRequest.h + include/alibabacloud/scsp/model/CreateThirdSsoAgentResult.h + include/alibabacloud/scsp/model/CreateTicketRequest.h + include/alibabacloud/scsp/model/CreateTicketResult.h + include/alibabacloud/scsp/model/CreateTicketWithBizDataRequest.h + include/alibabacloud/scsp/model/CreateTicketWithBizDataResult.h + include/alibabacloud/scsp/model/DeleteAgentRequest.h + include/alibabacloud/scsp/model/DeleteAgentResult.h + include/alibabacloud/scsp/model/DeleteEntityRouteRequest.h + include/alibabacloud/scsp/model/DeleteEntityRouteResult.h + include/alibabacloud/scsp/model/DisableRoleRequest.h + include/alibabacloud/scsp/model/DisableRoleResult.h + include/alibabacloud/scsp/model/EditEntityRouteRequest.h + include/alibabacloud/scsp/model/EditEntityRouteResult.h + include/alibabacloud/scsp/model/EnableRoleRequest.h + include/alibabacloud/scsp/model/EnableRoleResult.h + include/alibabacloud/scsp/model/ExecuteActivityRequest.h + include/alibabacloud/scsp/model/ExecuteActivityResult.h + include/alibabacloud/scsp/model/FetchCallRequest.h + include/alibabacloud/scsp/model/FetchCallResult.h + include/alibabacloud/scsp/model/FinishHotlineServiceRequest.h + include/alibabacloud/scsp/model/FinishHotlineServiceResult.h + include/alibabacloud/scsp/model/GenerateWebSocketSignRequest.h + include/alibabacloud/scsp/model/GenerateWebSocketSignResult.h + include/alibabacloud/scsp/model/GetAgentRequest.h + include/alibabacloud/scsp/model/GetAgentResult.h + include/alibabacloud/scsp/model/GetAuthInfoRequest.h + include/alibabacloud/scsp/model/GetAuthInfoResult.h + include/alibabacloud/scsp/model/GetCMSIdByForeignIdRequest.h + include/alibabacloud/scsp/model/GetCMSIdByForeignIdResult.h + include/alibabacloud/scsp/model/GetCallsPerDayRequest.h + include/alibabacloud/scsp/model/GetCallsPerDayResult.h + include/alibabacloud/scsp/model/GetEntityRouteRequest.h + include/alibabacloud/scsp/model/GetEntityRouteResult.h + include/alibabacloud/scsp/model/GetEntityRouteListRequest.h + include/alibabacloud/scsp/model/GetEntityRouteListResult.h + include/alibabacloud/scsp/model/GetEntityTagRelationRequest.h + include/alibabacloud/scsp/model/GetEntityTagRelationResult.h + include/alibabacloud/scsp/model/GetGrantedRoleIdsRequest.h + include/alibabacloud/scsp/model/GetGrantedRoleIdsResult.h + include/alibabacloud/scsp/model/GetHotlineAgentDetailRequest.h + include/alibabacloud/scsp/model/GetHotlineAgentDetailResult.h + include/alibabacloud/scsp/model/GetHotlineAgentDetailReportRequest.h + include/alibabacloud/scsp/model/GetHotlineAgentDetailReportResult.h + include/alibabacloud/scsp/model/GetHotlineAgentStatusRequest.h + include/alibabacloud/scsp/model/GetHotlineAgentStatusResult.h + include/alibabacloud/scsp/model/GetHotlineGroupDetailReportRequest.h + include/alibabacloud/scsp/model/GetHotlineGroupDetailReportResult.h + include/alibabacloud/scsp/model/GetHotlineWaitingNumberRequest.h + include/alibabacloud/scsp/model/GetHotlineWaitingNumberResult.h + include/alibabacloud/scsp/model/GetNumLocationRequest.h + include/alibabacloud/scsp/model/GetNumLocationResult.h + include/alibabacloud/scsp/model/GetOutbounNumListRequest.h + include/alibabacloud/scsp/model/GetOutbounNumListResult.h + include/alibabacloud/scsp/model/GetOuterCallCenterDataListRequest.h + include/alibabacloud/scsp/model/GetOuterCallCenterDataListResult.h + include/alibabacloud/scsp/model/GetTagListRequest.h + include/alibabacloud/scsp/model/GetTagListResult.h + include/alibabacloud/scsp/model/GetTicketTemplateSchemaRequest.h + include/alibabacloud/scsp/model/GetTicketTemplateSchemaResult.h + include/alibabacloud/scsp/model/GetUserTokenRequest.h + include/alibabacloud/scsp/model/GetUserTokenResult.h + include/alibabacloud/scsp/model/GrantRolesRequest.h + include/alibabacloud/scsp/model/GrantRolesResult.h + include/alibabacloud/scsp/model/HangupCallRequest.h + include/alibabacloud/scsp/model/HangupCallResult.h + include/alibabacloud/scsp/model/HangupThirdCallRequest.h + include/alibabacloud/scsp/model/HangupThirdCallResult.h + include/alibabacloud/scsp/model/HoldCallRequest.h + include/alibabacloud/scsp/model/HoldCallResult.h + include/alibabacloud/scsp/model/JoinThirdCallRequest.h + include/alibabacloud/scsp/model/JoinThirdCallResult.h + include/alibabacloud/scsp/model/ListAgentBySkillGroupIdRequest.h + include/alibabacloud/scsp/model/ListAgentBySkillGroupIdResult.h + include/alibabacloud/scsp/model/ListHotlineRecordRequest.h + include/alibabacloud/scsp/model/ListHotlineRecordResult.h + include/alibabacloud/scsp/model/ListOutboundPhoneNumberRequest.h + include/alibabacloud/scsp/model/ListOutboundPhoneNumberResult.h + include/alibabacloud/scsp/model/ListSkillGroupRequest.h + include/alibabacloud/scsp/model/ListSkillGroupResult.h + include/alibabacloud/scsp/model/QueryHotlineSessionRequest.h + include/alibabacloud/scsp/model/QueryHotlineSessionResult.h + include/alibabacloud/scsp/model/QueryRingDetailListRequest.h + include/alibabacloud/scsp/model/QueryRingDetailListResult.h + include/alibabacloud/scsp/model/QueryServiceConfigRequest.h + include/alibabacloud/scsp/model/QueryServiceConfigResult.h + include/alibabacloud/scsp/model/QuerySkillGroupsRequest.h + include/alibabacloud/scsp/model/QuerySkillGroupsResult.h + include/alibabacloud/scsp/model/QueryTicketActionsRequest.h + include/alibabacloud/scsp/model/QueryTicketActionsResult.h + include/alibabacloud/scsp/model/QueryTicketCountRequest.h + include/alibabacloud/scsp/model/QueryTicketCountResult.h + include/alibabacloud/scsp/model/QueryTicketsRequest.h + include/alibabacloud/scsp/model/QueryTicketsResult.h + include/alibabacloud/scsp/model/RemoveSkillGroupRequest.h + include/alibabacloud/scsp/model/RemoveSkillGroupResult.h + include/alibabacloud/scsp/model/SearchTicketByIdRequest.h + include/alibabacloud/scsp/model/SearchTicketByIdResult.h + include/alibabacloud/scsp/model/SearchTicketByPhoneRequest.h + include/alibabacloud/scsp/model/SearchTicketByPhoneResult.h + include/alibabacloud/scsp/model/SearchTicketListRequest.h + include/alibabacloud/scsp/model/SearchTicketListResult.h + include/alibabacloud/scsp/model/SendHotlineHeartBeatRequest.h + include/alibabacloud/scsp/model/SendHotlineHeartBeatResult.h + include/alibabacloud/scsp/model/SendOutboundCommandRequest.h + include/alibabacloud/scsp/model/SendOutboundCommandResult.h + include/alibabacloud/scsp/model/StartCallRequest.h + include/alibabacloud/scsp/model/StartCallResult.h + include/alibabacloud/scsp/model/StartCallV2Request.h + include/alibabacloud/scsp/model/StartCallV2Result.h + include/alibabacloud/scsp/model/StartChatWorkRequest.h + include/alibabacloud/scsp/model/StartChatWorkResult.h + include/alibabacloud/scsp/model/StartHotlineServiceRequest.h + include/alibabacloud/scsp/model/StartHotlineServiceResult.h + include/alibabacloud/scsp/model/SuspendHotlineServiceRequest.h + include/alibabacloud/scsp/model/SuspendHotlineServiceResult.h + include/alibabacloud/scsp/model/TransferCallToAgentRequest.h + include/alibabacloud/scsp/model/TransferCallToAgentResult.h + include/alibabacloud/scsp/model/TransferCallToPhoneRequest.h + include/alibabacloud/scsp/model/TransferCallToPhoneResult.h + include/alibabacloud/scsp/model/TransferCallToSkillGroupRequest.h + include/alibabacloud/scsp/model/TransferCallToSkillGroupResult.h + include/alibabacloud/scsp/model/TransferToThirdCallRequest.h + include/alibabacloud/scsp/model/TransferToThirdCallResult.h + include/alibabacloud/scsp/model/UpdateAgentRequest.h + include/alibabacloud/scsp/model/UpdateAgentResult.h + include/alibabacloud/scsp/model/UpdateCustomerRequest.h + include/alibabacloud/scsp/model/UpdateCustomerResult.h + include/alibabacloud/scsp/model/UpdateEntityTagRelationRequest.h + include/alibabacloud/scsp/model/UpdateEntityTagRelationResult.h + include/alibabacloud/scsp/model/UpdateRingStatusRequest.h + include/alibabacloud/scsp/model/UpdateRingStatusResult.h + include/alibabacloud/scsp/model/UpdateRoleRequest.h + include/alibabacloud/scsp/model/UpdateRoleResult.h + include/alibabacloud/scsp/model/UpdateSkillGroupRequest.h + include/alibabacloud/scsp/model/UpdateSkillGroupResult.h + include/alibabacloud/scsp/model/UpdateTicketRequest.h + include/alibabacloud/scsp/model/UpdateTicketResult.h ) + +set(scsp_src + src/ScspClient.cc + src/model/AnswerCallRequest.cc + src/model/AnswerCallResult.cc + src/model/AppMessagePushRequest.cc + src/model/AppMessagePushResult.cc + src/model/AssignTicketRequest.cc + src/model/AssignTicketResult.cc + src/model/ChangeChatAgentStatusRequest.cc + src/model/ChangeChatAgentStatusResult.cc + src/model/CloseTicketRequest.cc + src/model/CloseTicketResult.cc + src/model/CreateAgentRequest.cc + src/model/CreateAgentResult.cc + src/model/CreateCustomerRequest.cc + src/model/CreateCustomerResult.cc + src/model/CreateEntityIvrRouteRequest.cc + src/model/CreateEntityIvrRouteResult.cc + src/model/CreateOuterCallCenterDataRequest.cc + src/model/CreateOuterCallCenterDataResult.cc + src/model/CreateRoleRequest.cc + src/model/CreateRoleResult.cc + src/model/CreateSkillGroupRequest.cc + src/model/CreateSkillGroupResult.cc + src/model/CreateThirdSsoAgentRequest.cc + src/model/CreateThirdSsoAgentResult.cc + src/model/CreateTicketRequest.cc + src/model/CreateTicketResult.cc + src/model/CreateTicketWithBizDataRequest.cc + src/model/CreateTicketWithBizDataResult.cc + src/model/DeleteAgentRequest.cc + src/model/DeleteAgentResult.cc + src/model/DeleteEntityRouteRequest.cc + src/model/DeleteEntityRouteResult.cc + src/model/DisableRoleRequest.cc + src/model/DisableRoleResult.cc + src/model/EditEntityRouteRequest.cc + src/model/EditEntityRouteResult.cc + src/model/EnableRoleRequest.cc + src/model/EnableRoleResult.cc + src/model/ExecuteActivityRequest.cc + src/model/ExecuteActivityResult.cc + src/model/FetchCallRequest.cc + src/model/FetchCallResult.cc + src/model/FinishHotlineServiceRequest.cc + src/model/FinishHotlineServiceResult.cc + src/model/GenerateWebSocketSignRequest.cc + src/model/GenerateWebSocketSignResult.cc + src/model/GetAgentRequest.cc + src/model/GetAgentResult.cc + src/model/GetAuthInfoRequest.cc + src/model/GetAuthInfoResult.cc + src/model/GetCMSIdByForeignIdRequest.cc + src/model/GetCMSIdByForeignIdResult.cc + src/model/GetCallsPerDayRequest.cc + src/model/GetCallsPerDayResult.cc + src/model/GetEntityRouteRequest.cc + src/model/GetEntityRouteResult.cc + src/model/GetEntityRouteListRequest.cc + src/model/GetEntityRouteListResult.cc + src/model/GetEntityTagRelationRequest.cc + src/model/GetEntityTagRelationResult.cc + src/model/GetGrantedRoleIdsRequest.cc + src/model/GetGrantedRoleIdsResult.cc + src/model/GetHotlineAgentDetailRequest.cc + src/model/GetHotlineAgentDetailResult.cc + src/model/GetHotlineAgentDetailReportRequest.cc + src/model/GetHotlineAgentDetailReportResult.cc + src/model/GetHotlineAgentStatusRequest.cc + src/model/GetHotlineAgentStatusResult.cc + src/model/GetHotlineGroupDetailReportRequest.cc + src/model/GetHotlineGroupDetailReportResult.cc + src/model/GetHotlineWaitingNumberRequest.cc + src/model/GetHotlineWaitingNumberResult.cc + src/model/GetNumLocationRequest.cc + src/model/GetNumLocationResult.cc + src/model/GetOutbounNumListRequest.cc + src/model/GetOutbounNumListResult.cc + src/model/GetOuterCallCenterDataListRequest.cc + src/model/GetOuterCallCenterDataListResult.cc + src/model/GetTagListRequest.cc + src/model/GetTagListResult.cc + src/model/GetTicketTemplateSchemaRequest.cc + src/model/GetTicketTemplateSchemaResult.cc + src/model/GetUserTokenRequest.cc + src/model/GetUserTokenResult.cc + src/model/GrantRolesRequest.cc + src/model/GrantRolesResult.cc + src/model/HangupCallRequest.cc + src/model/HangupCallResult.cc + src/model/HangupThirdCallRequest.cc + src/model/HangupThirdCallResult.cc + src/model/HoldCallRequest.cc + src/model/HoldCallResult.cc + src/model/JoinThirdCallRequest.cc + src/model/JoinThirdCallResult.cc + src/model/ListAgentBySkillGroupIdRequest.cc + src/model/ListAgentBySkillGroupIdResult.cc + src/model/ListHotlineRecordRequest.cc + src/model/ListHotlineRecordResult.cc + src/model/ListOutboundPhoneNumberRequest.cc + src/model/ListOutboundPhoneNumberResult.cc + src/model/ListSkillGroupRequest.cc + src/model/ListSkillGroupResult.cc + src/model/QueryHotlineSessionRequest.cc + src/model/QueryHotlineSessionResult.cc + src/model/QueryRingDetailListRequest.cc + src/model/QueryRingDetailListResult.cc + src/model/QueryServiceConfigRequest.cc + src/model/QueryServiceConfigResult.cc + src/model/QuerySkillGroupsRequest.cc + src/model/QuerySkillGroupsResult.cc + src/model/QueryTicketActionsRequest.cc + src/model/QueryTicketActionsResult.cc + src/model/QueryTicketCountRequest.cc + src/model/QueryTicketCountResult.cc + src/model/QueryTicketsRequest.cc + src/model/QueryTicketsResult.cc + src/model/RemoveSkillGroupRequest.cc + src/model/RemoveSkillGroupResult.cc + src/model/SearchTicketByIdRequest.cc + src/model/SearchTicketByIdResult.cc + src/model/SearchTicketByPhoneRequest.cc + src/model/SearchTicketByPhoneResult.cc + src/model/SearchTicketListRequest.cc + src/model/SearchTicketListResult.cc + src/model/SendHotlineHeartBeatRequest.cc + src/model/SendHotlineHeartBeatResult.cc + src/model/SendOutboundCommandRequest.cc + src/model/SendOutboundCommandResult.cc + src/model/StartCallRequest.cc + src/model/StartCallResult.cc + src/model/StartCallV2Request.cc + src/model/StartCallV2Result.cc + src/model/StartChatWorkRequest.cc + src/model/StartChatWorkResult.cc + src/model/StartHotlineServiceRequest.cc + src/model/StartHotlineServiceResult.cc + src/model/SuspendHotlineServiceRequest.cc + src/model/SuspendHotlineServiceResult.cc + src/model/TransferCallToAgentRequest.cc + src/model/TransferCallToAgentResult.cc + src/model/TransferCallToPhoneRequest.cc + src/model/TransferCallToPhoneResult.cc + src/model/TransferCallToSkillGroupRequest.cc + src/model/TransferCallToSkillGroupResult.cc + src/model/TransferToThirdCallRequest.cc + src/model/TransferToThirdCallResult.cc + src/model/UpdateAgentRequest.cc + src/model/UpdateAgentResult.cc + src/model/UpdateCustomerRequest.cc + src/model/UpdateCustomerResult.cc + src/model/UpdateEntityTagRelationRequest.cc + src/model/UpdateEntityTagRelationResult.cc + src/model/UpdateRingStatusRequest.cc + src/model/UpdateRingStatusResult.cc + src/model/UpdateRoleRequest.cc + src/model/UpdateRoleResult.cc + src/model/UpdateSkillGroupRequest.cc + src/model/UpdateSkillGroupResult.cc + src/model/UpdateTicketRequest.cc + src/model/UpdateTicketResult.cc ) + +add_library(scsp ${LIB_TYPE} + ${scsp_public_header} + ${scsp_public_header_model} + ${scsp_src}) + +set_target_properties(scsp + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}scsp + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(scsp + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SCSP_LIBRARY) +endif() + +target_include_directories(scsp + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(scsp + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(scsp + jsoncpp) + target_include_directories(scsp + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(scsp + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(scsp + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(scsp + PRIVATE /usr/include/jsoncpp) + target_link_libraries(scsp + jsoncpp) +endif() + +install(FILES ${scsp_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/scsp) +install(FILES ${scsp_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/scsp/model) +install(TARGETS scsp + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/ScspClient.h b/scsp/include/alibabacloud/scsp/ScspClient.h new file mode 100644 index 000000000..bbd492724 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/ScspClient.h @@ -0,0 +1,686 @@ +/* + * 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_SCSP_SCSPCLIENT_H_ +#define ALIBABACLOUD_SCSP_SCSPCLIENT_H_ + +#include +#include +#include +#include +#include "ScspExport.h" +#include "model/AnswerCallRequest.h" +#include "model/AnswerCallResult.h" +#include "model/AppMessagePushRequest.h" +#include "model/AppMessagePushResult.h" +#include "model/AssignTicketRequest.h" +#include "model/AssignTicketResult.h" +#include "model/ChangeChatAgentStatusRequest.h" +#include "model/ChangeChatAgentStatusResult.h" +#include "model/CloseTicketRequest.h" +#include "model/CloseTicketResult.h" +#include "model/CreateAgentRequest.h" +#include "model/CreateAgentResult.h" +#include "model/CreateCustomerRequest.h" +#include "model/CreateCustomerResult.h" +#include "model/CreateEntityIvrRouteRequest.h" +#include "model/CreateEntityIvrRouteResult.h" +#include "model/CreateOuterCallCenterDataRequest.h" +#include "model/CreateOuterCallCenterDataResult.h" +#include "model/CreateRoleRequest.h" +#include "model/CreateRoleResult.h" +#include "model/CreateSkillGroupRequest.h" +#include "model/CreateSkillGroupResult.h" +#include "model/CreateThirdSsoAgentRequest.h" +#include "model/CreateThirdSsoAgentResult.h" +#include "model/CreateTicketRequest.h" +#include "model/CreateTicketResult.h" +#include "model/CreateTicketWithBizDataRequest.h" +#include "model/CreateTicketWithBizDataResult.h" +#include "model/DeleteAgentRequest.h" +#include "model/DeleteAgentResult.h" +#include "model/DeleteEntityRouteRequest.h" +#include "model/DeleteEntityRouteResult.h" +#include "model/DisableRoleRequest.h" +#include "model/DisableRoleResult.h" +#include "model/EditEntityRouteRequest.h" +#include "model/EditEntityRouteResult.h" +#include "model/EnableRoleRequest.h" +#include "model/EnableRoleResult.h" +#include "model/ExecuteActivityRequest.h" +#include "model/ExecuteActivityResult.h" +#include "model/FetchCallRequest.h" +#include "model/FetchCallResult.h" +#include "model/FinishHotlineServiceRequest.h" +#include "model/FinishHotlineServiceResult.h" +#include "model/GenerateWebSocketSignRequest.h" +#include "model/GenerateWebSocketSignResult.h" +#include "model/GetAgentRequest.h" +#include "model/GetAgentResult.h" +#include "model/GetAuthInfoRequest.h" +#include "model/GetAuthInfoResult.h" +#include "model/GetCMSIdByForeignIdRequest.h" +#include "model/GetCMSIdByForeignIdResult.h" +#include "model/GetCallsPerDayRequest.h" +#include "model/GetCallsPerDayResult.h" +#include "model/GetEntityRouteRequest.h" +#include "model/GetEntityRouteResult.h" +#include "model/GetEntityRouteListRequest.h" +#include "model/GetEntityRouteListResult.h" +#include "model/GetEntityTagRelationRequest.h" +#include "model/GetEntityTagRelationResult.h" +#include "model/GetGrantedRoleIdsRequest.h" +#include "model/GetGrantedRoleIdsResult.h" +#include "model/GetHotlineAgentDetailRequest.h" +#include "model/GetHotlineAgentDetailResult.h" +#include "model/GetHotlineAgentDetailReportRequest.h" +#include "model/GetHotlineAgentDetailReportResult.h" +#include "model/GetHotlineAgentStatusRequest.h" +#include "model/GetHotlineAgentStatusResult.h" +#include "model/GetHotlineGroupDetailReportRequest.h" +#include "model/GetHotlineGroupDetailReportResult.h" +#include "model/GetHotlineWaitingNumberRequest.h" +#include "model/GetHotlineWaitingNumberResult.h" +#include "model/GetNumLocationRequest.h" +#include "model/GetNumLocationResult.h" +#include "model/GetOutbounNumListRequest.h" +#include "model/GetOutbounNumListResult.h" +#include "model/GetOuterCallCenterDataListRequest.h" +#include "model/GetOuterCallCenterDataListResult.h" +#include "model/GetTagListRequest.h" +#include "model/GetTagListResult.h" +#include "model/GetTicketTemplateSchemaRequest.h" +#include "model/GetTicketTemplateSchemaResult.h" +#include "model/GetUserTokenRequest.h" +#include "model/GetUserTokenResult.h" +#include "model/GrantRolesRequest.h" +#include "model/GrantRolesResult.h" +#include "model/HangupCallRequest.h" +#include "model/HangupCallResult.h" +#include "model/HangupThirdCallRequest.h" +#include "model/HangupThirdCallResult.h" +#include "model/HoldCallRequest.h" +#include "model/HoldCallResult.h" +#include "model/JoinThirdCallRequest.h" +#include "model/JoinThirdCallResult.h" +#include "model/ListAgentBySkillGroupIdRequest.h" +#include "model/ListAgentBySkillGroupIdResult.h" +#include "model/ListHotlineRecordRequest.h" +#include "model/ListHotlineRecordResult.h" +#include "model/ListOutboundPhoneNumberRequest.h" +#include "model/ListOutboundPhoneNumberResult.h" +#include "model/ListSkillGroupRequest.h" +#include "model/ListSkillGroupResult.h" +#include "model/QueryHotlineSessionRequest.h" +#include "model/QueryHotlineSessionResult.h" +#include "model/QueryRingDetailListRequest.h" +#include "model/QueryRingDetailListResult.h" +#include "model/QueryServiceConfigRequest.h" +#include "model/QueryServiceConfigResult.h" +#include "model/QuerySkillGroupsRequest.h" +#include "model/QuerySkillGroupsResult.h" +#include "model/QueryTicketActionsRequest.h" +#include "model/QueryTicketActionsResult.h" +#include "model/QueryTicketCountRequest.h" +#include "model/QueryTicketCountResult.h" +#include "model/QueryTicketsRequest.h" +#include "model/QueryTicketsResult.h" +#include "model/RemoveSkillGroupRequest.h" +#include "model/RemoveSkillGroupResult.h" +#include "model/SearchTicketByIdRequest.h" +#include "model/SearchTicketByIdResult.h" +#include "model/SearchTicketByPhoneRequest.h" +#include "model/SearchTicketByPhoneResult.h" +#include "model/SearchTicketListRequest.h" +#include "model/SearchTicketListResult.h" +#include "model/SendHotlineHeartBeatRequest.h" +#include "model/SendHotlineHeartBeatResult.h" +#include "model/SendOutboundCommandRequest.h" +#include "model/SendOutboundCommandResult.h" +#include "model/StartCallRequest.h" +#include "model/StartCallResult.h" +#include "model/StartCallV2Request.h" +#include "model/StartCallV2Result.h" +#include "model/StartChatWorkRequest.h" +#include "model/StartChatWorkResult.h" +#include "model/StartHotlineServiceRequest.h" +#include "model/StartHotlineServiceResult.h" +#include "model/SuspendHotlineServiceRequest.h" +#include "model/SuspendHotlineServiceResult.h" +#include "model/TransferCallToAgentRequest.h" +#include "model/TransferCallToAgentResult.h" +#include "model/TransferCallToPhoneRequest.h" +#include "model/TransferCallToPhoneResult.h" +#include "model/TransferCallToSkillGroupRequest.h" +#include "model/TransferCallToSkillGroupResult.h" +#include "model/TransferToThirdCallRequest.h" +#include "model/TransferToThirdCallResult.h" +#include "model/UpdateAgentRequest.h" +#include "model/UpdateAgentResult.h" +#include "model/UpdateCustomerRequest.h" +#include "model/UpdateCustomerResult.h" +#include "model/UpdateEntityTagRelationRequest.h" +#include "model/UpdateEntityTagRelationResult.h" +#include "model/UpdateRingStatusRequest.h" +#include "model/UpdateRingStatusResult.h" +#include "model/UpdateRoleRequest.h" +#include "model/UpdateRoleResult.h" +#include "model/UpdateSkillGroupRequest.h" +#include "model/UpdateSkillGroupResult.h" +#include "model/UpdateTicketRequest.h" +#include "model/UpdateTicketResult.h" + + +namespace AlibabaCloud +{ + namespace Scsp + { + class ALIBABACLOUD_SCSP_EXPORT ScspClient : public RpcServiceClient + { + public: + typedef Outcome AnswerCallOutcome; + typedef std::future AnswerCallOutcomeCallable; + typedef std::function&)> AnswerCallAsyncHandler; + typedef Outcome AppMessagePushOutcome; + typedef std::future AppMessagePushOutcomeCallable; + typedef std::function&)> AppMessagePushAsyncHandler; + typedef Outcome AssignTicketOutcome; + typedef std::future AssignTicketOutcomeCallable; + typedef std::function&)> AssignTicketAsyncHandler; + typedef Outcome ChangeChatAgentStatusOutcome; + typedef std::future ChangeChatAgentStatusOutcomeCallable; + typedef std::function&)> ChangeChatAgentStatusAsyncHandler; + typedef Outcome CloseTicketOutcome; + typedef std::future CloseTicketOutcomeCallable; + typedef std::function&)> CloseTicketAsyncHandler; + typedef Outcome CreateAgentOutcome; + typedef std::future CreateAgentOutcomeCallable; + typedef std::function&)> CreateAgentAsyncHandler; + typedef Outcome CreateCustomerOutcome; + typedef std::future CreateCustomerOutcomeCallable; + typedef std::function&)> CreateCustomerAsyncHandler; + typedef Outcome CreateEntityIvrRouteOutcome; + typedef std::future CreateEntityIvrRouteOutcomeCallable; + typedef std::function&)> CreateEntityIvrRouteAsyncHandler; + typedef Outcome CreateOuterCallCenterDataOutcome; + typedef std::future CreateOuterCallCenterDataOutcomeCallable; + typedef std::function&)> CreateOuterCallCenterDataAsyncHandler; + typedef Outcome CreateRoleOutcome; + typedef std::future CreateRoleOutcomeCallable; + typedef std::function&)> CreateRoleAsyncHandler; + typedef Outcome CreateSkillGroupOutcome; + typedef std::future CreateSkillGroupOutcomeCallable; + typedef std::function&)> CreateSkillGroupAsyncHandler; + typedef Outcome CreateThirdSsoAgentOutcome; + typedef std::future CreateThirdSsoAgentOutcomeCallable; + typedef std::function&)> CreateThirdSsoAgentAsyncHandler; + typedef Outcome CreateTicketOutcome; + typedef std::future CreateTicketOutcomeCallable; + typedef std::function&)> CreateTicketAsyncHandler; + typedef Outcome CreateTicketWithBizDataOutcome; + typedef std::future CreateTicketWithBizDataOutcomeCallable; + typedef std::function&)> CreateTicketWithBizDataAsyncHandler; + typedef Outcome DeleteAgentOutcome; + typedef std::future DeleteAgentOutcomeCallable; + typedef std::function&)> DeleteAgentAsyncHandler; + typedef Outcome DeleteEntityRouteOutcome; + typedef std::future DeleteEntityRouteOutcomeCallable; + typedef std::function&)> DeleteEntityRouteAsyncHandler; + typedef Outcome DisableRoleOutcome; + typedef std::future DisableRoleOutcomeCallable; + typedef std::function&)> DisableRoleAsyncHandler; + typedef Outcome EditEntityRouteOutcome; + typedef std::future EditEntityRouteOutcomeCallable; + typedef std::function&)> EditEntityRouteAsyncHandler; + typedef Outcome EnableRoleOutcome; + typedef std::future EnableRoleOutcomeCallable; + typedef std::function&)> EnableRoleAsyncHandler; + typedef Outcome ExecuteActivityOutcome; + typedef std::future ExecuteActivityOutcomeCallable; + typedef std::function&)> ExecuteActivityAsyncHandler; + typedef Outcome FetchCallOutcome; + typedef std::future FetchCallOutcomeCallable; + typedef std::function&)> FetchCallAsyncHandler; + typedef Outcome FinishHotlineServiceOutcome; + typedef std::future FinishHotlineServiceOutcomeCallable; + typedef std::function&)> FinishHotlineServiceAsyncHandler; + typedef Outcome GenerateWebSocketSignOutcome; + typedef std::future GenerateWebSocketSignOutcomeCallable; + typedef std::function&)> GenerateWebSocketSignAsyncHandler; + typedef Outcome GetAgentOutcome; + typedef std::future GetAgentOutcomeCallable; + typedef std::function&)> GetAgentAsyncHandler; + typedef Outcome GetAuthInfoOutcome; + typedef std::future GetAuthInfoOutcomeCallable; + typedef std::function&)> GetAuthInfoAsyncHandler; + typedef Outcome GetCMSIdByForeignIdOutcome; + typedef std::future GetCMSIdByForeignIdOutcomeCallable; + typedef std::function&)> GetCMSIdByForeignIdAsyncHandler; + typedef Outcome GetCallsPerDayOutcome; + typedef std::future GetCallsPerDayOutcomeCallable; + typedef std::function&)> GetCallsPerDayAsyncHandler; + typedef Outcome GetEntityRouteOutcome; + typedef std::future GetEntityRouteOutcomeCallable; + typedef std::function&)> GetEntityRouteAsyncHandler; + typedef Outcome GetEntityRouteListOutcome; + typedef std::future GetEntityRouteListOutcomeCallable; + typedef std::function&)> GetEntityRouteListAsyncHandler; + typedef Outcome GetEntityTagRelationOutcome; + typedef std::future GetEntityTagRelationOutcomeCallable; + typedef std::function&)> GetEntityTagRelationAsyncHandler; + typedef Outcome GetGrantedRoleIdsOutcome; + typedef std::future GetGrantedRoleIdsOutcomeCallable; + typedef std::function&)> GetGrantedRoleIdsAsyncHandler; + typedef Outcome GetHotlineAgentDetailOutcome; + typedef std::future GetHotlineAgentDetailOutcomeCallable; + typedef std::function&)> GetHotlineAgentDetailAsyncHandler; + typedef Outcome GetHotlineAgentDetailReportOutcome; + typedef std::future GetHotlineAgentDetailReportOutcomeCallable; + typedef std::function&)> GetHotlineAgentDetailReportAsyncHandler; + typedef Outcome GetHotlineAgentStatusOutcome; + typedef std::future GetHotlineAgentStatusOutcomeCallable; + typedef std::function&)> GetHotlineAgentStatusAsyncHandler; + typedef Outcome GetHotlineGroupDetailReportOutcome; + typedef std::future GetHotlineGroupDetailReportOutcomeCallable; + typedef std::function&)> GetHotlineGroupDetailReportAsyncHandler; + typedef Outcome GetHotlineWaitingNumberOutcome; + typedef std::future GetHotlineWaitingNumberOutcomeCallable; + typedef std::function&)> GetHotlineWaitingNumberAsyncHandler; + typedef Outcome GetNumLocationOutcome; + typedef std::future GetNumLocationOutcomeCallable; + typedef std::function&)> GetNumLocationAsyncHandler; + typedef Outcome GetOutbounNumListOutcome; + typedef std::future GetOutbounNumListOutcomeCallable; + typedef std::function&)> GetOutbounNumListAsyncHandler; + typedef Outcome GetOuterCallCenterDataListOutcome; + typedef std::future GetOuterCallCenterDataListOutcomeCallable; + typedef std::function&)> GetOuterCallCenterDataListAsyncHandler; + typedef Outcome GetTagListOutcome; + typedef std::future GetTagListOutcomeCallable; + typedef std::function&)> GetTagListAsyncHandler; + typedef Outcome GetTicketTemplateSchemaOutcome; + typedef std::future GetTicketTemplateSchemaOutcomeCallable; + typedef std::function&)> GetTicketTemplateSchemaAsyncHandler; + typedef Outcome GetUserTokenOutcome; + typedef std::future GetUserTokenOutcomeCallable; + typedef std::function&)> GetUserTokenAsyncHandler; + typedef Outcome GrantRolesOutcome; + typedef std::future GrantRolesOutcomeCallable; + typedef std::function&)> GrantRolesAsyncHandler; + typedef Outcome HangupCallOutcome; + typedef std::future HangupCallOutcomeCallable; + typedef std::function&)> HangupCallAsyncHandler; + typedef Outcome HangupThirdCallOutcome; + typedef std::future HangupThirdCallOutcomeCallable; + typedef std::function&)> HangupThirdCallAsyncHandler; + typedef Outcome HoldCallOutcome; + typedef std::future HoldCallOutcomeCallable; + typedef std::function&)> HoldCallAsyncHandler; + typedef Outcome JoinThirdCallOutcome; + typedef std::future JoinThirdCallOutcomeCallable; + typedef std::function&)> JoinThirdCallAsyncHandler; + typedef Outcome ListAgentBySkillGroupIdOutcome; + typedef std::future ListAgentBySkillGroupIdOutcomeCallable; + typedef std::function&)> ListAgentBySkillGroupIdAsyncHandler; + typedef Outcome ListHotlineRecordOutcome; + typedef std::future ListHotlineRecordOutcomeCallable; + typedef std::function&)> ListHotlineRecordAsyncHandler; + typedef Outcome ListOutboundPhoneNumberOutcome; + typedef std::future ListOutboundPhoneNumberOutcomeCallable; + typedef std::function&)> ListOutboundPhoneNumberAsyncHandler; + typedef Outcome ListSkillGroupOutcome; + typedef std::future ListSkillGroupOutcomeCallable; + typedef std::function&)> ListSkillGroupAsyncHandler; + typedef Outcome QueryHotlineSessionOutcome; + typedef std::future QueryHotlineSessionOutcomeCallable; + typedef std::function&)> QueryHotlineSessionAsyncHandler; + typedef Outcome QueryRingDetailListOutcome; + typedef std::future QueryRingDetailListOutcomeCallable; + typedef std::function&)> QueryRingDetailListAsyncHandler; + typedef Outcome QueryServiceConfigOutcome; + typedef std::future QueryServiceConfigOutcomeCallable; + typedef std::function&)> QueryServiceConfigAsyncHandler; + typedef Outcome QuerySkillGroupsOutcome; + typedef std::future QuerySkillGroupsOutcomeCallable; + typedef std::function&)> QuerySkillGroupsAsyncHandler; + typedef Outcome QueryTicketActionsOutcome; + typedef std::future QueryTicketActionsOutcomeCallable; + typedef std::function&)> QueryTicketActionsAsyncHandler; + typedef Outcome QueryTicketCountOutcome; + typedef std::future QueryTicketCountOutcomeCallable; + typedef std::function&)> QueryTicketCountAsyncHandler; + typedef Outcome QueryTicketsOutcome; + typedef std::future QueryTicketsOutcomeCallable; + typedef std::function&)> QueryTicketsAsyncHandler; + typedef Outcome RemoveSkillGroupOutcome; + typedef std::future RemoveSkillGroupOutcomeCallable; + typedef std::function&)> RemoveSkillGroupAsyncHandler; + typedef Outcome SearchTicketByIdOutcome; + typedef std::future SearchTicketByIdOutcomeCallable; + typedef std::function&)> SearchTicketByIdAsyncHandler; + typedef Outcome SearchTicketByPhoneOutcome; + typedef std::future SearchTicketByPhoneOutcomeCallable; + typedef std::function&)> SearchTicketByPhoneAsyncHandler; + typedef Outcome SearchTicketListOutcome; + typedef std::future SearchTicketListOutcomeCallable; + typedef std::function&)> SearchTicketListAsyncHandler; + typedef Outcome SendHotlineHeartBeatOutcome; + typedef std::future SendHotlineHeartBeatOutcomeCallable; + typedef std::function&)> SendHotlineHeartBeatAsyncHandler; + typedef Outcome SendOutboundCommandOutcome; + typedef std::future SendOutboundCommandOutcomeCallable; + typedef std::function&)> SendOutboundCommandAsyncHandler; + typedef Outcome StartCallOutcome; + typedef std::future StartCallOutcomeCallable; + typedef std::function&)> StartCallAsyncHandler; + typedef Outcome StartCallV2Outcome; + typedef std::future StartCallV2OutcomeCallable; + typedef std::function&)> StartCallV2AsyncHandler; + typedef Outcome StartChatWorkOutcome; + typedef std::future StartChatWorkOutcomeCallable; + typedef std::function&)> StartChatWorkAsyncHandler; + typedef Outcome StartHotlineServiceOutcome; + typedef std::future StartHotlineServiceOutcomeCallable; + typedef std::function&)> StartHotlineServiceAsyncHandler; + typedef Outcome SuspendHotlineServiceOutcome; + typedef std::future SuspendHotlineServiceOutcomeCallable; + typedef std::function&)> SuspendHotlineServiceAsyncHandler; + typedef Outcome TransferCallToAgentOutcome; + typedef std::future TransferCallToAgentOutcomeCallable; + typedef std::function&)> TransferCallToAgentAsyncHandler; + typedef Outcome TransferCallToPhoneOutcome; + typedef std::future TransferCallToPhoneOutcomeCallable; + typedef std::function&)> TransferCallToPhoneAsyncHandler; + typedef Outcome TransferCallToSkillGroupOutcome; + typedef std::future TransferCallToSkillGroupOutcomeCallable; + typedef std::function&)> TransferCallToSkillGroupAsyncHandler; + typedef Outcome TransferToThirdCallOutcome; + typedef std::future TransferToThirdCallOutcomeCallable; + typedef std::function&)> TransferToThirdCallAsyncHandler; + typedef Outcome UpdateAgentOutcome; + typedef std::future UpdateAgentOutcomeCallable; + typedef std::function&)> UpdateAgentAsyncHandler; + typedef Outcome UpdateCustomerOutcome; + typedef std::future UpdateCustomerOutcomeCallable; + typedef std::function&)> UpdateCustomerAsyncHandler; + typedef Outcome UpdateEntityTagRelationOutcome; + typedef std::future UpdateEntityTagRelationOutcomeCallable; + typedef std::function&)> UpdateEntityTagRelationAsyncHandler; + typedef Outcome UpdateRingStatusOutcome; + typedef std::future UpdateRingStatusOutcomeCallable; + typedef std::function&)> UpdateRingStatusAsyncHandler; + typedef Outcome UpdateRoleOutcome; + typedef std::future UpdateRoleOutcomeCallable; + typedef std::function&)> UpdateRoleAsyncHandler; + typedef Outcome UpdateSkillGroupOutcome; + typedef std::future UpdateSkillGroupOutcomeCallable; + typedef std::function&)> UpdateSkillGroupAsyncHandler; + typedef Outcome UpdateTicketOutcome; + typedef std::future UpdateTicketOutcomeCallable; + typedef std::function&)> UpdateTicketAsyncHandler; + + ScspClient(const Credentials &credentials, const ClientConfiguration &configuration); + ScspClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ScspClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ScspClient(); + AnswerCallOutcome answerCall(const Model::AnswerCallRequest &request)const; + void answerCallAsync(const Model::AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AnswerCallOutcomeCallable answerCallCallable(const Model::AnswerCallRequest& request) const; + AppMessagePushOutcome appMessagePush(const Model::AppMessagePushRequest &request)const; + void appMessagePushAsync(const Model::AppMessagePushRequest& request, const AppMessagePushAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AppMessagePushOutcomeCallable appMessagePushCallable(const Model::AppMessagePushRequest& request) const; + AssignTicketOutcome assignTicket(const Model::AssignTicketRequest &request)const; + void assignTicketAsync(const Model::AssignTicketRequest& request, const AssignTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignTicketOutcomeCallable assignTicketCallable(const Model::AssignTicketRequest& request) const; + ChangeChatAgentStatusOutcome changeChatAgentStatus(const Model::ChangeChatAgentStatusRequest &request)const; + void changeChatAgentStatusAsync(const Model::ChangeChatAgentStatusRequest& request, const ChangeChatAgentStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeChatAgentStatusOutcomeCallable changeChatAgentStatusCallable(const Model::ChangeChatAgentStatusRequest& request) const; + CloseTicketOutcome closeTicket(const Model::CloseTicketRequest &request)const; + void closeTicketAsync(const Model::CloseTicketRequest& request, const CloseTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseTicketOutcomeCallable closeTicketCallable(const Model::CloseTicketRequest& request) const; + CreateAgentOutcome createAgent(const Model::CreateAgentRequest &request)const; + void createAgentAsync(const Model::CreateAgentRequest& request, const CreateAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAgentOutcomeCallable createAgentCallable(const Model::CreateAgentRequest& request) const; + CreateCustomerOutcome createCustomer(const Model::CreateCustomerRequest &request)const; + void createCustomerAsync(const Model::CreateCustomerRequest& request, const CreateCustomerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomerOutcomeCallable createCustomerCallable(const Model::CreateCustomerRequest& request) const; + CreateEntityIvrRouteOutcome createEntityIvrRoute(const Model::CreateEntityIvrRouteRequest &request)const; + void createEntityIvrRouteAsync(const Model::CreateEntityIvrRouteRequest& request, const CreateEntityIvrRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEntityIvrRouteOutcomeCallable createEntityIvrRouteCallable(const Model::CreateEntityIvrRouteRequest& request) const; + CreateOuterCallCenterDataOutcome createOuterCallCenterData(const Model::CreateOuterCallCenterDataRequest &request)const; + void createOuterCallCenterDataAsync(const Model::CreateOuterCallCenterDataRequest& request, const CreateOuterCallCenterDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOuterCallCenterDataOutcomeCallable createOuterCallCenterDataCallable(const Model::CreateOuterCallCenterDataRequest& request) const; + CreateRoleOutcome createRole(const Model::CreateRoleRequest &request)const; + void createRoleAsync(const Model::CreateRoleRequest& request, const CreateRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRoleOutcomeCallable createRoleCallable(const Model::CreateRoleRequest& request) const; + CreateSkillGroupOutcome createSkillGroup(const Model::CreateSkillGroupRequest &request)const; + void createSkillGroupAsync(const Model::CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSkillGroupOutcomeCallable createSkillGroupCallable(const Model::CreateSkillGroupRequest& request) const; + CreateThirdSsoAgentOutcome createThirdSsoAgent(const Model::CreateThirdSsoAgentRequest &request)const; + void createThirdSsoAgentAsync(const Model::CreateThirdSsoAgentRequest& request, const CreateThirdSsoAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateThirdSsoAgentOutcomeCallable createThirdSsoAgentCallable(const Model::CreateThirdSsoAgentRequest& request) const; + CreateTicketOutcome createTicket(const Model::CreateTicketRequest &request)const; + void createTicketAsync(const Model::CreateTicketRequest& request, const CreateTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTicketOutcomeCallable createTicketCallable(const Model::CreateTicketRequest& request) const; + CreateTicketWithBizDataOutcome createTicketWithBizData(const Model::CreateTicketWithBizDataRequest &request)const; + void createTicketWithBizDataAsync(const Model::CreateTicketWithBizDataRequest& request, const CreateTicketWithBizDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTicketWithBizDataOutcomeCallable createTicketWithBizDataCallable(const Model::CreateTicketWithBizDataRequest& request) const; + DeleteAgentOutcome deleteAgent(const Model::DeleteAgentRequest &request)const; + void deleteAgentAsync(const Model::DeleteAgentRequest& request, const DeleteAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAgentOutcomeCallable deleteAgentCallable(const Model::DeleteAgentRequest& request) const; + DeleteEntityRouteOutcome deleteEntityRoute(const Model::DeleteEntityRouteRequest &request)const; + void deleteEntityRouteAsync(const Model::DeleteEntityRouteRequest& request, const DeleteEntityRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEntityRouteOutcomeCallable deleteEntityRouteCallable(const Model::DeleteEntityRouteRequest& request) const; + DisableRoleOutcome disableRole(const Model::DisableRoleRequest &request)const; + void disableRoleAsync(const Model::DisableRoleRequest& request, const DisableRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableRoleOutcomeCallable disableRoleCallable(const Model::DisableRoleRequest& request) const; + EditEntityRouteOutcome editEntityRoute(const Model::EditEntityRouteRequest &request)const; + void editEntityRouteAsync(const Model::EditEntityRouteRequest& request, const EditEntityRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EditEntityRouteOutcomeCallable editEntityRouteCallable(const Model::EditEntityRouteRequest& request) const; + EnableRoleOutcome enableRole(const Model::EnableRoleRequest &request)const; + void enableRoleAsync(const Model::EnableRoleRequest& request, const EnableRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableRoleOutcomeCallable enableRoleCallable(const Model::EnableRoleRequest& request) const; + ExecuteActivityOutcome executeActivity(const Model::ExecuteActivityRequest &request)const; + void executeActivityAsync(const Model::ExecuteActivityRequest& request, const ExecuteActivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteActivityOutcomeCallable executeActivityCallable(const Model::ExecuteActivityRequest& request) const; + FetchCallOutcome fetchCall(const Model::FetchCallRequest &request)const; + void fetchCallAsync(const Model::FetchCallRequest& request, const FetchCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FetchCallOutcomeCallable fetchCallCallable(const Model::FetchCallRequest& request) const; + FinishHotlineServiceOutcome finishHotlineService(const Model::FinishHotlineServiceRequest &request)const; + void finishHotlineServiceAsync(const Model::FinishHotlineServiceRequest& request, const FinishHotlineServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FinishHotlineServiceOutcomeCallable finishHotlineServiceCallable(const Model::FinishHotlineServiceRequest& request) const; + GenerateWebSocketSignOutcome generateWebSocketSign(const Model::GenerateWebSocketSignRequest &request)const; + void generateWebSocketSignAsync(const Model::GenerateWebSocketSignRequest& request, const GenerateWebSocketSignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateWebSocketSignOutcomeCallable generateWebSocketSignCallable(const Model::GenerateWebSocketSignRequest& request) const; + GetAgentOutcome getAgent(const Model::GetAgentRequest &request)const; + void getAgentAsync(const Model::GetAgentRequest& request, const GetAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAgentOutcomeCallable getAgentCallable(const Model::GetAgentRequest& request) const; + GetAuthInfoOutcome getAuthInfo(const Model::GetAuthInfoRequest &request)const; + void getAuthInfoAsync(const Model::GetAuthInfoRequest& request, const GetAuthInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAuthInfoOutcomeCallable getAuthInfoCallable(const Model::GetAuthInfoRequest& request) const; + GetCMSIdByForeignIdOutcome getCMSIdByForeignId(const Model::GetCMSIdByForeignIdRequest &request)const; + void getCMSIdByForeignIdAsync(const Model::GetCMSIdByForeignIdRequest& request, const GetCMSIdByForeignIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCMSIdByForeignIdOutcomeCallable getCMSIdByForeignIdCallable(const Model::GetCMSIdByForeignIdRequest& request) const; + GetCallsPerDayOutcome getCallsPerDay(const Model::GetCallsPerDayRequest &request)const; + void getCallsPerDayAsync(const Model::GetCallsPerDayRequest& request, const GetCallsPerDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCallsPerDayOutcomeCallable getCallsPerDayCallable(const Model::GetCallsPerDayRequest& request) const; + GetEntityRouteOutcome getEntityRoute(const Model::GetEntityRouteRequest &request)const; + void getEntityRouteAsync(const Model::GetEntityRouteRequest& request, const GetEntityRouteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEntityRouteOutcomeCallable getEntityRouteCallable(const Model::GetEntityRouteRequest& request) const; + GetEntityRouteListOutcome getEntityRouteList(const Model::GetEntityRouteListRequest &request)const; + void getEntityRouteListAsync(const Model::GetEntityRouteListRequest& request, const GetEntityRouteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEntityRouteListOutcomeCallable getEntityRouteListCallable(const Model::GetEntityRouteListRequest& request) const; + GetEntityTagRelationOutcome getEntityTagRelation(const Model::GetEntityTagRelationRequest &request)const; + void getEntityTagRelationAsync(const Model::GetEntityTagRelationRequest& request, const GetEntityTagRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEntityTagRelationOutcomeCallable getEntityTagRelationCallable(const Model::GetEntityTagRelationRequest& request) const; + GetGrantedRoleIdsOutcome getGrantedRoleIds(const Model::GetGrantedRoleIdsRequest &request)const; + void getGrantedRoleIdsAsync(const Model::GetGrantedRoleIdsRequest& request, const GetGrantedRoleIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGrantedRoleIdsOutcomeCallable getGrantedRoleIdsCallable(const Model::GetGrantedRoleIdsRequest& request) const; + GetHotlineAgentDetailOutcome getHotlineAgentDetail(const Model::GetHotlineAgentDetailRequest &request)const; + void getHotlineAgentDetailAsync(const Model::GetHotlineAgentDetailRequest& request, const GetHotlineAgentDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHotlineAgentDetailOutcomeCallable getHotlineAgentDetailCallable(const Model::GetHotlineAgentDetailRequest& request) const; + GetHotlineAgentDetailReportOutcome getHotlineAgentDetailReport(const Model::GetHotlineAgentDetailReportRequest &request)const; + void getHotlineAgentDetailReportAsync(const Model::GetHotlineAgentDetailReportRequest& request, const GetHotlineAgentDetailReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHotlineAgentDetailReportOutcomeCallable getHotlineAgentDetailReportCallable(const Model::GetHotlineAgentDetailReportRequest& request) const; + GetHotlineAgentStatusOutcome getHotlineAgentStatus(const Model::GetHotlineAgentStatusRequest &request)const; + void getHotlineAgentStatusAsync(const Model::GetHotlineAgentStatusRequest& request, const GetHotlineAgentStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHotlineAgentStatusOutcomeCallable getHotlineAgentStatusCallable(const Model::GetHotlineAgentStatusRequest& request) const; + GetHotlineGroupDetailReportOutcome getHotlineGroupDetailReport(const Model::GetHotlineGroupDetailReportRequest &request)const; + void getHotlineGroupDetailReportAsync(const Model::GetHotlineGroupDetailReportRequest& request, const GetHotlineGroupDetailReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHotlineGroupDetailReportOutcomeCallable getHotlineGroupDetailReportCallable(const Model::GetHotlineGroupDetailReportRequest& request) const; + GetHotlineWaitingNumberOutcome getHotlineWaitingNumber(const Model::GetHotlineWaitingNumberRequest &request)const; + void getHotlineWaitingNumberAsync(const Model::GetHotlineWaitingNumberRequest& request, const GetHotlineWaitingNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHotlineWaitingNumberOutcomeCallable getHotlineWaitingNumberCallable(const Model::GetHotlineWaitingNumberRequest& request) const; + GetNumLocationOutcome getNumLocation(const Model::GetNumLocationRequest &request)const; + void getNumLocationAsync(const Model::GetNumLocationRequest& request, const GetNumLocationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetNumLocationOutcomeCallable getNumLocationCallable(const Model::GetNumLocationRequest& request) const; + GetOutbounNumListOutcome getOutbounNumList(const Model::GetOutbounNumListRequest &request)const; + void getOutbounNumListAsync(const Model::GetOutbounNumListRequest& request, const GetOutbounNumListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOutbounNumListOutcomeCallable getOutbounNumListCallable(const Model::GetOutbounNumListRequest& request) const; + GetOuterCallCenterDataListOutcome getOuterCallCenterDataList(const Model::GetOuterCallCenterDataListRequest &request)const; + void getOuterCallCenterDataListAsync(const Model::GetOuterCallCenterDataListRequest& request, const GetOuterCallCenterDataListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOuterCallCenterDataListOutcomeCallable getOuterCallCenterDataListCallable(const Model::GetOuterCallCenterDataListRequest& request) const; + GetTagListOutcome getTagList(const Model::GetTagListRequest &request)const; + void getTagListAsync(const Model::GetTagListRequest& request, const GetTagListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagListOutcomeCallable getTagListCallable(const Model::GetTagListRequest& request) const; + GetTicketTemplateSchemaOutcome getTicketTemplateSchema(const Model::GetTicketTemplateSchemaRequest &request)const; + void getTicketTemplateSchemaAsync(const Model::GetTicketTemplateSchemaRequest& request, const GetTicketTemplateSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTicketTemplateSchemaOutcomeCallable getTicketTemplateSchemaCallable(const Model::GetTicketTemplateSchemaRequest& request) const; + GetUserTokenOutcome getUserToken(const Model::GetUserTokenRequest &request)const; + void getUserTokenAsync(const Model::GetUserTokenRequest& request, const GetUserTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserTokenOutcomeCallable getUserTokenCallable(const Model::GetUserTokenRequest& request) const; + GrantRolesOutcome grantRoles(const Model::GrantRolesRequest &request)const; + void grantRolesAsync(const Model::GrantRolesRequest& request, const GrantRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantRolesOutcomeCallable grantRolesCallable(const Model::GrantRolesRequest& request) const; + HangupCallOutcome hangupCall(const Model::HangupCallRequest &request)const; + void hangupCallAsync(const Model::HangupCallRequest& request, const HangupCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HangupCallOutcomeCallable hangupCallCallable(const Model::HangupCallRequest& request) const; + HangupThirdCallOutcome hangupThirdCall(const Model::HangupThirdCallRequest &request)const; + void hangupThirdCallAsync(const Model::HangupThirdCallRequest& request, const HangupThirdCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HangupThirdCallOutcomeCallable hangupThirdCallCallable(const Model::HangupThirdCallRequest& request) const; + HoldCallOutcome holdCall(const Model::HoldCallRequest &request)const; + void holdCallAsync(const Model::HoldCallRequest& request, const HoldCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + HoldCallOutcomeCallable holdCallCallable(const Model::HoldCallRequest& request) const; + JoinThirdCallOutcome joinThirdCall(const Model::JoinThirdCallRequest &request)const; + void joinThirdCallAsync(const Model::JoinThirdCallRequest& request, const JoinThirdCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinThirdCallOutcomeCallable joinThirdCallCallable(const Model::JoinThirdCallRequest& request) const; + ListAgentBySkillGroupIdOutcome listAgentBySkillGroupId(const Model::ListAgentBySkillGroupIdRequest &request)const; + void listAgentBySkillGroupIdAsync(const Model::ListAgentBySkillGroupIdRequest& request, const ListAgentBySkillGroupIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentBySkillGroupIdOutcomeCallable listAgentBySkillGroupIdCallable(const Model::ListAgentBySkillGroupIdRequest& request) const; + ListHotlineRecordOutcome listHotlineRecord(const Model::ListHotlineRecordRequest &request)const; + void listHotlineRecordAsync(const Model::ListHotlineRecordRequest& request, const ListHotlineRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHotlineRecordOutcomeCallable listHotlineRecordCallable(const Model::ListHotlineRecordRequest& request) const; + ListOutboundPhoneNumberOutcome listOutboundPhoneNumber(const Model::ListOutboundPhoneNumberRequest &request)const; + void listOutboundPhoneNumberAsync(const Model::ListOutboundPhoneNumberRequest& request, const ListOutboundPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOutboundPhoneNumberOutcomeCallable listOutboundPhoneNumberCallable(const Model::ListOutboundPhoneNumberRequest& request) const; + ListSkillGroupOutcome listSkillGroup(const Model::ListSkillGroupRequest &request)const; + void listSkillGroupAsync(const Model::ListSkillGroupRequest& request, const ListSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSkillGroupOutcomeCallable listSkillGroupCallable(const Model::ListSkillGroupRequest& request) const; + QueryHotlineSessionOutcome queryHotlineSession(const Model::QueryHotlineSessionRequest &request)const; + void queryHotlineSessionAsync(const Model::QueryHotlineSessionRequest& request, const QueryHotlineSessionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryHotlineSessionOutcomeCallable queryHotlineSessionCallable(const Model::QueryHotlineSessionRequest& request) const; + QueryRingDetailListOutcome queryRingDetailList(const Model::QueryRingDetailListRequest &request)const; + void queryRingDetailListAsync(const Model::QueryRingDetailListRequest& request, const QueryRingDetailListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRingDetailListOutcomeCallable queryRingDetailListCallable(const Model::QueryRingDetailListRequest& request) const; + QueryServiceConfigOutcome queryServiceConfig(const Model::QueryServiceConfigRequest &request)const; + void queryServiceConfigAsync(const Model::QueryServiceConfigRequest& request, const QueryServiceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryServiceConfigOutcomeCallable queryServiceConfigCallable(const Model::QueryServiceConfigRequest& request) const; + QuerySkillGroupsOutcome querySkillGroups(const Model::QuerySkillGroupsRequest &request)const; + void querySkillGroupsAsync(const Model::QuerySkillGroupsRequest& request, const QuerySkillGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySkillGroupsOutcomeCallable querySkillGroupsCallable(const Model::QuerySkillGroupsRequest& request) const; + QueryTicketActionsOutcome queryTicketActions(const Model::QueryTicketActionsRequest &request)const; + void queryTicketActionsAsync(const Model::QueryTicketActionsRequest& request, const QueryTicketActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTicketActionsOutcomeCallable queryTicketActionsCallable(const Model::QueryTicketActionsRequest& request) const; + QueryTicketCountOutcome queryTicketCount(const Model::QueryTicketCountRequest &request)const; + void queryTicketCountAsync(const Model::QueryTicketCountRequest& request, const QueryTicketCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTicketCountOutcomeCallable queryTicketCountCallable(const Model::QueryTicketCountRequest& request) const; + QueryTicketsOutcome queryTickets(const Model::QueryTicketsRequest &request)const; + void queryTicketsAsync(const Model::QueryTicketsRequest& request, const QueryTicketsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTicketsOutcomeCallable queryTicketsCallable(const Model::QueryTicketsRequest& request) const; + RemoveSkillGroupOutcome removeSkillGroup(const Model::RemoveSkillGroupRequest &request)const; + void removeSkillGroupAsync(const Model::RemoveSkillGroupRequest& request, const RemoveSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSkillGroupOutcomeCallable removeSkillGroupCallable(const Model::RemoveSkillGroupRequest& request) const; + SearchTicketByIdOutcome searchTicketById(const Model::SearchTicketByIdRequest &request)const; + void searchTicketByIdAsync(const Model::SearchTicketByIdRequest& request, const SearchTicketByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTicketByIdOutcomeCallable searchTicketByIdCallable(const Model::SearchTicketByIdRequest& request) const; + SearchTicketByPhoneOutcome searchTicketByPhone(const Model::SearchTicketByPhoneRequest &request)const; + void searchTicketByPhoneAsync(const Model::SearchTicketByPhoneRequest& request, const SearchTicketByPhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTicketByPhoneOutcomeCallable searchTicketByPhoneCallable(const Model::SearchTicketByPhoneRequest& request) const; + SearchTicketListOutcome searchTicketList(const Model::SearchTicketListRequest &request)const; + void searchTicketListAsync(const Model::SearchTicketListRequest& request, const SearchTicketListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchTicketListOutcomeCallable searchTicketListCallable(const Model::SearchTicketListRequest& request) const; + SendHotlineHeartBeatOutcome sendHotlineHeartBeat(const Model::SendHotlineHeartBeatRequest &request)const; + void sendHotlineHeartBeatAsync(const Model::SendHotlineHeartBeatRequest& request, const SendHotlineHeartBeatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendHotlineHeartBeatOutcomeCallable sendHotlineHeartBeatCallable(const Model::SendHotlineHeartBeatRequest& request) const; + SendOutboundCommandOutcome sendOutboundCommand(const Model::SendOutboundCommandRequest &request)const; + void sendOutboundCommandAsync(const Model::SendOutboundCommandRequest& request, const SendOutboundCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendOutboundCommandOutcomeCallable sendOutboundCommandCallable(const Model::SendOutboundCommandRequest& request) const; + StartCallOutcome startCall(const Model::StartCallRequest &request)const; + void startCallAsync(const Model::StartCallRequest& request, const StartCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartCallOutcomeCallable startCallCallable(const Model::StartCallRequest& request) const; + StartCallV2Outcome startCallV2(const Model::StartCallV2Request &request)const; + void startCallV2Async(const Model::StartCallV2Request& request, const StartCallV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartCallV2OutcomeCallable startCallV2Callable(const Model::StartCallV2Request& request) const; + StartChatWorkOutcome startChatWork(const Model::StartChatWorkRequest &request)const; + void startChatWorkAsync(const Model::StartChatWorkRequest& request, const StartChatWorkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartChatWorkOutcomeCallable startChatWorkCallable(const Model::StartChatWorkRequest& request) const; + StartHotlineServiceOutcome startHotlineService(const Model::StartHotlineServiceRequest &request)const; + void startHotlineServiceAsync(const Model::StartHotlineServiceRequest& request, const StartHotlineServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartHotlineServiceOutcomeCallable startHotlineServiceCallable(const Model::StartHotlineServiceRequest& request) const; + SuspendHotlineServiceOutcome suspendHotlineService(const Model::SuspendHotlineServiceRequest &request)const; + void suspendHotlineServiceAsync(const Model::SuspendHotlineServiceRequest& request, const SuspendHotlineServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendHotlineServiceOutcomeCallable suspendHotlineServiceCallable(const Model::SuspendHotlineServiceRequest& request) const; + TransferCallToAgentOutcome transferCallToAgent(const Model::TransferCallToAgentRequest &request)const; + void transferCallToAgentAsync(const Model::TransferCallToAgentRequest& request, const TransferCallToAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferCallToAgentOutcomeCallable transferCallToAgentCallable(const Model::TransferCallToAgentRequest& request) const; + TransferCallToPhoneOutcome transferCallToPhone(const Model::TransferCallToPhoneRequest &request)const; + void transferCallToPhoneAsync(const Model::TransferCallToPhoneRequest& request, const TransferCallToPhoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferCallToPhoneOutcomeCallable transferCallToPhoneCallable(const Model::TransferCallToPhoneRequest& request) const; + TransferCallToSkillGroupOutcome transferCallToSkillGroup(const Model::TransferCallToSkillGroupRequest &request)const; + void transferCallToSkillGroupAsync(const Model::TransferCallToSkillGroupRequest& request, const TransferCallToSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferCallToSkillGroupOutcomeCallable transferCallToSkillGroupCallable(const Model::TransferCallToSkillGroupRequest& request) const; + TransferToThirdCallOutcome transferToThirdCall(const Model::TransferToThirdCallRequest &request)const; + void transferToThirdCallAsync(const Model::TransferToThirdCallRequest& request, const TransferToThirdCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferToThirdCallOutcomeCallable transferToThirdCallCallable(const Model::TransferToThirdCallRequest& request) const; + UpdateAgentOutcome updateAgent(const Model::UpdateAgentRequest &request)const; + void updateAgentAsync(const Model::UpdateAgentRequest& request, const UpdateAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAgentOutcomeCallable updateAgentCallable(const Model::UpdateAgentRequest& request) const; + UpdateCustomerOutcome updateCustomer(const Model::UpdateCustomerRequest &request)const; + void updateCustomerAsync(const Model::UpdateCustomerRequest& request, const UpdateCustomerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomerOutcomeCallable updateCustomerCallable(const Model::UpdateCustomerRequest& request) const; + UpdateEntityTagRelationOutcome updateEntityTagRelation(const Model::UpdateEntityTagRelationRequest &request)const; + void updateEntityTagRelationAsync(const Model::UpdateEntityTagRelationRequest& request, const UpdateEntityTagRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEntityTagRelationOutcomeCallable updateEntityTagRelationCallable(const Model::UpdateEntityTagRelationRequest& request) const; + UpdateRingStatusOutcome updateRingStatus(const Model::UpdateRingStatusRequest &request)const; + void updateRingStatusAsync(const Model::UpdateRingStatusRequest& request, const UpdateRingStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRingStatusOutcomeCallable updateRingStatusCallable(const Model::UpdateRingStatusRequest& request) const; + UpdateRoleOutcome updateRole(const Model::UpdateRoleRequest &request)const; + void updateRoleAsync(const Model::UpdateRoleRequest& request, const UpdateRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRoleOutcomeCallable updateRoleCallable(const Model::UpdateRoleRequest& request) const; + UpdateSkillGroupOutcome updateSkillGroup(const Model::UpdateSkillGroupRequest &request)const; + void updateSkillGroupAsync(const Model::UpdateSkillGroupRequest& request, const UpdateSkillGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSkillGroupOutcomeCallable updateSkillGroupCallable(const Model::UpdateSkillGroupRequest& request) const; + UpdateTicketOutcome updateTicket(const Model::UpdateTicketRequest &request)const; + void updateTicketAsync(const Model::UpdateTicketRequest& request, const UpdateTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTicketOutcomeCallable updateTicketCallable(const Model::UpdateTicketRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SCSP_SCSPCLIENT_H_ diff --git a/scsp/include/alibabacloud/scsp/ScspExport.h b/scsp/include/alibabacloud/scsp/ScspExport.h new file mode 100644 index 000000000..db6a2d1ec --- /dev/null +++ b/scsp/include/alibabacloud/scsp/ScspExport.h @@ -0,0 +1,32 @@ +/* + * 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_SCSP_SCSPEXPORT_H_ +#define ALIBABACLOUD_SCSP_SCSPEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SCSP_LIBRARY) +# define ALIBABACLOUD_SCSP_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SCSP_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SCSP_EXPORT +#endif + +#endif // !ALIBABACLOUD_SCSP_SCSPEXPORT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AnswerCallRequest.h b/scsp/include/alibabacloud/scsp/model/AnswerCallRequest.h new file mode 100644 index 000000000..148f89db8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AnswerCallRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_ANSWERCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_ANSWERCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AnswerCallRequest : public RpcServiceRequest + { + + public: + AnswerCallRequest(); + ~AnswerCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ANSWERCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AnswerCallResult.h b/scsp/include/alibabacloud/scsp/model/AnswerCallResult.h new file mode 100644 index 000000000..8adda58c4 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AnswerCallResult.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_SCSP_MODEL_ANSWERCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_ANSWERCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AnswerCallResult : public ServiceResult + { + public: + + + AnswerCallResult(); + explicit AnswerCallResult(const std::string &payload); + ~AnswerCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ANSWERCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AppMessagePushRequest.h b/scsp/include/alibabacloud/scsp/model/AppMessagePushRequest.h new file mode 100644 index 000000000..63e7e422e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AppMessagePushRequest.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_SCSP_MODEL_APPMESSAGEPUSHREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_APPMESSAGEPUSHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AppMessagePushRequest : public RpcServiceRequest + { + + public: + AppMessagePushRequest(); + ~AppMessagePushRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getExpirationTime()const; + void setExpirationTime(long expirationTime); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getStatus()const; + void setStatus(int status); + + private: + std::string instanceId_; + long expirationTime_; + std::string userId_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_APPMESSAGEPUSHREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AppMessagePushResult.h b/scsp/include/alibabacloud/scsp/model/AppMessagePushResult.h new file mode 100644 index 000000000..c143d9e5b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AppMessagePushResult.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_SCSP_MODEL_APPMESSAGEPUSHRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_APPMESSAGEPUSHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AppMessagePushResult : public ServiceResult + { + public: + + + AppMessagePushResult(); + explicit AppMessagePushResult(const std::string &payload); + ~AppMessagePushResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_APPMESSAGEPUSHRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AssignTicketRequest.h b/scsp/include/alibabacloud/scsp/model/AssignTicketRequest.h new file mode 100644 index 000000000..a2a3c4ad8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AssignTicketRequest.h @@ -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_SCSP_MODEL_ASSIGNTICKETREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_ASSIGNTICKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AssignTicketRequest : public RpcServiceRequest + { + + public: + AssignTicketRequest(); + ~AssignTicketRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTicketId()const; + void setTicketId(long ticketId); + long getOperatorId()const; + void setOperatorId(long operatorId); + long getAcceptorId()const; + void setAcceptorId(long acceptorId); + + private: + std::string clientToken_; + std::string instanceId_; + long ticketId_; + long operatorId_; + long acceptorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ASSIGNTICKETREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/AssignTicketResult.h b/scsp/include/alibabacloud/scsp/model/AssignTicketResult.h new file mode 100644 index 000000000..214c9156e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/AssignTicketResult.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_SCSP_MODEL_ASSIGNTICKETRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_ASSIGNTICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT AssignTicketResult : public ServiceResult + { + public: + + + AssignTicketResult(); + explicit AssignTicketResult(const std::string &payload); + ~AssignTicketResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ASSIGNTICKETRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusRequest.h b/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusRequest.h new file mode 100644 index 000000000..543adaa82 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusRequest.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_SCSP_MODEL_CHANGECHATAGENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CHANGECHATAGENTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ChangeChatAgentStatusRequest : public RpcServiceRequest + { + + public: + ChangeChatAgentStatusRequest(); + ~ChangeChatAgentStatusRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getMethod()const; + void setMethod(const std::string& method); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string method_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CHANGECHATAGENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusResult.h b/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusResult.h new file mode 100644 index 000000000..53814fad8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ChangeChatAgentStatusResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_CHANGECHATAGENTSTATUSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CHANGECHATAGENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ChangeChatAgentStatusResult : public ServiceResult + { + public: + + + ChangeChatAgentStatusResult(); + explicit ChangeChatAgentStatusResult(const std::string &payload); + ~ChangeChatAgentStatusResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CHANGECHATAGENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CloseTicketRequest.h b/scsp/include/alibabacloud/scsp/model/CloseTicketRequest.h new file mode 100644 index 000000000..9d8e2cde9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CloseTicketRequest.h @@ -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_SCSP_MODEL_CLOSETICKETREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CLOSETICKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CloseTicketRequest : public RpcServiceRequest + { + + public: + CloseTicketRequest(); + ~CloseTicketRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTicketId()const; + void setTicketId(long ticketId); + std::string getActionItems()const; + void setActionItems(const std::string& actionItems); + long getOperatorId()const; + void setOperatorId(long operatorId); + + private: + std::string clientToken_; + std::string instanceId_; + long ticketId_; + std::string actionItems_; + long operatorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CLOSETICKETREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CloseTicketResult.h b/scsp/include/alibabacloud/scsp/model/CloseTicketResult.h new file mode 100644 index 000000000..619f8c26b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CloseTicketResult.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_SCSP_MODEL_CLOSETICKETRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CLOSETICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CloseTicketResult : public ServiceResult + { + public: + + + CloseTicketResult(); + explicit CloseTicketResult(const std::string &payload); + ~CloseTicketResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CLOSETICKETRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateAgentRequest.h b/scsp/include/alibabacloud/scsp/model/CreateAgentRequest.h new file mode 100644 index 000000000..e1450d69c --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateAgentRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_CREATEAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateAgentRequest : public RpcServiceRequest + { + + public: + CreateAgentRequest(); + ~CreateAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + Array getSkillGroupId()const; + void setSkillGroupId(const Array& skillGroupId); + Array getSkillGroupIdList()const; + void setSkillGroupIdList(const Array& skillGroupIdList); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string displayName_; + Array skillGroupId_; + Array skillGroupIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateAgentResult.h b/scsp/include/alibabacloud/scsp/model/CreateAgentResult.h new file mode 100644 index 000000000..818886e56 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateAgentResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_CREATEAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateAgentResult : public ServiceResult + { + public: + + + CreateAgentResult(); + explicit CreateAgentResult(const std::string &payload); + ~CreateAgentResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateCustomerRequest.h b/scsp/include/alibabacloud/scsp/model/CreateCustomerRequest.h new file mode 100644 index 000000000..16fc4f23d --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateCustomerRequest.h @@ -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_SCSP_MODEL_CREATECUSTOMERREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATECUSTOMERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateCustomerRequest : public RpcServiceRequest + { + + public: + CreateCustomerRequest(); + ~CreateCustomerRequest(); + + std::string getIndustry()const; + void setIndustry(const std::string& industry); + int getOuterIdType()const; + void setOuterIdType(int outerIdType); + std::string getDingding()const; + void setDingding(const std::string& dingding); + std::string getBizType()const; + void setBizType(const std::string& bizType); + std::string getTypeCode()const; + void setTypeCode(const std::string& typeCode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContacter()const; + void setContacter(const std::string& contacter); + long getProdLineId()const; + void setProdLineId(long prodLineId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getName()const; + void setName(const std::string& name); + std::string getManagerName()const; + void setManagerName(const std::string& managerName); + std::string getOuterId()const; + void setOuterId(const std::string& outerId); + std::string getPosition()const; + void setPosition(const std::string& position); + std::string getEmail()const; + void setEmail(const std::string& email); + + private: + std::string industry_; + int outerIdType_; + std::string dingding_; + std::string bizType_; + std::string typeCode_; + std::string instanceId_; + std::string contacter_; + long prodLineId_; + std::string phone_; + std::string name_; + std::string managerName_; + std::string outerId_; + std::string position_; + std::string email_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATECUSTOMERREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateCustomerResult.h b/scsp/include/alibabacloud/scsp/model/CreateCustomerResult.h new file mode 100644 index 000000000..5394c8597 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateCustomerResult.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_SCSP_MODEL_CREATECUSTOMERRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATECUSTOMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateCustomerResult : public ServiceResult + { + public: + + + CreateCustomerResult(); + explicit CreateCustomerResult(const std::string &payload); + ~CreateCustomerResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATECUSTOMERRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteRequest.h b/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteRequest.h new file mode 100644 index 000000000..4a2af1e2f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteRequest.h @@ -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_SCSP_MODEL_CREATEENTITYIVRROUTEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEENTITYIVRROUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateEntityIvrRouteRequest : public RpcServiceRequest + { + + public: + CreateEntityIvrRouteRequest(); + ~CreateEntityIvrRouteRequest(); + + std::string getExtInfo()const; + void setExtInfo(const std::string& extInfo); + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + long getGroupId()const; + void setGroupId(long groupId); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + std::string getEntityBizCodeType()const; + void setEntityBizCodeType(const std::string& entityBizCodeType); + std::string getEntityBizCode()const; + void setEntityBizCode(const std::string& entityBizCode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityRelationNumber()const; + void setEntityRelationNumber(const std::string& entityRelationNumber); + long getServiceId()const; + void setServiceId(long serviceId); + + private: + std::string extInfo_; + std::string departmentId_; + long groupId_; + std::string entityName_; + std::string entityId_; + std::string entityBizCodeType_; + std::string entityBizCode_; + std::string instanceId_; + std::string entityRelationNumber_; + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEENTITYIVRROUTEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteResult.h b/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteResult.h new file mode 100644 index 000000000..40962c5f9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateEntityIvrRouteResult.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_SCSP_MODEL_CREATEENTITYIVRROUTERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEENTITYIVRROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateEntityIvrRouteResult : public ServiceResult + { + public: + + + CreateEntityIvrRouteResult(); + explicit CreateEntityIvrRouteResult(const std::string &payload); + ~CreateEntityIvrRouteResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEENTITYIVRROUTERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataRequest.h b/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataRequest.h new file mode 100644 index 000000000..fda43ac7b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataRequest.h @@ -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_SCSP_MODEL_CREATEOUTERCALLCENTERDATAREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEOUTERCALLCENTERDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateOuterCallCenterDataRequest : public RpcServiceRequest + { + + public: + CreateOuterCallCenterDataRequest(); + ~CreateOuterCallCenterDataRequest(); + + std::string getExtInfo()const; + void setExtInfo(const std::string& extInfo); + std::string getRecordUrl()const; + void setRecordUrl(const std::string& recordUrl); + std::string getEndReason()const; + void setEndReason(const std::string& endReason); + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + std::string getFromPhoneNum()const; + void setFromPhoneNum(const std::string& fromPhoneNum); + std::string getInterveneTime()const; + void setInterveneTime(const std::string& interveneTime); + std::string getBizType()const; + void setBizType(const std::string& bizType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getToPhoneNum()const; + void setToPhoneNum(const std::string& toPhoneNum); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getTenantId()const; + void setTenantId(const std::string& tenantId); + std::string getCallType()const; + void setCallType(const std::string& callType); + std::string getUserInfo()const; + void setUserInfo(const std::string& userInfo); + + private: + std::string extInfo_; + std::string recordUrl_; + std::string endReason_; + std::string sessionId_; + std::string fromPhoneNum_; + std::string interveneTime_; + std::string bizType_; + std::string instanceId_; + std::string toPhoneNum_; + std::string bizId_; + std::string tenantId_; + std::string callType_; + std::string userInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEOUTERCALLCENTERDATAREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataResult.h b/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataResult.h new file mode 100644 index 000000000..94f32d243 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateOuterCallCenterDataResult.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_SCSP_MODEL_CREATEOUTERCALLCENTERDATARESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEOUTERCALLCENTERDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateOuterCallCenterDataResult : public ServiceResult + { + public: + + + CreateOuterCallCenterDataResult(); + explicit CreateOuterCallCenterDataResult(const std::string &payload); + ~CreateOuterCallCenterDataResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEOUTERCALLCENTERDATARESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateRoleRequest.h b/scsp/include/alibabacloud/scsp/model/CreateRoleRequest.h new file mode 100644 index 000000000..801acc8b9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateRoleRequest.h @@ -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_SCSP_MODEL_CREATEROLEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateRoleRequest : public RpcServiceRequest + { + + public: + CreateRoleRequest(); + ~CreateRoleRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::vector getPermissionId()const; + void setPermissionId(const std::vector& permissionId); + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + + private: + std::string clientToken_; + std::string instanceId_; + std::string roleName_; + std::vector permissionId_; + std::string _operator_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEROLEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateRoleResult.h b/scsp/include/alibabacloud/scsp/model/CreateRoleResult.h new file mode 100644 index 000000000..2c39291e0 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateRoleResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_CREATEROLERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateRoleResult : public ServiceResult + { + public: + + + CreateRoleResult(); + explicit CreateRoleResult(const std::string &payload); + ~CreateRoleResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATEROLERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateSkillGroupRequest.h b/scsp/include/alibabacloud/scsp/model/CreateSkillGroupRequest.h new file mode 100644 index 000000000..ee5e95c48 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateSkillGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_CREATESKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATESKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateSkillGroupRequest : public RpcServiceRequest + { + + public: + CreateSkillGroupRequest(); + ~CreateSkillGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + int getChannelType()const; + void setChannelType(int channelType); + std::string getSkillGroupName()const; + void setSkillGroupName(const std::string& skillGroupName); + std::string getDescription()const; + void setDescription(const std::string& description); + + private: + std::string instanceId_; + std::string clientToken_; + std::string displayName_; + int channelType_; + std::string skillGroupName_; + std::string description_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateSkillGroupResult.h b/scsp/include/alibabacloud/scsp/model/CreateSkillGroupResult.h new file mode 100644 index 000000000..37d0411c1 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateSkillGroupResult.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_SCSP_MODEL_CREATESKILLGROUPRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATESKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateSkillGroupResult : public ServiceResult + { + public: + + + CreateSkillGroupResult(); + explicit CreateSkillGroupResult(const std::string &payload); + ~CreateSkillGroupResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentRequest.h b/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentRequest.h new file mode 100644 index 000000000..7b9360521 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentRequest.h @@ -0,0 +1,69 @@ +/* + * 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_SCSP_MODEL_CREATETHIRDSSOAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETHIRDSSOAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateThirdSsoAgentRequest : public RpcServiceRequest + { + + public: + CreateThirdSsoAgentRequest(); + ~CreateThirdSsoAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientId()const; + void setClientId(const std::string& clientId); + std::string getAccountId()const; + void setAccountId(const std::string& accountId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + Array getSkillGroupIds()const; + void setSkillGroupIds(const Array& skillGroupIds); + Array getRoleIds()const; + void setRoleIds(const Array& roleIds); + + private: + std::string clientToken_; + std::string instanceId_; + std::string clientId_; + std::string accountId_; + std::string accountName_; + std::string displayName_; + Array skillGroupIds_; + Array roleIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETHIRDSSOAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentResult.h b/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentResult.h new file mode 100644 index 000000000..903528293 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateThirdSsoAgentResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_CREATETHIRDSSOAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETHIRDSSOAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateThirdSsoAgentResult : public ServiceResult + { + public: + + + CreateThirdSsoAgentResult(); + explicit CreateThirdSsoAgentResult(const std::string &payload); + ~CreateThirdSsoAgentResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETHIRDSSOAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateTicketRequest.h b/scsp/include/alibabacloud/scsp/model/CreateTicketRequest.h new file mode 100644 index 000000000..efd5fdcd7 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateTicketRequest.h @@ -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_SCSP_MODEL_CREATETICKETREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETICKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateTicketRequest : public RpcServiceRequest + { + + public: + CreateTicketRequest(); + ~CreateTicketRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTemplateId()const; + void setTemplateId(long templateId); + long getCategoryId()const; + void setCategoryId(long categoryId); + long getCreatorId()const; + void setCreatorId(long creatorId); + int getCreatorType()const; + void setCreatorType(int creatorType); + std::string getCreatorName()const; + void setCreatorName(const std::string& creatorName); + long getMemberId()const; + void setMemberId(long memberId); + std::string getMemberName()const; + void setMemberName(const std::string& memberName); + std::string getFromInfo()const; + void setFromInfo(const std::string& fromInfo); + int getPriority()const; + void setPriority(int priority); + std::string getCarbonCopy()const; + void setCarbonCopy(const std::string& carbonCopy); + std::string getFormData()const; + void setFormData(const std::string& formData); + + private: + std::string clientToken_; + std::string instanceId_; + long templateId_; + long categoryId_; + long creatorId_; + int creatorType_; + std::string creatorName_; + long memberId_; + std::string memberName_; + std::string fromInfo_; + int priority_; + std::string carbonCopy_; + std::string formData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETICKETREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateTicketResult.h b/scsp/include/alibabacloud/scsp/model/CreateTicketResult.h new file mode 100644 index 000000000..914b27d04 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateTicketResult.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_SCSP_MODEL_CREATETICKETRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateTicketResult : public ServiceResult + { + public: + + + CreateTicketResult(); + explicit CreateTicketResult(const std::string &payload); + ~CreateTicketResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETICKETRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataRequest.h b/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataRequest.h new file mode 100644 index 000000000..0b9b36f31 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataRequest.h @@ -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_SCSP_MODEL_CREATETICKETWITHBIZDATAREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETICKETWITHBIZDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateTicketWithBizDataRequest : public RpcServiceRequest + { + + public: + CreateTicketWithBizDataRequest(); + ~CreateTicketWithBizDataRequest(); + + std::string getFromInfo()const; + void setFromInfo(const std::string& fromInfo); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCarbonCopy()const; + void setCarbonCopy(const std::string& carbonCopy); + long getCreatorId()const; + void setCreatorId(long creatorId); + std::string getBizData()const; + void setBizData(const std::string& bizData); + long getTemplateId()const; + void setTemplateId(long templateId); + int getPriority()const; + void setPriority(int priority); + std::string getFormData()const; + void setFormData(const std::string& formData); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getCreatorType()const; + void setCreatorType(int creatorType); + std::string getCreatorName()const; + void setCreatorName(const std::string& creatorName); + long getCategoryId()const; + void setCategoryId(long categoryId); + std::string getMemberName()const; + void setMemberName(const std::string& memberName); + long getMemberId()const; + void setMemberId(long memberId); + + private: + std::string fromInfo_; + std::string clientToken_; + std::string carbonCopy_; + long creatorId_; + std::string bizData_; + long templateId_; + int priority_; + std::string formData_; + std::string instanceId_; + int creatorType_; + std::string creatorName_; + long categoryId_; + std::string memberName_; + long memberId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETICKETWITHBIZDATAREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataResult.h b/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataResult.h new file mode 100644 index 000000000..3e32b4fa7 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/CreateTicketWithBizDataResult.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_SCSP_MODEL_CREATETICKETWITHBIZDATARESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_CREATETICKETWITHBIZDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT CreateTicketWithBizDataResult : public ServiceResult + { + public: + + + CreateTicketWithBizDataResult(); + explicit CreateTicketWithBizDataResult(const std::string &payload); + ~CreateTicketWithBizDataResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_CREATETICKETWITHBIZDATARESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DeleteAgentRequest.h b/scsp/include/alibabacloud/scsp/model/DeleteAgentRequest.h new file mode 100644 index 000000000..7497b3dec --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DeleteAgentRequest.h @@ -0,0 +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_SCSP_MODEL_DELETEAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_DELETEAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DeleteAgentRequest : public RpcServiceRequest + { + + public: + DeleteAgentRequest(); + ~DeleteAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DELETEAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DeleteAgentResult.h b/scsp/include/alibabacloud/scsp/model/DeleteAgentResult.h new file mode 100644 index 000000000..1d1f3c7c0 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DeleteAgentResult.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_SCSP_MODEL_DELETEAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_DELETEAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DeleteAgentResult : public ServiceResult + { + public: + + + DeleteAgentResult(); + explicit DeleteAgentResult(const std::string &payload); + ~DeleteAgentResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DELETEAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteRequest.h b/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteRequest.h new file mode 100644 index 000000000..89427c372 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteRequest.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_SCSP_MODEL_DELETEENTITYROUTEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_DELETEENTITYROUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DeleteEntityRouteRequest : public RpcServiceRequest + { + + public: + DeleteEntityRouteRequest(); + ~DeleteEntityRouteRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getUniqueId()const; + void setUniqueId(long uniqueId); + + private: + std::string instanceId_; + long uniqueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DELETEENTITYROUTEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteResult.h b/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteResult.h new file mode 100644 index 000000000..840a85025 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DeleteEntityRouteResult.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_SCSP_MODEL_DELETEENTITYROUTERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_DELETEENTITYROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DeleteEntityRouteResult : public ServiceResult + { + public: + + + DeleteEntityRouteResult(); + explicit DeleteEntityRouteResult(const std::string &payload); + ~DeleteEntityRouteResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DELETEENTITYROUTERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DisableRoleRequest.h b/scsp/include/alibabacloud/scsp/model/DisableRoleRequest.h new file mode 100644 index 000000000..a63f4685f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DisableRoleRequest.h @@ -0,0 +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_SCSP_MODEL_DISABLEROLEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_DISABLEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DisableRoleRequest : public RpcServiceRequest + { + + public: + DisableRoleRequest(); + ~DisableRoleRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getRoleId()const; + void setRoleId(long roleId); + + private: + std::string clientToken_; + std::string instanceId_; + long roleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DISABLEROLEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/DisableRoleResult.h b/scsp/include/alibabacloud/scsp/model/DisableRoleResult.h new file mode 100644 index 000000000..11889e175 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/DisableRoleResult.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_SCSP_MODEL_DISABLEROLERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_DISABLEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT DisableRoleResult : public ServiceResult + { + public: + + + DisableRoleResult(); + explicit DisableRoleResult(const std::string &payload); + ~DisableRoleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_DISABLEROLERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/EditEntityRouteRequest.h b/scsp/include/alibabacloud/scsp/model/EditEntityRouteRequest.h new file mode 100644 index 000000000..2bd23346d --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/EditEntityRouteRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_EDITENTITYROUTEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_EDITENTITYROUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT EditEntityRouteRequest : public RpcServiceRequest + { + + public: + EditEntityRouteRequest(); + ~EditEntityRouteRequest(); + + std::string getExtInfo()const; + void setExtInfo(const std::string& extInfo); + std::string getDepartmentId()const; + void setDepartmentId(const std::string& departmentId); + long getGroupId()const; + void setGroupId(long groupId); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + std::string getEntityBizCodeType()const; + void setEntityBizCodeType(const std::string& entityBizCodeType); + std::string getEntityBizCode()const; + void setEntityBizCode(const std::string& entityBizCode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityRelationNumber()const; + void setEntityRelationNumber(const std::string& entityRelationNumber); + long getServiceId()const; + void setServiceId(long serviceId); + long getUniqueId()const; + void setUniqueId(long uniqueId); + + private: + std::string extInfo_; + std::string departmentId_; + long groupId_; + std::string entityName_; + std::string entityId_; + std::string entityBizCodeType_; + std::string entityBizCode_; + std::string instanceId_; + std::string entityRelationNumber_; + long serviceId_; + long uniqueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_EDITENTITYROUTEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/EditEntityRouteResult.h b/scsp/include/alibabacloud/scsp/model/EditEntityRouteResult.h new file mode 100644 index 000000000..3660cce60 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/EditEntityRouteResult.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_SCSP_MODEL_EDITENTITYROUTERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_EDITENTITYROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT EditEntityRouteResult : public ServiceResult + { + public: + + + EditEntityRouteResult(); + explicit EditEntityRouteResult(const std::string &payload); + ~EditEntityRouteResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_EDITENTITYROUTERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/EnableRoleRequest.h b/scsp/include/alibabacloud/scsp/model/EnableRoleRequest.h new file mode 100644 index 000000000..fa6980046 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/EnableRoleRequest.h @@ -0,0 +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_SCSP_MODEL_ENABLEROLEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_ENABLEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT EnableRoleRequest : public RpcServiceRequest + { + + public: + EnableRoleRequest(); + ~EnableRoleRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getRoleId()const; + void setRoleId(long roleId); + + private: + std::string clientToken_; + std::string instanceId_; + long roleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ENABLEROLEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/EnableRoleResult.h b/scsp/include/alibabacloud/scsp/model/EnableRoleResult.h new file mode 100644 index 000000000..58764f864 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/EnableRoleResult.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_SCSP_MODEL_ENABLEROLERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_ENABLEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT EnableRoleResult : public ServiceResult + { + public: + + + EnableRoleResult(); + explicit EnableRoleResult(const std::string &payload); + ~EnableRoleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_ENABLEROLERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ExecuteActivityRequest.h b/scsp/include/alibabacloud/scsp/model/ExecuteActivityRequest.h new file mode 100644 index 000000000..65ff6064b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ExecuteActivityRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_EXECUTEACTIVITYREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_EXECUTEACTIVITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ExecuteActivityRequest : public RpcServiceRequest + { + + public: + ExecuteActivityRequest(); + ~ExecuteActivityRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTicketId()const; + void setTicketId(long ticketId); + long getOperatorId()const; + void setOperatorId(long operatorId); + std::string getActivityCode()const; + void setActivityCode(const std::string& activityCode); + std::string getActivityForm()const; + void setActivityForm(const std::string& activityForm); + + private: + std::string clientToken_; + std::string instanceId_; + long ticketId_; + long operatorId_; + std::string activityCode_; + std::string activityForm_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_EXECUTEACTIVITYREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ExecuteActivityResult.h b/scsp/include/alibabacloud/scsp/model/ExecuteActivityResult.h new file mode 100644 index 000000000..5752a2934 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ExecuteActivityResult.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_SCSP_MODEL_EXECUTEACTIVITYRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_EXECUTEACTIVITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ExecuteActivityResult : public ServiceResult + { + public: + + + ExecuteActivityResult(); + explicit ExecuteActivityResult(const std::string &payload); + ~ExecuteActivityResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_EXECUTEACTIVITYRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/FetchCallRequest.h b/scsp/include/alibabacloud/scsp/model/FetchCallRequest.h new file mode 100644 index 000000000..fae384be6 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/FetchCallRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_FETCHCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_FETCHCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT FetchCallRequest : public RpcServiceRequest + { + + public: + FetchCallRequest(); + ~FetchCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_FETCHCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/FetchCallResult.h b/scsp/include/alibabacloud/scsp/model/FetchCallResult.h new file mode 100644 index 000000000..1d2468242 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/FetchCallResult.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_SCSP_MODEL_FETCHCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_FETCHCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT FetchCallResult : public ServiceResult + { + public: + + + FetchCallResult(); + explicit FetchCallResult(const std::string &payload); + ~FetchCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_FETCHCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceRequest.h b/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceRequest.h new file mode 100644 index 000000000..7ae2d1f62 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceRequest.h @@ -0,0 +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_SCSP_MODEL_FINISHHOTLINESERVICEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_FINISHHOTLINESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT FinishHotlineServiceRequest : public RpcServiceRequest + { + + public: + FinishHotlineServiceRequest(); + ~FinishHotlineServiceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_FINISHHOTLINESERVICEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceResult.h b/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceResult.h new file mode 100644 index 000000000..2d3ba3e44 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/FinishHotlineServiceResult.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_SCSP_MODEL_FINISHHOTLINESERVICERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_FINISHHOTLINESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT FinishHotlineServiceResult : public ServiceResult + { + public: + + + FinishHotlineServiceResult(); + explicit FinishHotlineServiceResult(const std::string &payload); + ~FinishHotlineServiceResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_FINISHHOTLINESERVICERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignRequest.h b/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignRequest.h new file mode 100644 index 000000000..0584eff3c --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignRequest.h @@ -0,0 +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_SCSP_MODEL_GENERATEWEBSOCKETSIGNREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GENERATEWEBSOCKETSIGNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GenerateWebSocketSignRequest : public RpcServiceRequest + { + + public: + GenerateWebSocketSignRequest(); + ~GenerateWebSocketSignRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GENERATEWEBSOCKETSIGNREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignResult.h b/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignResult.h new file mode 100644 index 000000000..9539af538 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GenerateWebSocketSignResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_GENERATEWEBSOCKETSIGNRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GENERATEWEBSOCKETSIGNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GenerateWebSocketSignResult : public ServiceResult + { + public: + + + GenerateWebSocketSignResult(); + explicit GenerateWebSocketSignResult(const std::string &payload); + ~GenerateWebSocketSignResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GENERATEWEBSOCKETSIGNRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetAgentRequest.h b/scsp/include/alibabacloud/scsp/model/GetAgentRequest.h new file mode 100644 index 000000000..ef2192040 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetAgentRequest.h @@ -0,0 +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_SCSP_MODEL_GETAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetAgentRequest : public RpcServiceRequest + { + + public: + GetAgentRequest(); + ~GetAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetAgentResult.h b/scsp/include/alibabacloud/scsp/model/GetAgentResult.h new file mode 100644 index 000000000..4a702ce83 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetAgentResult.h @@ -0,0 +1,76 @@ +/* + * 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_SCSP_MODEL_GETAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetAgentResult : public ServiceResult + { + public: + struct Data + { + struct GroupListItem + { + std::string description; + std::string displayName; + long skillGroupId; + int channelType; + std::string name; + }; + int status; + long tenantId; + std::vector groupList; + std::string displayName; + long agentId; + std::string accountName; + }; + + + GetAgentResult(); + explicit GetAgentResult(const std::string &payload); + ~GetAgentResult(); + 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_SCSP_MODEL_GETAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetAuthInfoRequest.h b/scsp/include/alibabacloud/scsp/model/GetAuthInfoRequest.h new file mode 100644 index 000000000..7befabf85 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetAuthInfoRequest.h @@ -0,0 +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_SCSP_MODEL_GETAUTHINFOREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETAUTHINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetAuthInfoRequest : public RpcServiceRequest + { + + public: + GetAuthInfoRequest(); + ~GetAuthInfoRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getForeignId()const; + void setForeignId(const std::string& foreignId); + std::string getAppKey()const; + void setAppKey(const std::string& appKey); + + private: + std::string instanceId_; + std::string foreignId_; + std::string appKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETAUTHINFOREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetAuthInfoResult.h b/scsp/include/alibabacloud/scsp/model/GetAuthInfoResult.h new file mode 100644 index 000000000..798d5a90b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetAuthInfoResult.h @@ -0,0 +1,69 @@ +/* + * 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_SCSP_MODEL_GETAUTHINFORESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETAUTHINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetAuthInfoResult : public ServiceResult + { + public: + struct Data + { + std::string app; + std::string tenantId; + std::string userName; + std::string userId; + std::string appKey; + long time; + std::string code; + std::string sessionId; + std::string appName; + }; + + + GetAuthInfoResult(); + explicit GetAuthInfoResult(const std::string &payload); + ~GetAuthInfoResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETAUTHINFORESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdRequest.h b/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdRequest.h new file mode 100644 index 000000000..1f5a0a8a9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdRequest.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_SCSP_MODEL_GETCMSIDBYFOREIGNIDREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETCMSIDBYFOREIGNIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetCMSIdByForeignIdRequest : public RpcServiceRequest + { + + public: + GetCMSIdByForeignIdRequest(); + ~GetCMSIdByForeignIdRequest(); + + std::string getNick()const; + void setNick(const std::string& nick); + long getSourceId()const; + void setSourceId(long sourceId); + std::string getForeignId()const; + void setForeignId(const std::string& foreignId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string nick_; + long sourceId_; + std::string foreignId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETCMSIDBYFOREIGNIDREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdResult.h b/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdResult.h new file mode 100644 index 000000000..53e9b02c6 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetCMSIdByForeignIdResult.h @@ -0,0 +1,69 @@ +/* + * 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_SCSP_MODEL_GETCMSIDBYFOREIGNIDRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETCMSIDBYFOREIGNIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetCMSIdByForeignIdResult : public ServiceResult + { + public: + struct Data + { + int status; + std::string userId; + std::string nick; + std::string phone; + bool anonymity; + int customerTypeId; + std::string gender; + std::string avatar; + std::string foreignId; + }; + + + GetCMSIdByForeignIdResult(); + explicit GetCMSIdByForeignIdResult(const std::string &payload); + ~GetCMSIdByForeignIdResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETCMSIDBYFOREIGNIDRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetCallsPerDayRequest.h b/scsp/include/alibabacloud/scsp/model/GetCallsPerDayRequest.h new file mode 100644 index 000000000..6782522b9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetCallsPerDayRequest.h @@ -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_SCSP_MODEL_GETCALLSPERDAYREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETCALLSPERDAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetCallsPerDayRequest : public RpcServiceRequest + { + + public: + GetCallsPerDayRequest(); + ~GetCallsPerDayRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getDataIdStart()const; + void setDataIdStart(const std::string& dataIdStart); + std::string getDataIdEnd()const; + void setDataIdEnd(const std::string& dataIdEnd); + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getHourId()const; + void setHourId(const std::string& hourId); + std::string getMinuteId()const; + void setMinuteId(const std::string& minuteId); + std::string getPhoneNumbers()const; + void setPhoneNumbers(const std::string& phoneNumbers); + std::string getHavePhoneNumbers()const; + void setHavePhoneNumbers(const std::string& havePhoneNumbers); + long getPageNo()const; + void setPageNo(long pageNo); + long getPageSize()const; + void setPageSize(long pageSize); + + private: + std::string instanceId_; + std::string dataIdStart_; + std::string dataIdEnd_; + std::string dataId_; + std::string hourId_; + std::string minuteId_; + std::string phoneNumbers_; + std::string havePhoneNumbers_; + long pageNo_; + long pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETCALLSPERDAYREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetCallsPerDayResult.h b/scsp/include/alibabacloud/scsp/model/GetCallsPerDayResult.h new file mode 100644 index 000000000..2f97e9d60 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetCallsPerDayResult.h @@ -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_SCSP_MODEL_GETCALLSPERDAYRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETCALLSPERDAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetCallsPerDayResult : public ServiceResult + { + public: + struct Data + { + struct CallsPerdayResponseListItem + { + std::string tenantId; + std::string callOutCnt; + std::string dataId; + std::string phoneNum; + std::string tenantName; + std::string callInCnt; + std::string minuteId; + std::string hourId; + }; + long totalNum; + long pageSize; + std::string pageNo; + std::vector callsPerdayResponseList; + }; + + + GetCallsPerDayResult(); + explicit GetCallsPerDayResult(const std::string &payload); + ~GetCallsPerDayResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETCALLSPERDAYRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityRouteListRequest.h b/scsp/include/alibabacloud/scsp/model/GetEntityRouteListRequest.h new file mode 100644 index 000000000..6de3f17ac --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityRouteListRequest.h @@ -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_SCSP_MODEL_GETENTITYROUTELISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityRouteListRequest : public RpcServiceRequest + { + + public: + GetEntityRouteListRequest(); + ~GetEntityRouteListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageNo()const; + void setPageNo(int pageNo); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + std::string getEntityRelationNumber()const; + void setEntityRelationNumber(const std::string& entityRelationNumber); + + private: + std::string instanceId_; + int pageNo_; + int pageSize_; + std::string entityName_; + std::string entityRelationNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTELISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityRouteListResult.h b/scsp/include/alibabacloud/scsp/model/GetEntityRouteListResult.h new file mode 100644 index 000000000..8501f88f0 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityRouteListResult.h @@ -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_SCSP_MODEL_GETENTITYROUTELISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityRouteListResult : public ServiceResult + { + public: + struct Data + { + struct EntityRouteListItem + { + std::string entityId; + long uniqueId; + std::string entityName; + std::string extInfo; + std::string entityBizCodeType; + std::string departmentId; + std::string entityBizCode; + std::string entityRelationNumber; + std::string groupId; + std::string serviceId; + }; + std::vector entityRouteList; + int pageSize; + long total; + int pageNo; + }; + + + GetEntityRouteListResult(); + explicit GetEntityRouteListResult(const std::string &payload); + ~GetEntityRouteListResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTELISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityRouteRequest.h b/scsp/include/alibabacloud/scsp/model/GetEntityRouteRequest.h new file mode 100644 index 000000000..dc96fe243 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityRouteRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityRouteRequest : public RpcServiceRequest + { + + public: + GetEntityRouteRequest(); + ~GetEntityRouteRequest(); + + std::string getEntityBizCode()const; + void setEntityBizCode(const std::string& entityBizCode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityName()const; + void setEntityName(const std::string& entityName); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + std::string getEntityRelationNumber()const; + void setEntityRelationNumber(const std::string& entityRelationNumber); + long getUniqueId()const; + void setUniqueId(long uniqueId); + + private: + std::string entityBizCode_; + std::string instanceId_; + std::string entityName_; + std::string entityId_; + std::string entityRelationNumber_; + long uniqueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityRouteResult.h b/scsp/include/alibabacloud/scsp/model/GetEntityRouteResult.h new file mode 100644 index 000000000..d843e56d2 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityRouteResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityRouteResult : public ServiceResult + { + public: + struct Data + { + std::string entityId; + long uniqueId; + std::string entityName; + std::string extInfo; + std::string entityBizCodeType; + std::string entityBizCode; + std::string departmentId; + std::string entityRelationNumber; + long groupId; + long serviceId; + }; + + + GetEntityRouteResult(); + explicit GetEntityRouteResult(const std::string &payload); + ~GetEntityRouteResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYROUTERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationRequest.h b/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationRequest.h new file mode 100644 index 000000000..32465073f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationRequest.h @@ -0,0 +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_SCSP_MODEL_GETENTITYTAGRELATIONREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYTAGRELATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityTagRelationRequest : public RpcServiceRequest + { + + public: + GetEntityTagRelationRequest(); + ~GetEntityTagRelationRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityType()const; + void setEntityType(const std::string& entityType); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + + private: + std::string instanceId_; + std::string entityType_; + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYTAGRELATIONREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationResult.h b/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationResult.h new file mode 100644 index 000000000..5926558f3 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetEntityTagRelationResult.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_GETENTITYTAGRELATIONRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETENTITYTAGRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetEntityTagRelationResult : public ServiceResult + { + public: + struct DataItem + { + std::string entityId; + std::string entityType; + std::string tagName; + std::string tagGroupCode; + std::string tagGroupName; + std::string tagCode; + }; + + + GetEntityTagRelationResult(); + explicit GetEntityTagRelationResult(const std::string &payload); + ~GetEntityTagRelationResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETENTITYTAGRELATIONRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsRequest.h b/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsRequest.h new file mode 100644 index 000000000..ff2aa1acf --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsRequest.h @@ -0,0 +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_SCSP_MODEL_GETGRANTEDROLEIDSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETGRANTEDROLEIDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetGrantedRoleIdsRequest : public RpcServiceRequest + { + + public: + GetGrantedRoleIdsRequest(); + ~GetGrantedRoleIdsRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETGRANTEDROLEIDSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsResult.h b/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsResult.h new file mode 100644 index 000000000..b6d625c1e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetGrantedRoleIdsResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_GETGRANTEDROLEIDSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETGRANTEDROLEIDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetGrantedRoleIdsResult : public ServiceResult + { + public: + + + GetGrantedRoleIdsResult(); + explicit GetGrantedRoleIdsResult(const std::string &payload); + ~GetGrantedRoleIdsResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETGRANTEDROLEIDSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportRequest.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportRequest.h new file mode 100644 index 000000000..abcd2e97e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentDetailReportRequest : public RpcServiceRequest + { + + public: + GetHotlineAgentDetailReportRequest(); + ~GetHotlineAgentDetailReportRequest(); + + std::vector getDepIds()const; + void setDepIds(const std::vector& depIds); + long getEndDate()const; + void setEndDate(long endDate); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getGroupIds()const; + void setGroupIds(const std::vector& groupIds); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + long getStartDate()const; + void setStartDate(long startDate); + + private: + std::vector depIds_; + long endDate_; + std::string instanceId_; + std::vector groupIds_; + int pageSize_; + int currentPage_; + long startDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportResult.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportResult.h new file mode 100644 index 000000000..e5fed64e9 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailReportResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentDetailReportResult : public ServiceResult + { + public: + struct Data + { + struct ColumnsItem + { + std::string title; + std::string key; + }; + int pageSize; + int total; + std::vector columns; + int page; + std::vector rows; + }; + + + GetHotlineAgentDetailReportResult(); + explicit GetHotlineAgentDetailReportResult(const std::string &payload); + ~GetHotlineAgentDetailReportResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREPORTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailRequest.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailRequest.h new file mode 100644 index 000000000..89612dea3 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailRequest.h @@ -0,0 +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_SCSP_MODEL_GETHOTLINEAGENTDETAILREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentDetailRequest : public RpcServiceRequest + { + + public: + GetHotlineAgentDetailRequest(); + ~GetHotlineAgentDetailRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailResult.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailResult.h new file mode 100644 index 000000000..22c6171e2 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentDetailResult.h @@ -0,0 +1,69 @@ +/* + * 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_SCSP_MODEL_GETHOTLINEAGENTDETAILRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentDetailResult : public ServiceResult + { + public: + struct Data + { + bool assigned; + long tenantId; + int restType; + int agentStatus; + std::string agentStatusCode; + std::string token; + long agentId; + }; + + + GetHotlineAgentDetailResult(); + explicit GetHotlineAgentDetailResult(const std::string &payload); + ~GetHotlineAgentDetailResult(); + 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_SCSP_MODEL_GETHOTLINEAGENTDETAILRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusRequest.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusRequest.h new file mode 100644 index 000000000..25f1e98ec --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusRequest.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_SCSP_MODEL_GETHOTLINEAGENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentStatusRequest : public RpcServiceRequest + { + + public: + GetHotlineAgentStatusRequest(); + ~GetHotlineAgentStatusRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusResult.h b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusResult.h new file mode 100644 index 000000000..e01a54315 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineAgentStatusResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_GETHOTLINEAGENTSTATUSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineAgentStatusResult : public ServiceResult + { + public: + + + GetHotlineAgentStatusResult(); + explicit GetHotlineAgentStatusResult(const std::string &payload); + ~GetHotlineAgentStatusResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEAGENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportRequest.h b/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportRequest.h new file mode 100644 index 000000000..56cf3ff65 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineGroupDetailReportRequest : public RpcServiceRequest + { + + public: + GetHotlineGroupDetailReportRequest(); + ~GetHotlineGroupDetailReportRequest(); + + std::vector getDepIds()const; + void setDepIds(const std::vector& depIds); + long getEndDate()const; + void setEndDate(long endDate); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::vector getGroupIds()const; + void setGroupIds(const std::vector& groupIds); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + long getStartDate()const; + void setStartDate(long startDate); + + private: + std::vector depIds_; + long endDate_; + std::string instanceId_; + std::vector groupIds_; + int pageSize_; + int currentPage_; + long startDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportResult.h b/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportResult.h new file mode 100644 index 000000000..a540c437a --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineGroupDetailReportResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineGroupDetailReportResult : public ServiceResult + { + public: + struct Data + { + struct ColumnsItem + { + std::string title; + std::string key; + }; + int pageSize; + int total; + std::vector columns; + int page; + std::vector rows; + }; + + + GetHotlineGroupDetailReportResult(); + explicit GetHotlineGroupDetailReportResult(const std::string &payload); + ~GetHotlineGroupDetailReportResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEGROUPDETAILREPORTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberRequest.h b/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberRequest.h new file mode 100644 index 000000000..60c27a721 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberRequest.h @@ -0,0 +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_SCSP_MODEL_GETHOTLINEWAITINGNUMBERREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEWAITINGNUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineWaitingNumberRequest : public RpcServiceRequest + { + + public: + GetHotlineWaitingNumberRequest(); + ~GetHotlineWaitingNumberRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEWAITINGNUMBERREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberResult.h b/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberResult.h new file mode 100644 index 000000000..b966bd15c --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetHotlineWaitingNumberResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_GETHOTLINEWAITINGNUMBERRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETHOTLINEWAITINGNUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetHotlineWaitingNumberResult : public ServiceResult + { + public: + + + GetHotlineWaitingNumberResult(); + explicit GetHotlineWaitingNumberResult(const std::string &payload); + ~GetHotlineWaitingNumberResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETHOTLINEWAITINGNUMBERRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetNumLocationRequest.h b/scsp/include/alibabacloud/scsp/model/GetNumLocationRequest.h new file mode 100644 index 000000000..2c2c45be2 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetNumLocationRequest.h @@ -0,0 +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_SCSP_MODEL_GETNUMLOCATIONREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETNUMLOCATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetNumLocationRequest : public RpcServiceRequest + { + + public: + GetNumLocationRequest(); + ~GetNumLocationRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPhoneNum()const; + void setPhoneNum(const std::string& phoneNum); + + private: + std::string clientToken_; + std::string instanceId_; + std::string phoneNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETNUMLOCATIONREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetNumLocationResult.h b/scsp/include/alibabacloud/scsp/model/GetNumLocationResult.h new file mode 100644 index 000000000..3284b98c8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetNumLocationResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_GETNUMLOCATIONRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETNUMLOCATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetNumLocationResult : public ServiceResult + { + public: + + + GetNumLocationResult(); + explicit GetNumLocationResult(const std::string &payload); + ~GetNumLocationResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETNUMLOCATIONRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetOutbounNumListRequest.h b/scsp/include/alibabacloud/scsp/model/GetOutbounNumListRequest.h new file mode 100644 index 000000000..09602c7bc --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetOutbounNumListRequest.h @@ -0,0 +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_SCSP_MODEL_GETOUTBOUNNUMLISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETOUTBOUNNUMLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetOutbounNumListRequest : public RpcServiceRequest + { + + public: + GetOutbounNumListRequest(); + ~GetOutbounNumListRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETOUTBOUNNUMLISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetOutbounNumListResult.h b/scsp/include/alibabacloud/scsp/model/GetOutbounNumListResult.h new file mode 100644 index 000000000..e18f3903d --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetOutbounNumListResult.h @@ -0,0 +1,76 @@ +/* + * 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_SCSP_MODEL_GETOUTBOUNNUMLISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETOUTBOUNNUMLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetOutbounNumListResult : public ServiceResult + { + public: + struct Data + { + struct NumGroupItem + { + int type; + std::string description; + std::string value; + }; + struct NumItem + { + int type; + std::string description; + std::string value; + }; + std::vector num; + std::vector numGroup; + }; + + + GetOutbounNumListResult(); + explicit GetOutbounNumListResult(const std::string &payload); + ~GetOutbounNumListResult(); + 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_SCSP_MODEL_GETOUTBOUNNUMLISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListRequest.h b/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListRequest.h new file mode 100644 index 000000000..516274b75 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_GETOUTERCALLCENTERDATALISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETOUTERCALLCENTERDATALISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetOuterCallCenterDataListRequest : public RpcServiceRequest + { + + public: + GetOuterCallCenterDataListRequest(); + ~GetOuterCallCenterDataListRequest(); + + std::string getQueryEndTime()const; + void setQueryEndTime(const std::string& queryEndTime); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getToPhoneNum()const; + void setToPhoneNum(const std::string& toPhoneNum); + std::string getQueryStartTime()const; + void setQueryStartTime(const std::string& queryStartTime); + std::string getBizId()const; + void setBizId(const std::string& bizId); + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + std::string getFromPhoneNum()const; + void setFromPhoneNum(const std::string& fromPhoneNum); + + private: + std::string queryEndTime_; + std::string instanceId_; + std::string toPhoneNum_; + std::string queryStartTime_; + std::string bizId_; + std::string sessionId_; + std::string fromPhoneNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETOUTERCALLCENTERDATALISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListResult.h b/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListResult.h new file mode 100644 index 000000000..3db918076 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetOuterCallCenterDataListResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETOUTERCALLCENTERDATALISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETOUTERCALLCENTERDATALISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetOuterCallCenterDataListResult : public ServiceResult + { + public: + struct DataItem + { + std::string toPhoneNum; + std::string fromPhoneNum; + std::string acid; + std::string endReason; + std::string extInfo; + std::string callType; + std::string userInfo; + std::string bizType; + std::string interveneTime; + std::string bizId; + std::string sessionId; + }; + + + GetOuterCallCenterDataListResult(); + explicit GetOuterCallCenterDataListResult(const std::string &payload); + ~GetOuterCallCenterDataListResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETOUTERCALLCENTERDATALISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetTagListRequest.h b/scsp/include/alibabacloud/scsp/model/GetTagListRequest.h new file mode 100644 index 000000000..8f0b56d08 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetTagListRequest.h @@ -0,0 +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_SCSP_MODEL_GETTAGLISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETTAGLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetTagListRequest : public RpcServiceRequest + { + + public: + GetTagListRequest(); + ~GetTagListRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityType()const; + void setEntityType(const std::string& entityType); + std::string getEntityId()const; + void setEntityId(const std::string& entityId); + + private: + std::string instanceId_; + std::string entityType_; + std::string entityId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETTAGLISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetTagListResult.h b/scsp/include/alibabacloud/scsp/model/GetTagListResult.h new file mode 100644 index 000000000..a8222f368 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetTagListResult.h @@ -0,0 +1,74 @@ +/* + * 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_SCSP_MODEL_GETTAGLISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETTAGLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetTagListResult : public ServiceResult + { + public: + struct DataItem + { + struct TagValuesItem + { + std::string status; + std::string description; + std::string tagName; + std::string tagGroupCode; + std::string tagGroupName; + std::string tagCode; + std::string entityRelationNumber; + }; + std::string scenarioCode; + std::string tagGroupCode; + std::string tagGroupName; + std::vector tagValues; + }; + + + GetTagListResult(); + explicit GetTagListResult(const std::string &payload); + ~GetTagListResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETTAGLISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaRequest.h b/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaRequest.h new file mode 100644 index 000000000..89cfac0bc --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaRequest.h @@ -0,0 +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_SCSP_MODEL_GETTICKETTEMPLATESCHEMAREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETTICKETTEMPLATESCHEMAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetTicketTemplateSchemaRequest : public RpcServiceRequest + { + + public: + GetTicketTemplateSchemaRequest(); + ~GetTicketTemplateSchemaRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTemplateId()const; + void setTemplateId(long templateId); + + private: + std::string clientToken_; + std::string instanceId_; + long templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETTICKETTEMPLATESCHEMAREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaResult.h b/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaResult.h new file mode 100644 index 000000000..85cdb825e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetTicketTemplateSchemaResult.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_SCSP_MODEL_GETTICKETTEMPLATESCHEMARESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETTICKETTEMPLATESCHEMARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetTicketTemplateSchemaResult : public ServiceResult + { + public: + + + GetTicketTemplateSchemaResult(); + explicit GetTicketTemplateSchemaResult(const std::string &payload); + ~GetTicketTemplateSchemaResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETTICKETTEMPLATESCHEMARESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetUserTokenRequest.h b/scsp/include/alibabacloud/scsp/model/GetUserTokenRequest.h new file mode 100644 index 000000000..b728b10ee --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetUserTokenRequest.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_SCSP_MODEL_GETUSERTOKENREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETUSERTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetUserTokenRequest : public RpcServiceRequest + { + + public: + GetUserTokenRequest(); + ~GetUserTokenRequest(); + + std::string getNick()const; + void setNick(const std::string& nick); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAppKey()const; + void setAppKey(const std::string& appKey); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string nick_; + std::string instanceId_; + std::string appKey_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETUSERTOKENREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GetUserTokenResult.h b/scsp/include/alibabacloud/scsp/model/GetUserTokenResult.h new file mode 100644 index 000000000..1a51e60cb --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GetUserTokenResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_GETUSERTOKENRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GETUSERTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GetUserTokenResult : public ServiceResult + { + public: + struct Data + { + std::string token; + long expires; + }; + + + GetUserTokenResult(); + explicit GetUserTokenResult(const std::string &payload); + ~GetUserTokenResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GETUSERTOKENRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GrantRolesRequest.h b/scsp/include/alibabacloud/scsp/model/GrantRolesRequest.h new file mode 100644 index 000000000..b60be792b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GrantRolesRequest.h @@ -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_SCSP_MODEL_GRANTROLESREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_GRANTROLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GrantRolesRequest : public RpcServiceRequest + { + + public: + GrantRolesRequest(); + ~GrantRolesRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::vector getRoleId()const; + void setRoleId(const std::vector& roleId); + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::vector roleId_; + std::string _operator_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GRANTROLESREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/GrantRolesResult.h b/scsp/include/alibabacloud/scsp/model/GrantRolesResult.h new file mode 100644 index 000000000..cc0124158 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/GrantRolesResult.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_SCSP_MODEL_GRANTROLESRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_GRANTROLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT GrantRolesResult : public ServiceResult + { + public: + + + GrantRolesResult(); + explicit GrantRolesResult(const std::string &payload); + ~GrantRolesResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_GRANTROLESRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HangupCallRequest.h b/scsp/include/alibabacloud/scsp/model/HangupCallRequest.h new file mode 100644 index 000000000..7ea753ea1 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HangupCallRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_HANGUPCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_HANGUPCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HangupCallRequest : public RpcServiceRequest + { + + public: + HangupCallRequest(); + ~HangupCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HANGUPCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HangupCallResult.h b/scsp/include/alibabacloud/scsp/model/HangupCallResult.h new file mode 100644 index 000000000..6834e092e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HangupCallResult.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_SCSP_MODEL_HANGUPCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_HANGUPCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HangupCallResult : public ServiceResult + { + public: + + + HangupCallResult(); + explicit HangupCallResult(const std::string &payload); + ~HangupCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HANGUPCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HangupThirdCallRequest.h b/scsp/include/alibabacloud/scsp/model/HangupThirdCallRequest.h new file mode 100644 index 000000000..5e121daa4 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HangupThirdCallRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_HANGUPTHIRDCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_HANGUPTHIRDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HangupThirdCallRequest : public RpcServiceRequest + { + + public: + HangupThirdCallRequest(); + ~HangupThirdCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HANGUPTHIRDCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HangupThirdCallResult.h b/scsp/include/alibabacloud/scsp/model/HangupThirdCallResult.h new file mode 100644 index 000000000..11af5f9eb --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HangupThirdCallResult.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_SCSP_MODEL_HANGUPTHIRDCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_HANGUPTHIRDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HangupThirdCallResult : public ServiceResult + { + public: + + + HangupThirdCallResult(); + explicit HangupThirdCallResult(const std::string &payload); + ~HangupThirdCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HANGUPTHIRDCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HoldCallRequest.h b/scsp/include/alibabacloud/scsp/model/HoldCallRequest.h new file mode 100644 index 000000000..10360852f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HoldCallRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_HOLDCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_HOLDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HoldCallRequest : public RpcServiceRequest + { + + public: + HoldCallRequest(); + ~HoldCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HOLDCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/HoldCallResult.h b/scsp/include/alibabacloud/scsp/model/HoldCallResult.h new file mode 100644 index 000000000..d53c4a991 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/HoldCallResult.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_SCSP_MODEL_HOLDCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_HOLDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT HoldCallResult : public ServiceResult + { + public: + + + HoldCallResult(); + explicit HoldCallResult(const std::string &payload); + ~HoldCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_HOLDCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/JoinThirdCallRequest.h b/scsp/include/alibabacloud/scsp/model/JoinThirdCallRequest.h new file mode 100644 index 000000000..2a64df6de --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/JoinThirdCallRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_JOINTHIRDCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_JOINTHIRDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT JoinThirdCallRequest : public RpcServiceRequest + { + + public: + JoinThirdCallRequest(); + ~JoinThirdCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_JOINTHIRDCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/JoinThirdCallResult.h b/scsp/include/alibabacloud/scsp/model/JoinThirdCallResult.h new file mode 100644 index 000000000..8cb870017 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/JoinThirdCallResult.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_SCSP_MODEL_JOINTHIRDCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_JOINTHIRDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT JoinThirdCallResult : public ServiceResult + { + public: + + + JoinThirdCallResult(); + explicit JoinThirdCallResult(const std::string &payload); + ~JoinThirdCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_JOINTHIRDCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdRequest.h b/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdRequest.h new file mode 100644 index 000000000..e9050bbaf --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdRequest.h @@ -0,0 +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_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListAgentBySkillGroupIdRequest : public RpcServiceRequest + { + + public: + ListAgentBySkillGroupIdRequest(); + ~ListAgentBySkillGroupIdRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getSkillGroupId()const; + void setSkillGroupId(long skillGroupId); + + private: + std::string clientToken_; + std::string instanceId_; + long skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdResult.h b/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdResult.h new file mode 100644 index 000000000..af5b590fe --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListAgentBySkillGroupIdResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListAgentBySkillGroupIdResult : public ServiceResult + { + public: + struct Agents + { + int status; + long tenantId; + std::string displayName; + long agentId; + std::string accountName; + }; + + + ListAgentBySkillGroupIdResult(); + explicit ListAgentBySkillGroupIdResult(const std::string &payload); + ~ListAgentBySkillGroupIdResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTAGENTBYSKILLGROUPIDRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListHotlineRecordRequest.h b/scsp/include/alibabacloud/scsp/model/ListHotlineRecordRequest.h new file mode 100644 index 000000000..a7aa90b0b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListHotlineRecordRequest.h @@ -0,0 +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_SCSP_MODEL_LISTHOTLINERECORDREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTHOTLINERECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListHotlineRecordRequest : public RpcServiceRequest + { + + public: + ListHotlineRecordRequest(); + ~ListHotlineRecordRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCallId()const; + void setCallId(const std::string& callId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string callId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTHOTLINERECORDREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListHotlineRecordResult.h b/scsp/include/alibabacloud/scsp/model/ListHotlineRecordResult.h new file mode 100644 index 000000000..4d3839d77 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListHotlineRecordResult.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_SCSP_MODEL_LISTHOTLINERECORDRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTHOTLINERECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListHotlineRecordResult : public ServiceResult + { + public: + struct DataItem + { + std::string connectionId; + bool endTime; + std::string callId; + bool startTime; + std::string url; + }; + + + ListHotlineRecordResult(); + explicit ListHotlineRecordResult(const std::string &payload); + ~ListHotlineRecordResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTHOTLINERECORDRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberRequest.h b/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberRequest.h new file mode 100644 index 000000000..a3c6a62c6 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberRequest.h @@ -0,0 +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_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListOutboundPhoneNumberRequest : public RpcServiceRequest + { + + public: + ListOutboundPhoneNumberRequest(); + ~ListOutboundPhoneNumberRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberResult.h b/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberResult.h new file mode 100644 index 000000000..4fe9b5975 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListOutboundPhoneNumberResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListOutboundPhoneNumberResult : public ServiceResult + { + public: + + + ListOutboundPhoneNumberResult(); + explicit ListOutboundPhoneNumberResult(const std::string &payload); + ~ListOutboundPhoneNumberResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTOUTBOUNDPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListSkillGroupRequest.h b/scsp/include/alibabacloud/scsp/model/ListSkillGroupRequest.h new file mode 100644 index 000000000..61d3eb489 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListSkillGroupRequest.h @@ -0,0 +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_SCSP_MODEL_LISTSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListSkillGroupRequest : public RpcServiceRequest + { + + public: + ListSkillGroupRequest(); + ~ListSkillGroupRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getChannelType()const; + void setChannelType(int channelType); + + private: + std::string clientToken_; + std::string instanceId_; + int channelType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/ListSkillGroupResult.h b/scsp/include/alibabacloud/scsp/model/ListSkillGroupResult.h new file mode 100644 index 000000000..2acffc83b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/ListSkillGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_LISTSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_LISTSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT ListSkillGroupResult : public ServiceResult + { + public: + struct SkillGroups + { + std::string description; + std::string displayName; + long skillGroupId; + int channelType; + std::string name; + }; + + + ListSkillGroupResult(); + explicit ListSkillGroupResult(const std::string &payload); + ~ListSkillGroupResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_LISTSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionRequest.h b/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionRequest.h new file mode 100644 index 000000000..3029ec635 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionRequest.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_QUERYHOTLINESESSIONREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYHOTLINESESSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryHotlineSessionRequest : public RpcServiceRequest + { + + public: + QueryHotlineSessionRequest(); + ~QueryHotlineSessionRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::string getServicerId()const; + void setServicerId(const std::string& servicerId); + std::string getParams()const; + void setParams(const std::string& params); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getAcid()const; + void setAcid(const std::string& acid); + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + long getQueryEndTime()const; + void setQueryEndTime(long queryEndTime); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + int getPageNo()const; + void setPageNo(int pageNo); + long getQueryStartTime()const; + void setQueryStartTime(long queryStartTime); + std::string getServicerName()const; + void setServicerName(const std::string& servicerName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallResult()const; + void setCallResult(const std::string& callResult); + int getCallType()const; + void setCallType(int callType); + std::string getMemberName()const; + void setMemberName(const std::string& memberName); + std::string getMemberId()const; + void setMemberId(const std::string& memberId); + + private: + long groupId_; + std::string servicerId_; + std::string params_; + std::string groupName_; + std::string acid_; + std::string callingNumber_; + long queryEndTime_; + std::string instanceId_; + std::string calledNumber_; + std::string requestId_; + int pageNo_; + long queryStartTime_; + std::string servicerName_; + int pageSize_; + std::string callResult_; + int callType_; + std::string memberName_; + std::string memberId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYHOTLINESESSIONREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionResult.h b/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionResult.h new file mode 100644 index 000000000..6b469a05e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryHotlineSessionResult.h @@ -0,0 +1,91 @@ +/* + * 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_SCSP_MODEL_QUERYHOTLINESESSIONRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYHOTLINESESSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryHotlineSessionResult : public ServiceResult + { + public: + struct Data + { + struct CallDetailRecordItem + { + int evaluationScore; + std::string groupName; + std::string callResult; + std::string calledNumber; + std::string acid; + std::string createTime; + int callType; + int queueUpContinueTime; + std::string hangUpTime; + std::string callingNumber; + long groupId; + std::string inQueueTime; + std::string memberId; + std::string ringStartTime; + std::string servicerName; + std::string outQueueTime; + int callContinueTime; + std::string hangUpRole; + std::string ringEndTime; + std::string pickUpTime; + std::string memberName; + std::string servicerId; + int evaluationLevel; + int ringContinueTime; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector callDetailRecord; + }; + + + QueryHotlineSessionResult(); + explicit QueryHotlineSessionResult(const std::string &payload); + ~QueryHotlineSessionResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYHOTLINESESSIONRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryRingDetailListRequest.h b/scsp/include/alibabacloud/scsp/model/QueryRingDetailListRequest.h new file mode 100644 index 000000000..9546e5e62 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryRingDetailListRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_QUERYRINGDETAILLISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYRINGDETAILLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryRingDetailListRequest : public RpcServiceRequest + { + + public: + QueryRingDetailListRequest(); + ~QueryRingDetailListRequest(); + + std::string getFromPhoneNumList()const; + void setFromPhoneNumList(const std::string& fromPhoneNumList); + std::string getCallOutStatus()const; + void setCallOutStatus(const std::string& callOutStatus); + long getStartDate()const; + void setStartDate(long startDate); + long getEndDate()const; + void setEndDate(long endDate); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageNo()const; + void setPageNo(int pageNo); + std::string getExtra()const; + void setExtra(const std::string& extra); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getToPhoneNumList()const; + void setToPhoneNumList(const std::string& toPhoneNumList); + + private: + std::string fromPhoneNumList_; + std::string callOutStatus_; + long startDate_; + long endDate_; + std::string instanceId_; + int pageNo_; + std::string extra_; + int pageSize_; + std::string toPhoneNumList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYRINGDETAILLISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryRingDetailListResult.h b/scsp/include/alibabacloud/scsp/model/QueryRingDetailListResult.h new file mode 100644 index 000000000..66a7f6550 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryRingDetailListResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_QUERYRINGDETAILLISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYRINGDETAILLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryRingDetailListResult : public ServiceResult + { + public: + + + QueryRingDetailListResult(); + explicit QueryRingDetailListResult(const std::string &payload); + ~QueryRingDetailListResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYRINGDETAILLISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryServiceConfigRequest.h b/scsp/include/alibabacloud/scsp/model/QueryServiceConfigRequest.h new file mode 100644 index 000000000..0227e9e73 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryServiceConfigRequest.h @@ -0,0 +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_SCSP_MODEL_QUERYSERVICECONFIGREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYSERVICECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryServiceConfigRequest : public RpcServiceRequest + { + + public: + QueryServiceConfigRequest(); + ~QueryServiceConfigRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getViewCode()const; + void setViewCode(const std::string& viewCode); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string instanceId_; + std::string viewCode_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYSERVICECONFIGREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryServiceConfigResult.h b/scsp/include/alibabacloud/scsp/model/QueryServiceConfigResult.h new file mode 100644 index 000000000..03a675dc5 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryServiceConfigResult.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_SCSP_MODEL_QUERYSERVICECONFIGRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYSERVICECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryServiceConfigResult : public ServiceResult + { + public: + + + QueryServiceConfigResult(); + explicit QueryServiceConfigResult(const std::string &payload); + ~QueryServiceConfigResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYSERVICECONFIGRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsRequest.h b/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsRequest.h new file mode 100644 index 000000000..74d7390f4 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_QUERYSKILLGROUPSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYSKILLGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QuerySkillGroupsRequest : public RpcServiceRequest + { + + public: + QuerySkillGroupsRequest(); + ~QuerySkillGroupsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getGroupType()const; + void setGroupType(int groupType); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getPageNo()const; + void setPageNo(int pageNo); + long getGroupId()const; + void setGroupId(long groupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + + private: + std::string instanceId_; + int groupType_; + std::string clientToken_; + int pageNo_; + long groupId_; + int pageSize_; + std::string groupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYSKILLGROUPSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsResult.h b/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsResult.h new file mode 100644 index 000000000..70457c4ad --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QuerySkillGroupsResult.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_SCSP_MODEL_QUERYSKILLGROUPSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYSKILLGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QuerySkillGroupsResult : public ServiceResult + { + public: + struct DataItem + { + std::string description; + std::string skillGroupName; + std::string displayName; + long skillGroupId; + int channelType; + }; + + + QuerySkillGroupsResult(); + explicit QuerySkillGroupsResult(const std::string &payload); + ~QuerySkillGroupsResult(); + int getOnePageSize()const; + int getTotalPage()const; + int getCurrentPage()const; + int getTotalResults()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + int onePageSize_; + int totalPage_; + int currentPage_; + int totalResults_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYSKILLGROUPSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketActionsRequest.h b/scsp/include/alibabacloud/scsp/model/QueryTicketActionsRequest.h new file mode 100644 index 000000000..ccb0e45c0 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketActionsRequest.h @@ -0,0 +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_SCSP_MODEL_QUERYTICKETACTIONSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketActionsRequest : public RpcServiceRequest + { + + public: + QueryTicketActionsRequest(); + ~QueryTicketActionsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTicketId()const; + void setTicketId(const std::string& ticketId); + std::vector getActionCodeList()const; + void setActionCodeList(const std::vector& actionCodeList); + + private: + std::string instanceId_; + std::string ticketId_; + std::vector actionCodeList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETACTIONSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketActionsResult.h b/scsp/include/alibabacloud/scsp/model/QueryTicketActionsResult.h new file mode 100644 index 000000000..8ca31993b --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketActionsResult.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_SCSP_MODEL_QUERYTICKETACTIONSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketActionsResult : public ServiceResult + { + public: + + + QueryTicketActionsResult(); + explicit QueryTicketActionsResult(const std::string &payload); + ~QueryTicketActionsResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETACTIONSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketCountRequest.h b/scsp/include/alibabacloud/scsp/model/QueryTicketCountRequest.h new file mode 100644 index 000000000..3fc34a29e --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketCountRequest.h @@ -0,0 +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_SCSP_MODEL_QUERYTICKETCOUNTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketCountRequest : public RpcServiceRequest + { + + public: + QueryTicketCountRequest(); + ~QueryTicketCountRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getOperatorId()const; + void setOperatorId(long operatorId); + + private: + std::string clientToken_; + std::string instanceId_; + long operatorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETCOUNTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketCountResult.h b/scsp/include/alibabacloud/scsp/model/QueryTicketCountResult.h new file mode 100644 index 000000000..22ab884d3 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketCountResult.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_SCSP_MODEL_QUERYTICKETCOUNTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketCountResult : public ServiceResult + { + public: + + + QueryTicketCountResult(); + explicit QueryTicketCountResult(const std::string &payload); + ~QueryTicketCountResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETCOUNTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketsRequest.h b/scsp/include/alibabacloud/scsp/model/QueryTicketsRequest.h new file mode 100644 index 000000000..d8791050a --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketsRequest.h @@ -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_SCSP_MODEL_QUERYTICKETSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketsRequest : public RpcServiceRequest + { + + public: + QueryTicketsRequest(); + ~QueryTicketsRequest(); + + long getSrType()const; + void setSrType(long srType); + long getTouchId()const; + void setTouchId(long touchId); + long getDealId()const; + void setDealId(long dealId); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + int getTaskStatus()const; + void setTaskStatus(int taskStatus); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + long getCaseId()const; + void setCaseId(long caseId); + std::string getExtra()const; + void setExtra(const std::string& extra); + int getChannelType()const; + void setChannelType(int channelType); + int getPageSize()const; + void setPageSize(int pageSize); + int getCaseType()const; + void setCaseType(int caseType); + int getCaseStatus()const; + void setCaseStatus(int caseStatus); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + long srType_; + long touchId_; + long dealId_; + int currentPage_; + int taskStatus_; + std::string instanceId_; + std::string accountName_; + long caseId_; + std::string extra_; + int channelType_; + int pageSize_; + int caseType_; + int caseStatus_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/QueryTicketsResult.h b/scsp/include/alibabacloud/scsp/model/QueryTicketsResult.h new file mode 100644 index 000000000..25bc4ef8f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/QueryTicketsResult.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_SCSP_MODEL_QUERYTICKETSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_QUERYTICKETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT QueryTicketsResult : public ServiceResult + { + public: + + + QueryTicketsResult(); + explicit QueryTicketsResult(const std::string &payload); + ~QueryTicketsResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_QUERYTICKETSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupRequest.h b/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupRequest.h new file mode 100644 index 000000000..55eb62969 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupRequest.h @@ -0,0 +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_SCSP_MODEL_REMOVESKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_REMOVESKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT RemoveSkillGroupRequest : public RpcServiceRequest + { + + public: + RemoveSkillGroupRequest(); + ~RemoveSkillGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + + private: + std::string instanceId_; + std::string clientToken_; + std::string skillGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_REMOVESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupResult.h b/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupResult.h new file mode 100644 index 000000000..4dfc9013c --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/RemoveSkillGroupResult.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_SCSP_MODEL_REMOVESKILLGROUPRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_REMOVESKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT RemoveSkillGroupResult : public ServiceResult + { + public: + + + RemoveSkillGroupResult(); + explicit RemoveSkillGroupResult(const std::string &payload); + ~RemoveSkillGroupResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_REMOVESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketByIdRequest.h b/scsp/include/alibabacloud/scsp/model/SearchTicketByIdRequest.h new file mode 100644 index 000000000..288c12370 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketByIdRequest.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_SCSP_MODEL_SEARCHTICKETBYIDREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketByIdRequest : public RpcServiceRequest + { + + public: + SearchTicketByIdRequest(); + ~SearchTicketByIdRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTicketId()const; + void setTicketId(long ticketId); + int getStatusCode()const; + void setStatusCode(int statusCode); + + private: + std::string clientToken_; + std::string instanceId_; + long ticketId_; + int statusCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYIDREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketByIdResult.h b/scsp/include/alibabacloud/scsp/model/SearchTicketByIdResult.h new file mode 100644 index 000000000..8dc7b08b8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketByIdResult.h @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYIDRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketByIdResult : public ServiceResult + { + public: + struct Data + { + struct ActivitiesItem + { + std::string activityFormData; + std::string activityCode; + }; + struct ActivityRecordsItem + { + std::string operatorName; + long gmtCreate; + std::string actionCode; + std::string actionCodeDesc; + std::string memo; + }; + std::vector activities; + std::string formData; + long categoryId; + std::vector activityRecords; + std::string carbonCopy; + int priority; + long creatorId; + long createTime; + int creatorType; + std::string ticketName; + long serviceId; + long memberId; + long ticketId; + long modifiedTime; + int caseStatus; + std::string memberName; + std::string fromInfo; + std::string creatorName; + long templateId; + }; + + + SearchTicketByIdResult(); + explicit SearchTicketByIdResult(const std::string &payload); + ~SearchTicketByIdResult(); + 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_SCSP_MODEL_SEARCHTICKETBYIDRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneRequest.h b/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneRequest.h new file mode 100644 index 000000000..cb2267736 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYPHONEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYPHONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketByPhoneRequest : public RpcServiceRequest + { + + public: + SearchTicketByPhoneRequest(); + ~SearchTicketByPhoneRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPhone()const; + void setPhone(const std::string& phone); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getTicketStatus()const; + void setTicketStatus(const std::string& ticketStatus); + int getPageNo()const; + void setPageNo(int pageNo); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTime()const; + void setStartTime(long startTime); + long getEndTime()const; + void setEndTime(long endTime); + + private: + std::string clientToken_; + std::string instanceId_; + std::string phone_; + long templateId_; + std::string ticketStatus_; + int pageNo_; + int pageSize_; + long startTime_; + long endTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYPHONEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneResult.h b/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneResult.h new file mode 100644 index 000000000..520c0979a --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketByPhoneResult.h @@ -0,0 +1,85 @@ +/* + * 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_SCSP_MODEL_SEARCHTICKETBYPHONERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYPHONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketByPhoneResult : public ServiceResult + { + public: + struct DataItem + { + std::string formData; + long categoryId; + std::string carbonCopy; + int priority; + long creatorId; + long createTime; + int creatorType; + std::string taskStatus; + long serviceId; + long memberId; + long ticketId; + long modifiedTime; + int caseStatus; + std::string memberName; + std::string fromInfo; + std::string creatorName; + long templateId; + }; + + + SearchTicketByPhoneResult(); + explicit SearchTicketByPhoneResult(const std::string &payload); + ~SearchTicketByPhoneResult(); + int getOnePageSize()const; + std::string getMessage()const; + int getTotalPage()const; + int getTotalResults()const; + std::vector getData()const; + int getPageNo()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int onePageSize_; + std::string message_; + int totalPage_; + int totalResults_; + std::vector data_; + int pageNo_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETBYPHONERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketListRequest.h b/scsp/include/alibabacloud/scsp/model/SearchTicketListRequest.h new file mode 100644 index 000000000..2458c209f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketListRequest.h @@ -0,0 +1,69 @@ +/* + * 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_SCSP_MODEL_SEARCHTICKETLISTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketListRequest : public RpcServiceRequest + { + + public: + SearchTicketListRequest(); + ~SearchTicketListRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getOperatorId()const; + void setOperatorId(long operatorId); + std::string getTicketStatus()const; + void setTicketStatus(const std::string& ticketStatus); + int getPageNo()const; + void setPageNo(int pageNo); + int getPageSize()const; + void setPageSize(int pageSize); + long getStartTime()const; + void setStartTime(long startTime); + long getEndTime()const; + void setEndTime(long endTime); + + private: + std::string clientToken_; + std::string instanceId_; + long operatorId_; + std::string ticketStatus_; + int pageNo_; + int pageSize_; + long startTime_; + long endTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETLISTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SearchTicketListResult.h b/scsp/include/alibabacloud/scsp/model/SearchTicketListResult.h new file mode 100644 index 000000000..506922bfe --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SearchTicketListResult.h @@ -0,0 +1,85 @@ +/* + * 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_SCSP_MODEL_SEARCHTICKETLISTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SearchTicketListResult : public ServiceResult + { + public: + struct DataItem + { + std::string formData; + long categoryId; + std::string carbonCopy; + int priority; + long creatorId; + long createTime; + int creatorType; + std::string taskStatus; + long serviceId; + long memberId; + long ticketId; + long modifiedTime; + int caseStatus; + std::string memberName; + std::string fromInfo; + std::string creatorName; + long templateId; + }; + + + SearchTicketListResult(); + explicit SearchTicketListResult(const std::string &payload); + ~SearchTicketListResult(); + int getOnePageSize()const; + std::string getMessage()const; + int getTotalPage()const; + int getTotalResults()const; + std::vector getData()const; + int getPageNo()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int onePageSize_; + std::string message_; + int totalPage_; + int totalResults_; + std::vector data_; + int pageNo_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SEARCHTICKETLISTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatRequest.h b/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatRequest.h new file mode 100644 index 000000000..67df6bf6c --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatRequest.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_SCSP_MODEL_SENDHOTLINEHEARTBEATREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SENDHOTLINEHEARTBEATREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SendHotlineHeartBeatRequest : public RpcServiceRequest + { + + public: + SendHotlineHeartBeatRequest(); + ~SendHotlineHeartBeatRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getToken()const; + void setToken(const std::string& token); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string token_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SENDHOTLINEHEARTBEATREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatResult.h b/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatResult.h new file mode 100644 index 000000000..28b779730 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SendHotlineHeartBeatResult.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_SCSP_MODEL_SENDHOTLINEHEARTBEATRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SENDHOTLINEHEARTBEATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SendHotlineHeartBeatResult : public ServiceResult + { + public: + + + SendHotlineHeartBeatResult(); + explicit SendHotlineHeartBeatResult(const std::string &payload); + ~SendHotlineHeartBeatResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SENDHOTLINEHEARTBEATRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SendOutboundCommandRequest.h b/scsp/include/alibabacloud/scsp/model/SendOutboundCommandRequest.h new file mode 100644 index 000000000..032f38f2f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SendOutboundCommandRequest.h @@ -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_SCSP_MODEL_SENDOUTBOUNDCOMMANDREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SENDOUTBOUNDCOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SendOutboundCommandRequest : public RpcServiceRequest + { + + public: + SendOutboundCommandRequest(); + ~SendOutboundCommandRequest(); + + std::string getCallingNumber()const; + void setCallingNumber(const std::string& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCalledNumber()const; + void setCalledNumber(const std::string& calledNumber); + std::string getCustomerInfo()const; + void setCustomerInfo(const std::string& customerInfo); + + private: + std::string callingNumber_; + std::string instanceId_; + std::string accountName_; + std::string calledNumber_; + std::string customerInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SENDOUTBOUNDCOMMANDREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SendOutboundCommandResult.h b/scsp/include/alibabacloud/scsp/model/SendOutboundCommandResult.h new file mode 100644 index 000000000..33e6539e6 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SendOutboundCommandResult.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_SCSP_MODEL_SENDOUTBOUNDCOMMANDRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SENDOUTBOUNDCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SendOutboundCommandResult : public ServiceResult + { + public: + + + SendOutboundCommandResult(); + explicit SendOutboundCommandResult(const std::string &payload); + ~SendOutboundCommandResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SENDOUTBOUNDCOMMANDRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartCallRequest.h b/scsp/include/alibabacloud/scsp/model/StartCallRequest.h new file mode 100644 index 000000000..11d107ff4 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartCallRequest.h @@ -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_SCSP_MODEL_STARTCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartCallRequest : public RpcServiceRequest + { + + public: + StartCallRequest(); + ~StartCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getCallee()const; + void setCallee(const std::string& callee); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string caller_; + std::string callee_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartCallResult.h b/scsp/include/alibabacloud/scsp/model/StartCallResult.h new file mode 100644 index 000000000..ca3818fb6 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartCallResult.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_SCSP_MODEL_STARTCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartCallResult : public ServiceResult + { + public: + + + StartCallResult(); + explicit StartCallResult(const std::string &payload); + ~StartCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartCallV2Request.h b/scsp/include/alibabacloud/scsp/model/StartCallV2Request.h new file mode 100644 index 000000000..189454e44 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartCallV2Request.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_STARTCALLV2REQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCALLV2REQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartCallV2Request : public RpcServiceRequest + { + + public: + StartCallV2Request(); + ~StartCallV2Request(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getJsonMsg()const; + void setJsonMsg(const std::string& jsonMsg); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string caller_; + std::string callee_; + std::string jsonMsg_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCALLV2REQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartCallV2Result.h b/scsp/include/alibabacloud/scsp/model/StartCallV2Result.h new file mode 100644 index 000000000..279156f17 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartCallV2Result.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_SCSP_MODEL_STARTCALLV2RESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCALLV2RESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartCallV2Result : public ServiceResult + { + public: + + + StartCallV2Result(); + explicit StartCallV2Result(const std::string &payload); + ~StartCallV2Result(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCALLV2RESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartChatWorkRequest.h b/scsp/include/alibabacloud/scsp/model/StartChatWorkRequest.h new file mode 100644 index 000000000..b88d25681 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartChatWorkRequest.h @@ -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_SCSP_MODEL_STARTCHATWORKREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCHATWORKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartChatWorkRequest : public RpcServiceRequest + { + + public: + StartChatWorkRequest(); + ~StartChatWorkRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getStationType()const; + void setStationType(const std::string& stationType); + int getWorkType()const; + void setWorkType(int workType); + std::string getUserAgent()const; + void setUserAgent(const std::string& userAgent); + + private: + std::string instanceId_; + std::string accountName_; + std::string stationType_; + int workType_; + std::string userAgent_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCHATWORKREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartChatWorkResult.h b/scsp/include/alibabacloud/scsp/model/StartChatWorkResult.h new file mode 100644 index 000000000..4cbfe4247 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartChatWorkResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_STARTCHATWORKRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTCHATWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartChatWorkResult : public ServiceResult + { + public: + + + StartChatWorkResult(); + explicit StartChatWorkResult(const std::string &payload); + ~StartChatWorkResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTCHATWORKRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartHotlineServiceRequest.h b/scsp/include/alibabacloud/scsp/model/StartHotlineServiceRequest.h new file mode 100644 index 000000000..aa032c42a --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartHotlineServiceRequest.h @@ -0,0 +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_SCSP_MODEL_STARTHOTLINESERVICEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTHOTLINESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartHotlineServiceRequest : public RpcServiceRequest + { + + public: + StartHotlineServiceRequest(); + ~StartHotlineServiceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTHOTLINESERVICEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/StartHotlineServiceResult.h b/scsp/include/alibabacloud/scsp/model/StartHotlineServiceResult.h new file mode 100644 index 000000000..295703a07 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/StartHotlineServiceResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_STARTHOTLINESERVICERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_STARTHOTLINESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT StartHotlineServiceResult : public ServiceResult + { + public: + + + StartHotlineServiceResult(); + explicit StartHotlineServiceResult(const std::string &payload); + ~StartHotlineServiceResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_STARTHOTLINESERVICERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceRequest.h b/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceRequest.h new file mode 100644 index 000000000..52c534b31 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceRequest.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_SCSP_MODEL_SUSPENDHOTLINESERVICEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_SUSPENDHOTLINESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SuspendHotlineServiceRequest : public RpcServiceRequest + { + + public: + SuspendHotlineServiceRequest(); + ~SuspendHotlineServiceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + int getType()const; + void setType(int type); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + int type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SUSPENDHOTLINESERVICEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceResult.h b/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceResult.h new file mode 100644 index 000000000..06c8d93da --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/SuspendHotlineServiceResult.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_SCSP_MODEL_SUSPENDHOTLINESERVICERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_SUSPENDHOTLINESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT SuspendHotlineServiceResult : public ServiceResult + { + public: + + + SuspendHotlineServiceResult(); + explicit SuspendHotlineServiceResult(const std::string &payload); + ~SuspendHotlineServiceResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_SUSPENDHOTLINESERVICERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToAgentRequest.h b/scsp/include/alibabacloud/scsp/model/TransferCallToAgentRequest.h new file mode 100644 index 000000000..eaabe3ecd --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToAgentRequest.h @@ -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_SCSP_MODEL_TRANSFERCALLTOAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToAgentRequest : public RpcServiceRequest + { + + public: + TransferCallToAgentRequest(); + ~TransferCallToAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getTargetAccountName()const; + void setTargetAccountName(const std::string& targetAccountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + int getType()const; + void setType(int type); + std::string getIsSingleTransfer()const; + void setIsSingleTransfer(const std::string& isSingleTransfer); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string targetAccountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + int type_; + std::string isSingleTransfer_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToAgentResult.h b/scsp/include/alibabacloud/scsp/model/TransferCallToAgentResult.h new file mode 100644 index 000000000..0605e25fc --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToAgentResult.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_SCSP_MODEL_TRANSFERCALLTOAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToAgentResult : public ServiceResult + { + public: + + + TransferCallToAgentResult(); + explicit TransferCallToAgentResult(const std::string &payload); + ~TransferCallToAgentResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneRequest.h b/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneRequest.h new file mode 100644 index 000000000..b305339f8 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneRequest.h @@ -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_SCSP_MODEL_TRANSFERCALLTOPHONEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOPHONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToPhoneRequest : public RpcServiceRequest + { + + public: + TransferCallToPhoneRequest(); + ~TransferCallToPhoneRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCaller()const; + void setCaller(const std::string& caller); + std::string getCallee()const; + void setCallee(const std::string& callee); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + int getType()const; + void setType(int type); + bool getIsSingleTransfer()const; + void setIsSingleTransfer(bool isSingleTransfer); + std::string getCallerPhone()const; + void setCallerPhone(const std::string& callerPhone); + std::string getCalleePhone()const; + void setCalleePhone(const std::string& calleePhone); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string caller_; + std::string callee_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + int type_; + bool isSingleTransfer_; + std::string callerPhone_; + std::string calleePhone_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOPHONEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneResult.h b/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneResult.h new file mode 100644 index 000000000..09cd39a43 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToPhoneResult.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_SCSP_MODEL_TRANSFERCALLTOPHONERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOPHONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToPhoneResult : public ServiceResult + { + public: + + + TransferCallToPhoneResult(); + explicit TransferCallToPhoneResult(const std::string &payload); + ~TransferCallToPhoneResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOPHONERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupRequest.h b/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupRequest.h new file mode 100644 index 000000000..04550f9f2 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupRequest.h @@ -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_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToSkillGroupRequest : public RpcServiceRequest + { + + public: + TransferCallToSkillGroupRequest(); + ~TransferCallToSkillGroupRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + long getSkillGroupId()const; + void setSkillGroupId(long skillGroupId); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + int getType()const; + void setType(int type); + bool getIsSingleTransfer()const; + void setIsSingleTransfer(bool isSingleTransfer); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + long skillGroupId_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + int type_; + bool isSingleTransfer_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupResult.h b/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupResult.h new file mode 100644 index 000000000..fcab4dd12 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferCallToSkillGroupResult.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_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferCallToSkillGroupResult : public ServiceResult + { + public: + + + TransferCallToSkillGroupResult(); + explicit TransferCallToSkillGroupResult(const std::string &payload); + ~TransferCallToSkillGroupResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERCALLTOSKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferToThirdCallRequest.h b/scsp/include/alibabacloud/scsp/model/TransferToThirdCallRequest.h new file mode 100644 index 000000000..3c9c96f9f --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferToThirdCallRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_TRANSFERTOTHIRDCALLREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERTOTHIRDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferToThirdCallRequest : public RpcServiceRequest + { + + public: + TransferToThirdCallRequest(); + ~TransferToThirdCallRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getCallId()const; + void setCallId(const std::string& callId); + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getConnectionId()const; + void setConnectionId(const std::string& connectionId); + std::string getHoldConnectionId()const; + void setHoldConnectionId(const std::string& holdConnectionId); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string callId_; + std::string jobId_; + std::string connectionId_; + std::string holdConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERTOTHIRDCALLREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/TransferToThirdCallResult.h b/scsp/include/alibabacloud/scsp/model/TransferToThirdCallResult.h new file mode 100644 index 000000000..49d0059ad --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/TransferToThirdCallResult.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_SCSP_MODEL_TRANSFERTOTHIRDCALLRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_TRANSFERTOTHIRDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT TransferToThirdCallResult : public ServiceResult + { + public: + + + TransferToThirdCallResult(); + explicit TransferToThirdCallResult(const std::string &payload); + ~TransferToThirdCallResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_TRANSFERTOTHIRDCALLRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateAgentRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateAgentRequest.h new file mode 100644 index 000000000..c52b09783 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateAgentRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_UPDATEAGENTREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEAGENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateAgentRequest : public RpcServiceRequest + { + + public: + UpdateAgentRequest(); + ~UpdateAgentRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + std::vector getSkillGroupId()const; + void setSkillGroupId(const std::vector& skillGroupId); + std::vector getSkillGroupIdList()const; + void setSkillGroupIdList(const std::vector& skillGroupIdList); + + private: + std::string clientToken_; + std::string instanceId_; + std::string accountName_; + std::string displayName_; + std::vector skillGroupId_; + std::vector skillGroupIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEAGENTREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateAgentResult.h b/scsp/include/alibabacloud/scsp/model/UpdateAgentResult.h new file mode 100644 index 000000000..0e3f9c074 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateAgentResult.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_SCSP_MODEL_UPDATEAGENTRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateAgentResult : public ServiceResult + { + public: + + + UpdateAgentResult(); + explicit UpdateAgentResult(const std::string &payload); + ~UpdateAgentResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEAGENTRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateCustomerRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateCustomerRequest.h new file mode 100644 index 000000000..e745a45ea --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateCustomerRequest.h @@ -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_SCSP_MODEL_UPDATECUSTOMERREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATECUSTOMERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateCustomerRequest : public RpcServiceRequest + { + + public: + UpdateCustomerRequest(); + ~UpdateCustomerRequest(); + + std::string getIndustry()const; + void setIndustry(const std::string& industry); + int getOuterIdType()const; + void setOuterIdType(int outerIdType); + std::string getDingding()const; + void setDingding(const std::string& dingding); + std::string getBizType()const; + void setBizType(const std::string& bizType); + std::string getTypeCode()const; + void setTypeCode(const std::string& typeCode); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContacter()const; + void setContacter(const std::string& contacter); + long getProdLineId()const; + void setProdLineId(long prodLineId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getName()const; + void setName(const std::string& name); + long getCustomerId()const; + void setCustomerId(long customerId); + std::string getManagerName()const; + void setManagerName(const std::string& managerName); + std::string getOuterId()const; + void setOuterId(const std::string& outerId); + std::string getPosition()const; + void setPosition(const std::string& position); + std::string getEmail()const; + void setEmail(const std::string& email); + + private: + std::string industry_; + int outerIdType_; + std::string dingding_; + std::string bizType_; + std::string typeCode_; + std::string instanceId_; + std::string contacter_; + long prodLineId_; + std::string phone_; + std::string name_; + long customerId_; + std::string managerName_; + std::string outerId_; + std::string position_; + std::string email_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATECUSTOMERREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateCustomerResult.h b/scsp/include/alibabacloud/scsp/model/UpdateCustomerResult.h new file mode 100644 index 000000000..420293b36 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateCustomerResult.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_SCSP_MODEL_UPDATECUSTOMERRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATECUSTOMERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateCustomerResult : public ServiceResult + { + public: + + + UpdateCustomerResult(); + explicit UpdateCustomerResult(const std::string &payload); + ~UpdateCustomerResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATECUSTOMERRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationRequest.h new file mode 100644 index 000000000..57ecb8b36 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationRequest.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_SCSP_MODEL_UPDATEENTITYTAGRELATIONREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEENTITYTAGRELATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateEntityTagRelationRequest : public RpcServiceRequest + { + + public: + UpdateEntityTagRelationRequest(); + ~UpdateEntityTagRelationRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getEntityTagParam()const; + void setEntityTagParam(const std::string& entityTagParam); + + private: + std::string instanceId_; + std::string entityTagParam_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEENTITYTAGRELATIONREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationResult.h b/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationResult.h new file mode 100644 index 000000000..8631d0506 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateEntityTagRelationResult.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_SCSP_MODEL_UPDATEENTITYTAGRELATIONRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEENTITYTAGRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateEntityTagRelationResult : public ServiceResult + { + public: + + + UpdateEntityTagRelationResult(); + explicit UpdateEntityTagRelationResult(const std::string &payload); + ~UpdateEntityTagRelationResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEENTITYTAGRELATIONRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateRingStatusRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateRingStatusRequest.h new file mode 100644 index 000000000..ac27a9fb0 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateRingStatusRequest.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_SCSP_MODEL_UPDATERINGSTATUSREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATERINGSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateRingStatusRequest : public RpcServiceRequest + { + + public: + UpdateRingStatusRequest(); + ~UpdateRingStatusRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getExtra()const; + void setExtra(const std::string& extra); + std::string getCallOutStatus()const; + void setCallOutStatus(const std::string& callOutStatus); + std::string getUniqueBizId()const; + void setUniqueBizId(const std::string& uniqueBizId); + + private: + std::string instanceId_; + std::string extra_; + std::string callOutStatus_; + std::string uniqueBizId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATERINGSTATUSREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateRingStatusResult.h b/scsp/include/alibabacloud/scsp/model/UpdateRingStatusResult.h new file mode 100644 index 000000000..bfc04c530 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateRingStatusResult.h @@ -0,0 +1,59 @@ +/* + * 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_SCSP_MODEL_UPDATERINGSTATUSRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATERINGSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateRingStatusResult : public ServiceResult + { + public: + + + UpdateRingStatusResult(); + explicit UpdateRingStatusResult(const std::string &payload); + ~UpdateRingStatusResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATERINGSTATUSRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateRoleRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateRoleRequest.h new file mode 100644 index 000000000..48f27e336 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateRoleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SCSP_MODEL_UPDATEROLEREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateRoleRequest : public RpcServiceRequest + { + + public: + UpdateRoleRequest(); + ~UpdateRoleRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getRoleId()const; + void setRoleId(long roleId); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::vector getPermissionId()const; + void setPermissionId(const std::vector& permissionId); + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + + private: + std::string clientToken_; + std::string instanceId_; + long roleId_; + std::string roleName_; + std::vector permissionId_; + std::string _operator_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEROLEREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateRoleResult.h b/scsp/include/alibabacloud/scsp/model/UpdateRoleResult.h new file mode 100644 index 000000000..aada9c987 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateRoleResult.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_SCSP_MODEL_UPDATEROLERESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATEROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateRoleResult : public ServiceResult + { + public: + + + UpdateRoleResult(); + explicit UpdateRoleResult(const std::string &payload); + ~UpdateRoleResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATEROLERESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupRequest.h new file mode 100644 index 000000000..9bc4888a4 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SCSP_MODEL_UPDATESKILLGROUPREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATESKILLGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateSkillGroupRequest : public RpcServiceRequest + { + + public: + UpdateSkillGroupRequest(); + ~UpdateSkillGroupRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getSkillGroupId()const; + void setSkillGroupId(long skillGroupId); + std::string getDisplayName()const; + void setDisplayName(const std::string& displayName); + long getChannelType()const; + void setChannelType(long channelType); + std::string getSkillGroupName()const; + void setSkillGroupName(const std::string& skillGroupName); + std::string getDescription()const; + void setDescription(const std::string& description); + + private: + std::string instanceId_; + std::string clientToken_; + long skillGroupId_; + std::string displayName_; + long channelType_; + std::string skillGroupName_; + std::string description_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATESKILLGROUPREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupResult.h b/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupResult.h new file mode 100644 index 000000000..3aaa371a7 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateSkillGroupResult.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_SCSP_MODEL_UPDATESKILLGROUPRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATESKILLGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateSkillGroupResult : public ServiceResult + { + public: + + + UpdateSkillGroupResult(); + explicit UpdateSkillGroupResult(const std::string &payload); + ~UpdateSkillGroupResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATESKILLGROUPRESULT_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateTicketRequest.h b/scsp/include/alibabacloud/scsp/model/UpdateTicketRequest.h new file mode 100644 index 000000000..e39e7b6ed --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateTicketRequest.h @@ -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_SCSP_MODEL_UPDATETICKETREQUEST_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATETICKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateTicketRequest : public RpcServiceRequest + { + + public: + UpdateTicketRequest(); + ~UpdateTicketRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getTicketId()const; + void setTicketId(long ticketId); + long getOperatorId()const; + void setOperatorId(long operatorId); + std::string getFormData()const; + void setFormData(const std::string& formData); + + private: + std::string clientToken_; + std::string instanceId_; + long ticketId_; + long operatorId_; + std::string formData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATETICKETREQUEST_H_ \ No newline at end of file diff --git a/scsp/include/alibabacloud/scsp/model/UpdateTicketResult.h b/scsp/include/alibabacloud/scsp/model/UpdateTicketResult.h new file mode 100644 index 000000000..85ef0a005 --- /dev/null +++ b/scsp/include/alibabacloud/scsp/model/UpdateTicketResult.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_SCSP_MODEL_UPDATETICKETRESULT_H_ +#define ALIBABACLOUD_SCSP_MODEL_UPDATETICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Scsp + { + namespace Model + { + class ALIBABACLOUD_SCSP_EXPORT UpdateTicketResult : public ServiceResult + { + public: + + + UpdateTicketResult(); + explicit UpdateTicketResult(const std::string &payload); + ~UpdateTicketResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SCSP_MODEL_UPDATETICKETRESULT_H_ \ No newline at end of file diff --git a/scsp/src/ScspClient.cc b/scsp/src/ScspClient.cc new file mode 100644 index 000000000..75f021676 --- /dev/null +++ b/scsp/src/ScspClient.cc @@ -0,0 +1,2933 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +namespace +{ + const std::string SERVICE_NAME = "scsp"; +} + +ScspClient::ScspClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ScspClient::ScspClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ScspClient::ScspClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ScspClient::~ScspClient() +{} + +ScspClient::AnswerCallOutcome ScspClient::answerCall(const AnswerCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AnswerCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AnswerCallOutcome(AnswerCallResult(outcome.result())); + else + return AnswerCallOutcome(outcome.error()); +} + +void ScspClient::answerCallAsync(const AnswerCallRequest& request, const AnswerCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, answerCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::AnswerCallOutcomeCallable ScspClient::answerCallCallable(const AnswerCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->answerCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::AppMessagePushOutcome ScspClient::appMessagePush(const AppMessagePushRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AppMessagePushOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AppMessagePushOutcome(AppMessagePushResult(outcome.result())); + else + return AppMessagePushOutcome(outcome.error()); +} + +void ScspClient::appMessagePushAsync(const AppMessagePushRequest& request, const AppMessagePushAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, appMessagePush(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::AppMessagePushOutcomeCallable ScspClient::appMessagePushCallable(const AppMessagePushRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->appMessagePush(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::AssignTicketOutcome ScspClient::assignTicket(const AssignTicketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssignTicketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssignTicketOutcome(AssignTicketResult(outcome.result())); + else + return AssignTicketOutcome(outcome.error()); +} + +void ScspClient::assignTicketAsync(const AssignTicketRequest& request, const AssignTicketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assignTicket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::AssignTicketOutcomeCallable ScspClient::assignTicketCallable(const AssignTicketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assignTicket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ChangeChatAgentStatusOutcome ScspClient::changeChatAgentStatus(const ChangeChatAgentStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeChatAgentStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeChatAgentStatusOutcome(ChangeChatAgentStatusResult(outcome.result())); + else + return ChangeChatAgentStatusOutcome(outcome.error()); +} + +void ScspClient::changeChatAgentStatusAsync(const ChangeChatAgentStatusRequest& request, const ChangeChatAgentStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeChatAgentStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ChangeChatAgentStatusOutcomeCallable ScspClient::changeChatAgentStatusCallable(const ChangeChatAgentStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeChatAgentStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CloseTicketOutcome ScspClient::closeTicket(const CloseTicketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseTicketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseTicketOutcome(CloseTicketResult(outcome.result())); + else + return CloseTicketOutcome(outcome.error()); +} + +void ScspClient::closeTicketAsync(const CloseTicketRequest& request, const CloseTicketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeTicket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CloseTicketOutcomeCallable ScspClient::closeTicketCallable(const CloseTicketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeTicket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateAgentOutcome ScspClient::createAgent(const CreateAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAgentOutcome(CreateAgentResult(outcome.result())); + else + return CreateAgentOutcome(outcome.error()); +} + +void ScspClient::createAgentAsync(const CreateAgentRequest& request, const CreateAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateAgentOutcomeCallable ScspClient::createAgentCallable(const CreateAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateCustomerOutcome ScspClient::createCustomer(const CreateCustomerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomerOutcome(CreateCustomerResult(outcome.result())); + else + return CreateCustomerOutcome(outcome.error()); +} + +void ScspClient::createCustomerAsync(const CreateCustomerRequest& request, const CreateCustomerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateCustomerOutcomeCallable ScspClient::createCustomerCallable(const CreateCustomerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateEntityIvrRouteOutcome ScspClient::createEntityIvrRoute(const CreateEntityIvrRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEntityIvrRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEntityIvrRouteOutcome(CreateEntityIvrRouteResult(outcome.result())); + else + return CreateEntityIvrRouteOutcome(outcome.error()); +} + +void ScspClient::createEntityIvrRouteAsync(const CreateEntityIvrRouteRequest& request, const CreateEntityIvrRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEntityIvrRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateEntityIvrRouteOutcomeCallable ScspClient::createEntityIvrRouteCallable(const CreateEntityIvrRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEntityIvrRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateOuterCallCenterDataOutcome ScspClient::createOuterCallCenterData(const CreateOuterCallCenterDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOuterCallCenterDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOuterCallCenterDataOutcome(CreateOuterCallCenterDataResult(outcome.result())); + else + return CreateOuterCallCenterDataOutcome(outcome.error()); +} + +void ScspClient::createOuterCallCenterDataAsync(const CreateOuterCallCenterDataRequest& request, const CreateOuterCallCenterDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOuterCallCenterData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateOuterCallCenterDataOutcomeCallable ScspClient::createOuterCallCenterDataCallable(const CreateOuterCallCenterDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOuterCallCenterData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateRoleOutcome ScspClient::createRole(const CreateRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRoleOutcome(CreateRoleResult(outcome.result())); + else + return CreateRoleOutcome(outcome.error()); +} + +void ScspClient::createRoleAsync(const CreateRoleRequest& request, const CreateRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateRoleOutcomeCallable ScspClient::createRoleCallable(const CreateRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateSkillGroupOutcome ScspClient::createSkillGroup(const CreateSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSkillGroupOutcome(CreateSkillGroupResult(outcome.result())); + else + return CreateSkillGroupOutcome(outcome.error()); +} + +void ScspClient::createSkillGroupAsync(const CreateSkillGroupRequest& request, const CreateSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateSkillGroupOutcomeCallable ScspClient::createSkillGroupCallable(const CreateSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateThirdSsoAgentOutcome ScspClient::createThirdSsoAgent(const CreateThirdSsoAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateThirdSsoAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateThirdSsoAgentOutcome(CreateThirdSsoAgentResult(outcome.result())); + else + return CreateThirdSsoAgentOutcome(outcome.error()); +} + +void ScspClient::createThirdSsoAgentAsync(const CreateThirdSsoAgentRequest& request, const CreateThirdSsoAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createThirdSsoAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateThirdSsoAgentOutcomeCallable ScspClient::createThirdSsoAgentCallable(const CreateThirdSsoAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createThirdSsoAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateTicketOutcome ScspClient::createTicket(const CreateTicketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTicketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTicketOutcome(CreateTicketResult(outcome.result())); + else + return CreateTicketOutcome(outcome.error()); +} + +void ScspClient::createTicketAsync(const CreateTicketRequest& request, const CreateTicketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTicket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateTicketOutcomeCallable ScspClient::createTicketCallable(const CreateTicketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTicket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::CreateTicketWithBizDataOutcome ScspClient::createTicketWithBizData(const CreateTicketWithBizDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTicketWithBizDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTicketWithBizDataOutcome(CreateTicketWithBizDataResult(outcome.result())); + else + return CreateTicketWithBizDataOutcome(outcome.error()); +} + +void ScspClient::createTicketWithBizDataAsync(const CreateTicketWithBizDataRequest& request, const CreateTicketWithBizDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTicketWithBizData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::CreateTicketWithBizDataOutcomeCallable ScspClient::createTicketWithBizDataCallable(const CreateTicketWithBizDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTicketWithBizData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::DeleteAgentOutcome ScspClient::deleteAgent(const DeleteAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAgentOutcome(DeleteAgentResult(outcome.result())); + else + return DeleteAgentOutcome(outcome.error()); +} + +void ScspClient::deleteAgentAsync(const DeleteAgentRequest& request, const DeleteAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::DeleteAgentOutcomeCallable ScspClient::deleteAgentCallable(const DeleteAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::DeleteEntityRouteOutcome ScspClient::deleteEntityRoute(const DeleteEntityRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEntityRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEntityRouteOutcome(DeleteEntityRouteResult(outcome.result())); + else + return DeleteEntityRouteOutcome(outcome.error()); +} + +void ScspClient::deleteEntityRouteAsync(const DeleteEntityRouteRequest& request, const DeleteEntityRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEntityRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::DeleteEntityRouteOutcomeCallable ScspClient::deleteEntityRouteCallable(const DeleteEntityRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEntityRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::DisableRoleOutcome ScspClient::disableRole(const DisableRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableRoleOutcome(DisableRoleResult(outcome.result())); + else + return DisableRoleOutcome(outcome.error()); +} + +void ScspClient::disableRoleAsync(const DisableRoleRequest& request, const DisableRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::DisableRoleOutcomeCallable ScspClient::disableRoleCallable(const DisableRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::EditEntityRouteOutcome ScspClient::editEntityRoute(const EditEntityRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EditEntityRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EditEntityRouteOutcome(EditEntityRouteResult(outcome.result())); + else + return EditEntityRouteOutcome(outcome.error()); +} + +void ScspClient::editEntityRouteAsync(const EditEntityRouteRequest& request, const EditEntityRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, editEntityRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::EditEntityRouteOutcomeCallable ScspClient::editEntityRouteCallable(const EditEntityRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->editEntityRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::EnableRoleOutcome ScspClient::enableRole(const EnableRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableRoleOutcome(EnableRoleResult(outcome.result())); + else + return EnableRoleOutcome(outcome.error()); +} + +void ScspClient::enableRoleAsync(const EnableRoleRequest& request, const EnableRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::EnableRoleOutcomeCallable ScspClient::enableRoleCallable(const EnableRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ExecuteActivityOutcome ScspClient::executeActivity(const ExecuteActivityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecuteActivityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecuteActivityOutcome(ExecuteActivityResult(outcome.result())); + else + return ExecuteActivityOutcome(outcome.error()); +} + +void ScspClient::executeActivityAsync(const ExecuteActivityRequest& request, const ExecuteActivityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executeActivity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ExecuteActivityOutcomeCallable ScspClient::executeActivityCallable(const ExecuteActivityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executeActivity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::FetchCallOutcome ScspClient::fetchCall(const FetchCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FetchCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FetchCallOutcome(FetchCallResult(outcome.result())); + else + return FetchCallOutcome(outcome.error()); +} + +void ScspClient::fetchCallAsync(const FetchCallRequest& request, const FetchCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, fetchCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::FetchCallOutcomeCallable ScspClient::fetchCallCallable(const FetchCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->fetchCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::FinishHotlineServiceOutcome ScspClient::finishHotlineService(const FinishHotlineServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FinishHotlineServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FinishHotlineServiceOutcome(FinishHotlineServiceResult(outcome.result())); + else + return FinishHotlineServiceOutcome(outcome.error()); +} + +void ScspClient::finishHotlineServiceAsync(const FinishHotlineServiceRequest& request, const FinishHotlineServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, finishHotlineService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::FinishHotlineServiceOutcomeCallable ScspClient::finishHotlineServiceCallable(const FinishHotlineServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->finishHotlineService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GenerateWebSocketSignOutcome ScspClient::generateWebSocketSign(const GenerateWebSocketSignRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateWebSocketSignOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateWebSocketSignOutcome(GenerateWebSocketSignResult(outcome.result())); + else + return GenerateWebSocketSignOutcome(outcome.error()); +} + +void ScspClient::generateWebSocketSignAsync(const GenerateWebSocketSignRequest& request, const GenerateWebSocketSignAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateWebSocketSign(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GenerateWebSocketSignOutcomeCallable ScspClient::generateWebSocketSignCallable(const GenerateWebSocketSignRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateWebSocketSign(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetAgentOutcome ScspClient::getAgent(const GetAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAgentOutcome(GetAgentResult(outcome.result())); + else + return GetAgentOutcome(outcome.error()); +} + +void ScspClient::getAgentAsync(const GetAgentRequest& request, const GetAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetAgentOutcomeCallable ScspClient::getAgentCallable(const GetAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetAuthInfoOutcome ScspClient::getAuthInfo(const GetAuthInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAuthInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAuthInfoOutcome(GetAuthInfoResult(outcome.result())); + else + return GetAuthInfoOutcome(outcome.error()); +} + +void ScspClient::getAuthInfoAsync(const GetAuthInfoRequest& request, const GetAuthInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAuthInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetAuthInfoOutcomeCallable ScspClient::getAuthInfoCallable(const GetAuthInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAuthInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetCMSIdByForeignIdOutcome ScspClient::getCMSIdByForeignId(const GetCMSIdByForeignIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCMSIdByForeignIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCMSIdByForeignIdOutcome(GetCMSIdByForeignIdResult(outcome.result())); + else + return GetCMSIdByForeignIdOutcome(outcome.error()); +} + +void ScspClient::getCMSIdByForeignIdAsync(const GetCMSIdByForeignIdRequest& request, const GetCMSIdByForeignIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCMSIdByForeignId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetCMSIdByForeignIdOutcomeCallable ScspClient::getCMSIdByForeignIdCallable(const GetCMSIdByForeignIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCMSIdByForeignId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetCallsPerDayOutcome ScspClient::getCallsPerDay(const GetCallsPerDayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCallsPerDayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCallsPerDayOutcome(GetCallsPerDayResult(outcome.result())); + else + return GetCallsPerDayOutcome(outcome.error()); +} + +void ScspClient::getCallsPerDayAsync(const GetCallsPerDayRequest& request, const GetCallsPerDayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCallsPerDay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetCallsPerDayOutcomeCallable ScspClient::getCallsPerDayCallable(const GetCallsPerDayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCallsPerDay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetEntityRouteOutcome ScspClient::getEntityRoute(const GetEntityRouteRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEntityRouteOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEntityRouteOutcome(GetEntityRouteResult(outcome.result())); + else + return GetEntityRouteOutcome(outcome.error()); +} + +void ScspClient::getEntityRouteAsync(const GetEntityRouteRequest& request, const GetEntityRouteAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEntityRoute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetEntityRouteOutcomeCallable ScspClient::getEntityRouteCallable(const GetEntityRouteRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEntityRoute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetEntityRouteListOutcome ScspClient::getEntityRouteList(const GetEntityRouteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEntityRouteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEntityRouteListOutcome(GetEntityRouteListResult(outcome.result())); + else + return GetEntityRouteListOutcome(outcome.error()); +} + +void ScspClient::getEntityRouteListAsync(const GetEntityRouteListRequest& request, const GetEntityRouteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEntityRouteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetEntityRouteListOutcomeCallable ScspClient::getEntityRouteListCallable(const GetEntityRouteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEntityRouteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetEntityTagRelationOutcome ScspClient::getEntityTagRelation(const GetEntityTagRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEntityTagRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEntityTagRelationOutcome(GetEntityTagRelationResult(outcome.result())); + else + return GetEntityTagRelationOutcome(outcome.error()); +} + +void ScspClient::getEntityTagRelationAsync(const GetEntityTagRelationRequest& request, const GetEntityTagRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEntityTagRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetEntityTagRelationOutcomeCallable ScspClient::getEntityTagRelationCallable(const GetEntityTagRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEntityTagRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetGrantedRoleIdsOutcome ScspClient::getGrantedRoleIds(const GetGrantedRoleIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGrantedRoleIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGrantedRoleIdsOutcome(GetGrantedRoleIdsResult(outcome.result())); + else + return GetGrantedRoleIdsOutcome(outcome.error()); +} + +void ScspClient::getGrantedRoleIdsAsync(const GetGrantedRoleIdsRequest& request, const GetGrantedRoleIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGrantedRoleIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetGrantedRoleIdsOutcomeCallable ScspClient::getGrantedRoleIdsCallable(const GetGrantedRoleIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGrantedRoleIds(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetHotlineAgentDetailOutcome ScspClient::getHotlineAgentDetail(const GetHotlineAgentDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHotlineAgentDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHotlineAgentDetailOutcome(GetHotlineAgentDetailResult(outcome.result())); + else + return GetHotlineAgentDetailOutcome(outcome.error()); +} + +void ScspClient::getHotlineAgentDetailAsync(const GetHotlineAgentDetailRequest& request, const GetHotlineAgentDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHotlineAgentDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetHotlineAgentDetailOutcomeCallable ScspClient::getHotlineAgentDetailCallable(const GetHotlineAgentDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHotlineAgentDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetHotlineAgentDetailReportOutcome ScspClient::getHotlineAgentDetailReport(const GetHotlineAgentDetailReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHotlineAgentDetailReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHotlineAgentDetailReportOutcome(GetHotlineAgentDetailReportResult(outcome.result())); + else + return GetHotlineAgentDetailReportOutcome(outcome.error()); +} + +void ScspClient::getHotlineAgentDetailReportAsync(const GetHotlineAgentDetailReportRequest& request, const GetHotlineAgentDetailReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHotlineAgentDetailReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetHotlineAgentDetailReportOutcomeCallable ScspClient::getHotlineAgentDetailReportCallable(const GetHotlineAgentDetailReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHotlineAgentDetailReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetHotlineAgentStatusOutcome ScspClient::getHotlineAgentStatus(const GetHotlineAgentStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHotlineAgentStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHotlineAgentStatusOutcome(GetHotlineAgentStatusResult(outcome.result())); + else + return GetHotlineAgentStatusOutcome(outcome.error()); +} + +void ScspClient::getHotlineAgentStatusAsync(const GetHotlineAgentStatusRequest& request, const GetHotlineAgentStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHotlineAgentStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetHotlineAgentStatusOutcomeCallable ScspClient::getHotlineAgentStatusCallable(const GetHotlineAgentStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHotlineAgentStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetHotlineGroupDetailReportOutcome ScspClient::getHotlineGroupDetailReport(const GetHotlineGroupDetailReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHotlineGroupDetailReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHotlineGroupDetailReportOutcome(GetHotlineGroupDetailReportResult(outcome.result())); + else + return GetHotlineGroupDetailReportOutcome(outcome.error()); +} + +void ScspClient::getHotlineGroupDetailReportAsync(const GetHotlineGroupDetailReportRequest& request, const GetHotlineGroupDetailReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHotlineGroupDetailReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetHotlineGroupDetailReportOutcomeCallable ScspClient::getHotlineGroupDetailReportCallable(const GetHotlineGroupDetailReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHotlineGroupDetailReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetHotlineWaitingNumberOutcome ScspClient::getHotlineWaitingNumber(const GetHotlineWaitingNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHotlineWaitingNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHotlineWaitingNumberOutcome(GetHotlineWaitingNumberResult(outcome.result())); + else + return GetHotlineWaitingNumberOutcome(outcome.error()); +} + +void ScspClient::getHotlineWaitingNumberAsync(const GetHotlineWaitingNumberRequest& request, const GetHotlineWaitingNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHotlineWaitingNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetHotlineWaitingNumberOutcomeCallable ScspClient::getHotlineWaitingNumberCallable(const GetHotlineWaitingNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHotlineWaitingNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetNumLocationOutcome ScspClient::getNumLocation(const GetNumLocationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetNumLocationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetNumLocationOutcome(GetNumLocationResult(outcome.result())); + else + return GetNumLocationOutcome(outcome.error()); +} + +void ScspClient::getNumLocationAsync(const GetNumLocationRequest& request, const GetNumLocationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getNumLocation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetNumLocationOutcomeCallable ScspClient::getNumLocationCallable(const GetNumLocationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getNumLocation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetOutbounNumListOutcome ScspClient::getOutbounNumList(const GetOutbounNumListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOutbounNumListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOutbounNumListOutcome(GetOutbounNumListResult(outcome.result())); + else + return GetOutbounNumListOutcome(outcome.error()); +} + +void ScspClient::getOutbounNumListAsync(const GetOutbounNumListRequest& request, const GetOutbounNumListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOutbounNumList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetOutbounNumListOutcomeCallable ScspClient::getOutbounNumListCallable(const GetOutbounNumListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOutbounNumList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetOuterCallCenterDataListOutcome ScspClient::getOuterCallCenterDataList(const GetOuterCallCenterDataListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOuterCallCenterDataListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOuterCallCenterDataListOutcome(GetOuterCallCenterDataListResult(outcome.result())); + else + return GetOuterCallCenterDataListOutcome(outcome.error()); +} + +void ScspClient::getOuterCallCenterDataListAsync(const GetOuterCallCenterDataListRequest& request, const GetOuterCallCenterDataListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOuterCallCenterDataList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetOuterCallCenterDataListOutcomeCallable ScspClient::getOuterCallCenterDataListCallable(const GetOuterCallCenterDataListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOuterCallCenterDataList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetTagListOutcome ScspClient::getTagList(const GetTagListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagListOutcome(GetTagListResult(outcome.result())); + else + return GetTagListOutcome(outcome.error()); +} + +void ScspClient::getTagListAsync(const GetTagListRequest& request, const GetTagListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetTagListOutcomeCallable ScspClient::getTagListCallable(const GetTagListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetTicketTemplateSchemaOutcome ScspClient::getTicketTemplateSchema(const GetTicketTemplateSchemaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTicketTemplateSchemaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTicketTemplateSchemaOutcome(GetTicketTemplateSchemaResult(outcome.result())); + else + return GetTicketTemplateSchemaOutcome(outcome.error()); +} + +void ScspClient::getTicketTemplateSchemaAsync(const GetTicketTemplateSchemaRequest& request, const GetTicketTemplateSchemaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTicketTemplateSchema(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetTicketTemplateSchemaOutcomeCallable ScspClient::getTicketTemplateSchemaCallable(const GetTicketTemplateSchemaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTicketTemplateSchema(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GetUserTokenOutcome ScspClient::getUserToken(const GetUserTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserTokenOutcome(GetUserTokenResult(outcome.result())); + else + return GetUserTokenOutcome(outcome.error()); +} + +void ScspClient::getUserTokenAsync(const GetUserTokenRequest& request, const GetUserTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GetUserTokenOutcomeCallable ScspClient::getUserTokenCallable(const GetUserTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::GrantRolesOutcome ScspClient::grantRoles(const GrantRolesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantRolesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantRolesOutcome(GrantRolesResult(outcome.result())); + else + return GrantRolesOutcome(outcome.error()); +} + +void ScspClient::grantRolesAsync(const GrantRolesRequest& request, const GrantRolesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantRoles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::GrantRolesOutcomeCallable ScspClient::grantRolesCallable(const GrantRolesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantRoles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::HangupCallOutcome ScspClient::hangupCall(const HangupCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return HangupCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return HangupCallOutcome(HangupCallResult(outcome.result())); + else + return HangupCallOutcome(outcome.error()); +} + +void ScspClient::hangupCallAsync(const HangupCallRequest& request, const HangupCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, hangupCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::HangupCallOutcomeCallable ScspClient::hangupCallCallable(const HangupCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->hangupCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::HangupThirdCallOutcome ScspClient::hangupThirdCall(const HangupThirdCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return HangupThirdCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return HangupThirdCallOutcome(HangupThirdCallResult(outcome.result())); + else + return HangupThirdCallOutcome(outcome.error()); +} + +void ScspClient::hangupThirdCallAsync(const HangupThirdCallRequest& request, const HangupThirdCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, hangupThirdCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::HangupThirdCallOutcomeCallable ScspClient::hangupThirdCallCallable(const HangupThirdCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->hangupThirdCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::HoldCallOutcome ScspClient::holdCall(const HoldCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return HoldCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return HoldCallOutcome(HoldCallResult(outcome.result())); + else + return HoldCallOutcome(outcome.error()); +} + +void ScspClient::holdCallAsync(const HoldCallRequest& request, const HoldCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, holdCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::HoldCallOutcomeCallable ScspClient::holdCallCallable(const HoldCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->holdCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::JoinThirdCallOutcome ScspClient::joinThirdCall(const JoinThirdCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return JoinThirdCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinThirdCallOutcome(JoinThirdCallResult(outcome.result())); + else + return JoinThirdCallOutcome(outcome.error()); +} + +void ScspClient::joinThirdCallAsync(const JoinThirdCallRequest& request, const JoinThirdCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinThirdCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::JoinThirdCallOutcomeCallable ScspClient::joinThirdCallCallable(const JoinThirdCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinThirdCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ListAgentBySkillGroupIdOutcome ScspClient::listAgentBySkillGroupId(const ListAgentBySkillGroupIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentBySkillGroupIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentBySkillGroupIdOutcome(ListAgentBySkillGroupIdResult(outcome.result())); + else + return ListAgentBySkillGroupIdOutcome(outcome.error()); +} + +void ScspClient::listAgentBySkillGroupIdAsync(const ListAgentBySkillGroupIdRequest& request, const ListAgentBySkillGroupIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentBySkillGroupId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ListAgentBySkillGroupIdOutcomeCallable ScspClient::listAgentBySkillGroupIdCallable(const ListAgentBySkillGroupIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentBySkillGroupId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ListHotlineRecordOutcome ScspClient::listHotlineRecord(const ListHotlineRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListHotlineRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListHotlineRecordOutcome(ListHotlineRecordResult(outcome.result())); + else + return ListHotlineRecordOutcome(outcome.error()); +} + +void ScspClient::listHotlineRecordAsync(const ListHotlineRecordRequest& request, const ListHotlineRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listHotlineRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ListHotlineRecordOutcomeCallable ScspClient::listHotlineRecordCallable(const ListHotlineRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listHotlineRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ListOutboundPhoneNumberOutcome ScspClient::listOutboundPhoneNumber(const ListOutboundPhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOutboundPhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOutboundPhoneNumberOutcome(ListOutboundPhoneNumberResult(outcome.result())); + else + return ListOutboundPhoneNumberOutcome(outcome.error()); +} + +void ScspClient::listOutboundPhoneNumberAsync(const ListOutboundPhoneNumberRequest& request, const ListOutboundPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOutboundPhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ListOutboundPhoneNumberOutcomeCallable ScspClient::listOutboundPhoneNumberCallable(const ListOutboundPhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOutboundPhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::ListSkillGroupOutcome ScspClient::listSkillGroup(const ListSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSkillGroupOutcome(ListSkillGroupResult(outcome.result())); + else + return ListSkillGroupOutcome(outcome.error()); +} + +void ScspClient::listSkillGroupAsync(const ListSkillGroupRequest& request, const ListSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::ListSkillGroupOutcomeCallable ScspClient::listSkillGroupCallable(const ListSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryHotlineSessionOutcome ScspClient::queryHotlineSession(const QueryHotlineSessionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryHotlineSessionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryHotlineSessionOutcome(QueryHotlineSessionResult(outcome.result())); + else + return QueryHotlineSessionOutcome(outcome.error()); +} + +void ScspClient::queryHotlineSessionAsync(const QueryHotlineSessionRequest& request, const QueryHotlineSessionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryHotlineSession(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryHotlineSessionOutcomeCallable ScspClient::queryHotlineSessionCallable(const QueryHotlineSessionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryHotlineSession(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryRingDetailListOutcome ScspClient::queryRingDetailList(const QueryRingDetailListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRingDetailListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRingDetailListOutcome(QueryRingDetailListResult(outcome.result())); + else + return QueryRingDetailListOutcome(outcome.error()); +} + +void ScspClient::queryRingDetailListAsync(const QueryRingDetailListRequest& request, const QueryRingDetailListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRingDetailList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryRingDetailListOutcomeCallable ScspClient::queryRingDetailListCallable(const QueryRingDetailListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRingDetailList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryServiceConfigOutcome ScspClient::queryServiceConfig(const QueryServiceConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryServiceConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryServiceConfigOutcome(QueryServiceConfigResult(outcome.result())); + else + return QueryServiceConfigOutcome(outcome.error()); +} + +void ScspClient::queryServiceConfigAsync(const QueryServiceConfigRequest& request, const QueryServiceConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryServiceConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryServiceConfigOutcomeCallable ScspClient::queryServiceConfigCallable(const QueryServiceConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryServiceConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QuerySkillGroupsOutcome ScspClient::querySkillGroups(const QuerySkillGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySkillGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySkillGroupsOutcome(QuerySkillGroupsResult(outcome.result())); + else + return QuerySkillGroupsOutcome(outcome.error()); +} + +void ScspClient::querySkillGroupsAsync(const QuerySkillGroupsRequest& request, const QuerySkillGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySkillGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QuerySkillGroupsOutcomeCallable ScspClient::querySkillGroupsCallable(const QuerySkillGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySkillGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryTicketActionsOutcome ScspClient::queryTicketActions(const QueryTicketActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTicketActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTicketActionsOutcome(QueryTicketActionsResult(outcome.result())); + else + return QueryTicketActionsOutcome(outcome.error()); +} + +void ScspClient::queryTicketActionsAsync(const QueryTicketActionsRequest& request, const QueryTicketActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTicketActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryTicketActionsOutcomeCallable ScspClient::queryTicketActionsCallable(const QueryTicketActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTicketActions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryTicketCountOutcome ScspClient::queryTicketCount(const QueryTicketCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTicketCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTicketCountOutcome(QueryTicketCountResult(outcome.result())); + else + return QueryTicketCountOutcome(outcome.error()); +} + +void ScspClient::queryTicketCountAsync(const QueryTicketCountRequest& request, const QueryTicketCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTicketCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryTicketCountOutcomeCallable ScspClient::queryTicketCountCallable(const QueryTicketCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTicketCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::QueryTicketsOutcome ScspClient::queryTickets(const QueryTicketsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTicketsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTicketsOutcome(QueryTicketsResult(outcome.result())); + else + return QueryTicketsOutcome(outcome.error()); +} + +void ScspClient::queryTicketsAsync(const QueryTicketsRequest& request, const QueryTicketsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTickets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::QueryTicketsOutcomeCallable ScspClient::queryTicketsCallable(const QueryTicketsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTickets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::RemoveSkillGroupOutcome ScspClient::removeSkillGroup(const RemoveSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSkillGroupOutcome(RemoveSkillGroupResult(outcome.result())); + else + return RemoveSkillGroupOutcome(outcome.error()); +} + +void ScspClient::removeSkillGroupAsync(const RemoveSkillGroupRequest& request, const RemoveSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::RemoveSkillGroupOutcomeCallable ScspClient::removeSkillGroupCallable(const RemoveSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SearchTicketByIdOutcome ScspClient::searchTicketById(const SearchTicketByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTicketByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTicketByIdOutcome(SearchTicketByIdResult(outcome.result())); + else + return SearchTicketByIdOutcome(outcome.error()); +} + +void ScspClient::searchTicketByIdAsync(const SearchTicketByIdRequest& request, const SearchTicketByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTicketById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SearchTicketByIdOutcomeCallable ScspClient::searchTicketByIdCallable(const SearchTicketByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTicketById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SearchTicketByPhoneOutcome ScspClient::searchTicketByPhone(const SearchTicketByPhoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTicketByPhoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTicketByPhoneOutcome(SearchTicketByPhoneResult(outcome.result())); + else + return SearchTicketByPhoneOutcome(outcome.error()); +} + +void ScspClient::searchTicketByPhoneAsync(const SearchTicketByPhoneRequest& request, const SearchTicketByPhoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTicketByPhone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SearchTicketByPhoneOutcomeCallable ScspClient::searchTicketByPhoneCallable(const SearchTicketByPhoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTicketByPhone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SearchTicketListOutcome ScspClient::searchTicketList(const SearchTicketListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchTicketListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchTicketListOutcome(SearchTicketListResult(outcome.result())); + else + return SearchTicketListOutcome(outcome.error()); +} + +void ScspClient::searchTicketListAsync(const SearchTicketListRequest& request, const SearchTicketListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchTicketList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SearchTicketListOutcomeCallable ScspClient::searchTicketListCallable(const SearchTicketListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchTicketList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SendHotlineHeartBeatOutcome ScspClient::sendHotlineHeartBeat(const SendHotlineHeartBeatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendHotlineHeartBeatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendHotlineHeartBeatOutcome(SendHotlineHeartBeatResult(outcome.result())); + else + return SendHotlineHeartBeatOutcome(outcome.error()); +} + +void ScspClient::sendHotlineHeartBeatAsync(const SendHotlineHeartBeatRequest& request, const SendHotlineHeartBeatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendHotlineHeartBeat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SendHotlineHeartBeatOutcomeCallable ScspClient::sendHotlineHeartBeatCallable(const SendHotlineHeartBeatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendHotlineHeartBeat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SendOutboundCommandOutcome ScspClient::sendOutboundCommand(const SendOutboundCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendOutboundCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendOutboundCommandOutcome(SendOutboundCommandResult(outcome.result())); + else + return SendOutboundCommandOutcome(outcome.error()); +} + +void ScspClient::sendOutboundCommandAsync(const SendOutboundCommandRequest& request, const SendOutboundCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendOutboundCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SendOutboundCommandOutcomeCallable ScspClient::sendOutboundCommandCallable(const SendOutboundCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendOutboundCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::StartCallOutcome ScspClient::startCall(const StartCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartCallOutcome(StartCallResult(outcome.result())); + else + return StartCallOutcome(outcome.error()); +} + +void ScspClient::startCallAsync(const StartCallRequest& request, const StartCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::StartCallOutcomeCallable ScspClient::startCallCallable(const StartCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::StartCallV2Outcome ScspClient::startCallV2(const StartCallV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartCallV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartCallV2Outcome(StartCallV2Result(outcome.result())); + else + return StartCallV2Outcome(outcome.error()); +} + +void ScspClient::startCallV2Async(const StartCallV2Request& request, const StartCallV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startCallV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::StartCallV2OutcomeCallable ScspClient::startCallV2Callable(const StartCallV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startCallV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::StartChatWorkOutcome ScspClient::startChatWork(const StartChatWorkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartChatWorkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartChatWorkOutcome(StartChatWorkResult(outcome.result())); + else + return StartChatWorkOutcome(outcome.error()); +} + +void ScspClient::startChatWorkAsync(const StartChatWorkRequest& request, const StartChatWorkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startChatWork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::StartChatWorkOutcomeCallable ScspClient::startChatWorkCallable(const StartChatWorkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startChatWork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::StartHotlineServiceOutcome ScspClient::startHotlineService(const StartHotlineServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartHotlineServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartHotlineServiceOutcome(StartHotlineServiceResult(outcome.result())); + else + return StartHotlineServiceOutcome(outcome.error()); +} + +void ScspClient::startHotlineServiceAsync(const StartHotlineServiceRequest& request, const StartHotlineServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startHotlineService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::StartHotlineServiceOutcomeCallable ScspClient::startHotlineServiceCallable(const StartHotlineServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startHotlineService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::SuspendHotlineServiceOutcome ScspClient::suspendHotlineService(const SuspendHotlineServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendHotlineServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendHotlineServiceOutcome(SuspendHotlineServiceResult(outcome.result())); + else + return SuspendHotlineServiceOutcome(outcome.error()); +} + +void ScspClient::suspendHotlineServiceAsync(const SuspendHotlineServiceRequest& request, const SuspendHotlineServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendHotlineService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::SuspendHotlineServiceOutcomeCallable ScspClient::suspendHotlineServiceCallable(const SuspendHotlineServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendHotlineService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::TransferCallToAgentOutcome ScspClient::transferCallToAgent(const TransferCallToAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferCallToAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferCallToAgentOutcome(TransferCallToAgentResult(outcome.result())); + else + return TransferCallToAgentOutcome(outcome.error()); +} + +void ScspClient::transferCallToAgentAsync(const TransferCallToAgentRequest& request, const TransferCallToAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferCallToAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::TransferCallToAgentOutcomeCallable ScspClient::transferCallToAgentCallable(const TransferCallToAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferCallToAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::TransferCallToPhoneOutcome ScspClient::transferCallToPhone(const TransferCallToPhoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferCallToPhoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferCallToPhoneOutcome(TransferCallToPhoneResult(outcome.result())); + else + return TransferCallToPhoneOutcome(outcome.error()); +} + +void ScspClient::transferCallToPhoneAsync(const TransferCallToPhoneRequest& request, const TransferCallToPhoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferCallToPhone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::TransferCallToPhoneOutcomeCallable ScspClient::transferCallToPhoneCallable(const TransferCallToPhoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferCallToPhone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::TransferCallToSkillGroupOutcome ScspClient::transferCallToSkillGroup(const TransferCallToSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferCallToSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferCallToSkillGroupOutcome(TransferCallToSkillGroupResult(outcome.result())); + else + return TransferCallToSkillGroupOutcome(outcome.error()); +} + +void ScspClient::transferCallToSkillGroupAsync(const TransferCallToSkillGroupRequest& request, const TransferCallToSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferCallToSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::TransferCallToSkillGroupOutcomeCallable ScspClient::transferCallToSkillGroupCallable(const TransferCallToSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferCallToSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::TransferToThirdCallOutcome ScspClient::transferToThirdCall(const TransferToThirdCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferToThirdCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferToThirdCallOutcome(TransferToThirdCallResult(outcome.result())); + else + return TransferToThirdCallOutcome(outcome.error()); +} + +void ScspClient::transferToThirdCallAsync(const TransferToThirdCallRequest& request, const TransferToThirdCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferToThirdCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::TransferToThirdCallOutcomeCallable ScspClient::transferToThirdCallCallable(const TransferToThirdCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferToThirdCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateAgentOutcome ScspClient::updateAgent(const UpdateAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAgentOutcome(UpdateAgentResult(outcome.result())); + else + return UpdateAgentOutcome(outcome.error()); +} + +void ScspClient::updateAgentAsync(const UpdateAgentRequest& request, const UpdateAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateAgentOutcomeCallable ScspClient::updateAgentCallable(const UpdateAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateCustomerOutcome ScspClient::updateCustomer(const UpdateCustomerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomerOutcome(UpdateCustomerResult(outcome.result())); + else + return UpdateCustomerOutcome(outcome.error()); +} + +void ScspClient::updateCustomerAsync(const UpdateCustomerRequest& request, const UpdateCustomerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateCustomerOutcomeCallable ScspClient::updateCustomerCallable(const UpdateCustomerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateEntityTagRelationOutcome ScspClient::updateEntityTagRelation(const UpdateEntityTagRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEntityTagRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEntityTagRelationOutcome(UpdateEntityTagRelationResult(outcome.result())); + else + return UpdateEntityTagRelationOutcome(outcome.error()); +} + +void ScspClient::updateEntityTagRelationAsync(const UpdateEntityTagRelationRequest& request, const UpdateEntityTagRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEntityTagRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateEntityTagRelationOutcomeCallable ScspClient::updateEntityTagRelationCallable(const UpdateEntityTagRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEntityTagRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateRingStatusOutcome ScspClient::updateRingStatus(const UpdateRingStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRingStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRingStatusOutcome(UpdateRingStatusResult(outcome.result())); + else + return UpdateRingStatusOutcome(outcome.error()); +} + +void ScspClient::updateRingStatusAsync(const UpdateRingStatusRequest& request, const UpdateRingStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRingStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateRingStatusOutcomeCallable ScspClient::updateRingStatusCallable(const UpdateRingStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRingStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateRoleOutcome ScspClient::updateRole(const UpdateRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRoleOutcome(UpdateRoleResult(outcome.result())); + else + return UpdateRoleOutcome(outcome.error()); +} + +void ScspClient::updateRoleAsync(const UpdateRoleRequest& request, const UpdateRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateRoleOutcomeCallable ScspClient::updateRoleCallable(const UpdateRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateSkillGroupOutcome ScspClient::updateSkillGroup(const UpdateSkillGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSkillGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSkillGroupOutcome(UpdateSkillGroupResult(outcome.result())); + else + return UpdateSkillGroupOutcome(outcome.error()); +} + +void ScspClient::updateSkillGroupAsync(const UpdateSkillGroupRequest& request, const UpdateSkillGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSkillGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateSkillGroupOutcomeCallable ScspClient::updateSkillGroupCallable(const UpdateSkillGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSkillGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ScspClient::UpdateTicketOutcome ScspClient::updateTicket(const UpdateTicketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTicketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTicketOutcome(UpdateTicketResult(outcome.result())); + else + return UpdateTicketOutcome(outcome.error()); +} + +void ScspClient::updateTicketAsync(const UpdateTicketRequest& request, const UpdateTicketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTicket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ScspClient::UpdateTicketOutcomeCallable ScspClient::updateTicketCallable(const UpdateTicketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTicket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/scsp/src/model/AnswerCallRequest.cc b/scsp/src/model/AnswerCallRequest.cc new file mode 100644 index 000000000..9c23da5c9 --- /dev/null +++ b/scsp/src/model/AnswerCallRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::AnswerCallRequest; + +AnswerCallRequest::AnswerCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "AnswerCall") +{ + setMethod(HttpRequest::Method::Post); +} + +AnswerCallRequest::~AnswerCallRequest() +{} + +std::string AnswerCallRequest::getClientToken()const +{ + return clientToken_; +} + +void AnswerCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AnswerCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void AnswerCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string AnswerCallRequest::getAccountName()const +{ + return accountName_; +} + +void AnswerCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string AnswerCallRequest::getCallId()const +{ + return callId_; +} + +void AnswerCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string AnswerCallRequest::getJobId()const +{ + return jobId_; +} + +void AnswerCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string AnswerCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void AnswerCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + diff --git a/scsp/src/model/AnswerCallResult.cc b/scsp/src/model/AnswerCallResult.cc new file mode 100644 index 000000000..882f97356 --- /dev/null +++ b/scsp/src/model/AnswerCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +AnswerCallResult::AnswerCallResult() : + ServiceResult() +{} + +AnswerCallResult::AnswerCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AnswerCallResult::~AnswerCallResult() +{} + +void AnswerCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AnswerCallResult::getMessage()const +{ + return message_; +} + +std::string AnswerCallResult::getCode()const +{ + return code_; +} + +bool AnswerCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/AppMessagePushRequest.cc b/scsp/src/model/AppMessagePushRequest.cc new file mode 100644 index 000000000..12b456ec0 --- /dev/null +++ b/scsp/src/model/AppMessagePushRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::AppMessagePushRequest; + +AppMessagePushRequest::AppMessagePushRequest() : + RpcServiceRequest("scsp", "2020-07-02", "AppMessagePush") +{ + setMethod(HttpRequest::Method::Post); +} + +AppMessagePushRequest::~AppMessagePushRequest() +{} + +std::string AppMessagePushRequest::getInstanceId()const +{ + return instanceId_; +} + +void AppMessagePushRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long AppMessagePushRequest::getExpirationTime()const +{ + return expirationTime_; +} + +void AppMessagePushRequest::setExpirationTime(long expirationTime) +{ + expirationTime_ = expirationTime; + setParameter("ExpirationTime", std::to_string(expirationTime)); +} + +std::string AppMessagePushRequest::getUserId()const +{ + return userId_; +} + +void AppMessagePushRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +int AppMessagePushRequest::getStatus()const +{ + return status_; +} + +void AppMessagePushRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + diff --git a/scsp/src/model/AppMessagePushResult.cc b/scsp/src/model/AppMessagePushResult.cc new file mode 100644 index 000000000..0dfe0f553 --- /dev/null +++ b/scsp/src/model/AppMessagePushResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +AppMessagePushResult::AppMessagePushResult() : + ServiceResult() +{} + +AppMessagePushResult::AppMessagePushResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AppMessagePushResult::~AppMessagePushResult() +{} + +void AppMessagePushResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AppMessagePushResult::getMessage()const +{ + return message_; +} + +std::string AppMessagePushResult::getData()const +{ + return data_; +} + +std::string AppMessagePushResult::getCode()const +{ + return code_; +} + +bool AppMessagePushResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/AssignTicketRequest.cc b/scsp/src/model/AssignTicketRequest.cc new file mode 100644 index 000000000..abf785af4 --- /dev/null +++ b/scsp/src/model/AssignTicketRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::AssignTicketRequest; + +AssignTicketRequest::AssignTicketRequest() : + RpcServiceRequest("scsp", "2020-07-02", "AssignTicket") +{ + setMethod(HttpRequest::Method::Post); +} + +AssignTicketRequest::~AssignTicketRequest() +{} + +std::string AssignTicketRequest::getClientToken()const +{ + return clientToken_; +} + +void AssignTicketRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AssignTicketRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssignTicketRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long AssignTicketRequest::getTicketId()const +{ + return ticketId_; +} + +void AssignTicketRequest::setTicketId(long ticketId) +{ + ticketId_ = ticketId; + setBodyParameter("TicketId", std::to_string(ticketId)); +} + +long AssignTicketRequest::getOperatorId()const +{ + return operatorId_; +} + +void AssignTicketRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setBodyParameter("OperatorId", std::to_string(operatorId)); +} + +long AssignTicketRequest::getAcceptorId()const +{ + return acceptorId_; +} + +void AssignTicketRequest::setAcceptorId(long acceptorId) +{ + acceptorId_ = acceptorId; + setBodyParameter("AcceptorId", std::to_string(acceptorId)); +} + diff --git a/scsp/src/model/AssignTicketResult.cc b/scsp/src/model/AssignTicketResult.cc new file mode 100644 index 000000000..b3279d267 --- /dev/null +++ b/scsp/src/model/AssignTicketResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +AssignTicketResult::AssignTicketResult() : + ServiceResult() +{} + +AssignTicketResult::AssignTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignTicketResult::~AssignTicketResult() +{} + +void AssignTicketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AssignTicketResult::getMessage()const +{ + return message_; +} + +std::string AssignTicketResult::getCode()const +{ + return code_; +} + +bool AssignTicketResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ChangeChatAgentStatusRequest.cc b/scsp/src/model/ChangeChatAgentStatusRequest.cc new file mode 100644 index 000000000..a9d182bf3 --- /dev/null +++ b/scsp/src/model/ChangeChatAgentStatusRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::ChangeChatAgentStatusRequest; + +ChangeChatAgentStatusRequest::ChangeChatAgentStatusRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ChangeChatAgentStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +ChangeChatAgentStatusRequest::~ChangeChatAgentStatusRequest() +{} + +std::string ChangeChatAgentStatusRequest::getClientToken()const +{ + return clientToken_; +} + +void ChangeChatAgentStatusRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string ChangeChatAgentStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void ChangeChatAgentStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string ChangeChatAgentStatusRequest::getAccountName()const +{ + return accountName_; +} + +void ChangeChatAgentStatusRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string ChangeChatAgentStatusRequest::getMethod()const +{ + return method_; +} + +void ChangeChatAgentStatusRequest::setMethod(const std::string& method) +{ + method_ = method; + setBodyParameter("Method", method); +} + diff --git a/scsp/src/model/ChangeChatAgentStatusResult.cc b/scsp/src/model/ChangeChatAgentStatusResult.cc new file mode 100644 index 000000000..cf3f86ce9 --- /dev/null +++ b/scsp/src/model/ChangeChatAgentStatusResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ChangeChatAgentStatusResult::ChangeChatAgentStatusResult() : + ServiceResult() +{} + +ChangeChatAgentStatusResult::ChangeChatAgentStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeChatAgentStatusResult::~ChangeChatAgentStatusResult() +{} + +void ChangeChatAgentStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ChangeChatAgentStatusResult::getMessage()const +{ + return message_; +} + +int ChangeChatAgentStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ChangeChatAgentStatusResult::getData()const +{ + return data_; +} + +std::string ChangeChatAgentStatusResult::getCode()const +{ + return code_; +} + +bool ChangeChatAgentStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CloseTicketRequest.cc b/scsp/src/model/CloseTicketRequest.cc new file mode 100644 index 000000000..08d4e8a5f --- /dev/null +++ b/scsp/src/model/CloseTicketRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::CloseTicketRequest; + +CloseTicketRequest::CloseTicketRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CloseTicket") +{ + setMethod(HttpRequest::Method::Post); +} + +CloseTicketRequest::~CloseTicketRequest() +{} + +std::string CloseTicketRequest::getClientToken()const +{ + return clientToken_; +} + +void CloseTicketRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CloseTicketRequest::getInstanceId()const +{ + return instanceId_; +} + +void CloseTicketRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long CloseTicketRequest::getTicketId()const +{ + return ticketId_; +} + +void CloseTicketRequest::setTicketId(long ticketId) +{ + ticketId_ = ticketId; + setBodyParameter("TicketId", std::to_string(ticketId)); +} + +std::string CloseTicketRequest::getActionItems()const +{ + return actionItems_; +} + +void CloseTicketRequest::setActionItems(const std::string& actionItems) +{ + actionItems_ = actionItems; + setBodyParameter("ActionItems", actionItems); +} + +long CloseTicketRequest::getOperatorId()const +{ + return operatorId_; +} + +void CloseTicketRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setBodyParameter("OperatorId", std::to_string(operatorId)); +} + diff --git a/scsp/src/model/CloseTicketResult.cc b/scsp/src/model/CloseTicketResult.cc new file mode 100644 index 000000000..101174907 --- /dev/null +++ b/scsp/src/model/CloseTicketResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CloseTicketResult::CloseTicketResult() : + ServiceResult() +{} + +CloseTicketResult::CloseTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseTicketResult::~CloseTicketResult() +{} + +void CloseTicketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string CloseTicketResult::getMessage()const +{ + return message_; +} + +long CloseTicketResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CloseTicketResult::getCode()const +{ + return code_; +} + +bool CloseTicketResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateAgentRequest.cc b/scsp/src/model/CreateAgentRequest.cc new file mode 100644 index 000000000..23383b5c8 --- /dev/null +++ b/scsp/src/model/CreateAgentRequest.cc @@ -0,0 +1,103 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::CreateAgentRequest; + +CreateAgentRequest::CreateAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateAgent") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAgentRequest::~CreateAgentRequest() +{} + +std::string CreateAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateAgentRequest::getAccountName()const +{ + return accountName_; +} + +void CreateAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string CreateAgentRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateAgentRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setBodyParameter("DisplayName", displayName); +} + +Array CreateAgentRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void CreateAgentRequest::setSkillGroupId(const Array& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { + auto skillGroupIdObj = skillGroupId.at(dep1); + std::string skillGroupIdObjStr = "SkillGroupId." + std::to_string(dep1 + 1); + setParameter(skillGroupIdObjStr + ".SkillGroupId", std::to_string(skillGroupIdObj.skillGroupId)); + } +} + +Array CreateAgentRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void CreateAgentRequest::setSkillGroupIdList(const Array& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + for(int dep1 = 0; dep1!= skillGroupIdList.size(); dep1++) { + auto skillGroupIdListObj = skillGroupIdList.at(dep1); + std::string skillGroupIdListObjStr = "SkillGroupIdList." + std::to_string(dep1 + 1); + setParameter(skillGroupIdListObjStr + ".SkillGroupIdList", std::to_string(skillGroupIdListObj.skillGroupIdList)); + } +} + diff --git a/scsp/src/model/CreateAgentResult.cc b/scsp/src/model/CreateAgentResult.cc new file mode 100644 index 000000000..70a95df0a --- /dev/null +++ b/scsp/src/model/CreateAgentResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateAgentResult::CreateAgentResult() : + ServiceResult() +{} + +CreateAgentResult::CreateAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAgentResult::~CreateAgentResult() +{} + +void CreateAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string CreateAgentResult::getMessage()const +{ + return message_; +} + +long CreateAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long CreateAgentResult::getData()const +{ + return data_; +} + +std::string CreateAgentResult::getCode()const +{ + return code_; +} + +bool CreateAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateCustomerRequest.cc b/scsp/src/model/CreateCustomerRequest.cc new file mode 100644 index 000000000..4420b9bd6 --- /dev/null +++ b/scsp/src/model/CreateCustomerRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::CreateCustomerRequest; + +CreateCustomerRequest::CreateCustomerRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateCustomer") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateCustomerRequest::~CreateCustomerRequest() +{} + +std::string CreateCustomerRequest::getIndustry()const +{ + return industry_; +} + +void CreateCustomerRequest::setIndustry(const std::string& industry) +{ + industry_ = industry; + setParameter("Industry", industry); +} + +int CreateCustomerRequest::getOuterIdType()const +{ + return outerIdType_; +} + +void CreateCustomerRequest::setOuterIdType(int outerIdType) +{ + outerIdType_ = outerIdType; + setParameter("OuterIdType", std::to_string(outerIdType)); +} + +std::string CreateCustomerRequest::getDingding()const +{ + return dingding_; +} + +void CreateCustomerRequest::setDingding(const std::string& dingding) +{ + dingding_ = dingding; + setParameter("Dingding", dingding); +} + +std::string CreateCustomerRequest::getBizType()const +{ + return bizType_; +} + +void CreateCustomerRequest::setBizType(const std::string& bizType) +{ + bizType_ = bizType; + setParameter("BizType", bizType); +} + +std::string CreateCustomerRequest::getTypeCode()const +{ + return typeCode_; +} + +void CreateCustomerRequest::setTypeCode(const std::string& typeCode) +{ + typeCode_ = typeCode; + setParameter("TypeCode", typeCode); +} + +std::string CreateCustomerRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateCustomerRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateCustomerRequest::getContacter()const +{ + return contacter_; +} + +void CreateCustomerRequest::setContacter(const std::string& contacter) +{ + contacter_ = contacter; + setParameter("Contacter", contacter); +} + +long CreateCustomerRequest::getProdLineId()const +{ + return prodLineId_; +} + +void CreateCustomerRequest::setProdLineId(long prodLineId) +{ + prodLineId_ = prodLineId; + setParameter("ProdLineId", std::to_string(prodLineId)); +} + +std::string CreateCustomerRequest::getPhone()const +{ + return phone_; +} + +void CreateCustomerRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setParameter("Phone", phone); +} + +std::string CreateCustomerRequest::getName()const +{ + return name_; +} + +void CreateCustomerRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateCustomerRequest::getManagerName()const +{ + return managerName_; +} + +void CreateCustomerRequest::setManagerName(const std::string& managerName) +{ + managerName_ = managerName; + setParameter("ManagerName", managerName); +} + +std::string CreateCustomerRequest::getOuterId()const +{ + return outerId_; +} + +void CreateCustomerRequest::setOuterId(const std::string& outerId) +{ + outerId_ = outerId; + setParameter("OuterId", outerId); +} + +std::string CreateCustomerRequest::getPosition()const +{ + return position_; +} + +void CreateCustomerRequest::setPosition(const std::string& position) +{ + position_ = position; + setParameter("Position", position); +} + +std::string CreateCustomerRequest::getEmail()const +{ + return email_; +} + +void CreateCustomerRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + diff --git a/scsp/src/model/CreateCustomerResult.cc b/scsp/src/model/CreateCustomerResult.cc new file mode 100644 index 000000000..af5858a14 --- /dev/null +++ b/scsp/src/model/CreateCustomerResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateCustomerResult::CreateCustomerResult() : + ServiceResult() +{} + +CreateCustomerResult::CreateCustomerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomerResult::~CreateCustomerResult() +{} + +void CreateCustomerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateCustomerResult::getMessage()const +{ + return message_; +} + +long CreateCustomerResult::getData()const +{ + return data_; +} + +std::string CreateCustomerResult::getCode()const +{ + return code_; +} + +bool CreateCustomerResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateEntityIvrRouteRequest.cc b/scsp/src/model/CreateEntityIvrRouteRequest.cc new file mode 100644 index 000000000..c9a808295 --- /dev/null +++ b/scsp/src/model/CreateEntityIvrRouteRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::CreateEntityIvrRouteRequest; + +CreateEntityIvrRouteRequest::CreateEntityIvrRouteRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateEntityIvrRoute") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateEntityIvrRouteRequest::~CreateEntityIvrRouteRequest() +{} + +std::string CreateEntityIvrRouteRequest::getExtInfo()const +{ + return extInfo_; +} + +void CreateEntityIvrRouteRequest::setExtInfo(const std::string& extInfo) +{ + extInfo_ = extInfo; + setBodyParameter("ExtInfo", extInfo); +} + +std::string CreateEntityIvrRouteRequest::getDepartmentId()const +{ + return departmentId_; +} + +void CreateEntityIvrRouteRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setBodyParameter("DepartmentId", departmentId); +} + +long CreateEntityIvrRouteRequest::getGroupId()const +{ + return groupId_; +} + +void CreateEntityIvrRouteRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setBodyParameter("GroupId", std::to_string(groupId)); +} + +std::string CreateEntityIvrRouteRequest::getEntityName()const +{ + return entityName_; +} + +void CreateEntityIvrRouteRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setBodyParameter("EntityName", entityName); +} + +std::string CreateEntityIvrRouteRequest::getEntityId()const +{ + return entityId_; +} + +void CreateEntityIvrRouteRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setBodyParameter("EntityId", entityId); +} + +std::string CreateEntityIvrRouteRequest::getEntityBizCodeType()const +{ + return entityBizCodeType_; +} + +void CreateEntityIvrRouteRequest::setEntityBizCodeType(const std::string& entityBizCodeType) +{ + entityBizCodeType_ = entityBizCodeType; + setBodyParameter("EntityBizCodeType", entityBizCodeType); +} + +std::string CreateEntityIvrRouteRequest::getEntityBizCode()const +{ + return entityBizCode_; +} + +void CreateEntityIvrRouteRequest::setEntityBizCode(const std::string& entityBizCode) +{ + entityBizCode_ = entityBizCode; + setBodyParameter("EntityBizCode", entityBizCode); +} + +std::string CreateEntityIvrRouteRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateEntityIvrRouteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateEntityIvrRouteRequest::getEntityRelationNumber()const +{ + return entityRelationNumber_; +} + +void CreateEntityIvrRouteRequest::setEntityRelationNumber(const std::string& entityRelationNumber) +{ + entityRelationNumber_ = entityRelationNumber; + setBodyParameter("EntityRelationNumber", entityRelationNumber); +} + +long CreateEntityIvrRouteRequest::getServiceId()const +{ + return serviceId_; +} + +void CreateEntityIvrRouteRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setBodyParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/scsp/src/model/CreateEntityIvrRouteResult.cc b/scsp/src/model/CreateEntityIvrRouteResult.cc new file mode 100644 index 000000000..f680ffecb --- /dev/null +++ b/scsp/src/model/CreateEntityIvrRouteResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateEntityIvrRouteResult::CreateEntityIvrRouteResult() : + ServiceResult() +{} + +CreateEntityIvrRouteResult::CreateEntityIvrRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEntityIvrRouteResult::~CreateEntityIvrRouteResult() +{} + +void CreateEntityIvrRouteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateEntityIvrRouteResult::getMessage()const +{ + return message_; +} + +std::string CreateEntityIvrRouteResult::getCode()const +{ + return code_; +} + +bool CreateEntityIvrRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateOuterCallCenterDataRequest.cc b/scsp/src/model/CreateOuterCallCenterDataRequest.cc new file mode 100644 index 000000000..c36147fa2 --- /dev/null +++ b/scsp/src/model/CreateOuterCallCenterDataRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::CreateOuterCallCenterDataRequest; + +CreateOuterCallCenterDataRequest::CreateOuterCallCenterDataRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateOuterCallCenterData") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateOuterCallCenterDataRequest::~CreateOuterCallCenterDataRequest() +{} + +std::string CreateOuterCallCenterDataRequest::getExtInfo()const +{ + return extInfo_; +} + +void CreateOuterCallCenterDataRequest::setExtInfo(const std::string& extInfo) +{ + extInfo_ = extInfo; + setBodyParameter("ExtInfo", extInfo); +} + +std::string CreateOuterCallCenterDataRequest::getRecordUrl()const +{ + return recordUrl_; +} + +void CreateOuterCallCenterDataRequest::setRecordUrl(const std::string& recordUrl) +{ + recordUrl_ = recordUrl; + setBodyParameter("RecordUrl", recordUrl); +} + +std::string CreateOuterCallCenterDataRequest::getEndReason()const +{ + return endReason_; +} + +void CreateOuterCallCenterDataRequest::setEndReason(const std::string& endReason) +{ + endReason_ = endReason; + setBodyParameter("EndReason", endReason); +} + +std::string CreateOuterCallCenterDataRequest::getSessionId()const +{ + return sessionId_; +} + +void CreateOuterCallCenterDataRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setBodyParameter("SessionId", sessionId); +} + +std::string CreateOuterCallCenterDataRequest::getFromPhoneNum()const +{ + return fromPhoneNum_; +} + +void CreateOuterCallCenterDataRequest::setFromPhoneNum(const std::string& fromPhoneNum) +{ + fromPhoneNum_ = fromPhoneNum; + setBodyParameter("FromPhoneNum", fromPhoneNum); +} + +std::string CreateOuterCallCenterDataRequest::getInterveneTime()const +{ + return interveneTime_; +} + +void CreateOuterCallCenterDataRequest::setInterveneTime(const std::string& interveneTime) +{ + interveneTime_ = interveneTime; + setBodyParameter("InterveneTime", interveneTime); +} + +std::string CreateOuterCallCenterDataRequest::getBizType()const +{ + return bizType_; +} + +void CreateOuterCallCenterDataRequest::setBizType(const std::string& bizType) +{ + bizType_ = bizType; + setBodyParameter("BizType", bizType); +} + +std::string CreateOuterCallCenterDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateOuterCallCenterDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateOuterCallCenterDataRequest::getToPhoneNum()const +{ + return toPhoneNum_; +} + +void CreateOuterCallCenterDataRequest::setToPhoneNum(const std::string& toPhoneNum) +{ + toPhoneNum_ = toPhoneNum; + setBodyParameter("ToPhoneNum", toPhoneNum); +} + +std::string CreateOuterCallCenterDataRequest::getBizId()const +{ + return bizId_; +} + +void CreateOuterCallCenterDataRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setBodyParameter("BizId", bizId); +} + +std::string CreateOuterCallCenterDataRequest::getTenantId()const +{ + return tenantId_; +} + +void CreateOuterCallCenterDataRequest::setTenantId(const std::string& tenantId) +{ + tenantId_ = tenantId; + setBodyParameter("TenantId", tenantId); +} + +std::string CreateOuterCallCenterDataRequest::getCallType()const +{ + return callType_; +} + +void CreateOuterCallCenterDataRequest::setCallType(const std::string& callType) +{ + callType_ = callType; + setBodyParameter("CallType", callType); +} + +std::string CreateOuterCallCenterDataRequest::getUserInfo()const +{ + return userInfo_; +} + +void CreateOuterCallCenterDataRequest::setUserInfo(const std::string& userInfo) +{ + userInfo_ = userInfo; + setBodyParameter("UserInfo", userInfo); +} + diff --git a/scsp/src/model/CreateOuterCallCenterDataResult.cc b/scsp/src/model/CreateOuterCallCenterDataResult.cc new file mode 100644 index 000000000..012aba56f --- /dev/null +++ b/scsp/src/model/CreateOuterCallCenterDataResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateOuterCallCenterDataResult::CreateOuterCallCenterDataResult() : + ServiceResult() +{} + +CreateOuterCallCenterDataResult::CreateOuterCallCenterDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOuterCallCenterDataResult::~CreateOuterCallCenterDataResult() +{} + +void CreateOuterCallCenterDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string CreateOuterCallCenterDataResult::getMessage()const +{ + return message_; +} + +long CreateOuterCallCenterDataResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateOuterCallCenterDataResult::getCode()const +{ + return code_; +} + +bool CreateOuterCallCenterDataResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateRoleRequest.cc b/scsp/src/model/CreateRoleRequest.cc new file mode 100644 index 000000000..4e5884640 --- /dev/null +++ b/scsp/src/model/CreateRoleRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::CreateRoleRequest; + +CreateRoleRequest::CreateRoleRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateRole") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateRoleRequest::~CreateRoleRequest() +{} + +std::string CreateRoleRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRoleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateRoleRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateRoleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateRoleRequest::getRoleName()const +{ + return roleName_; +} + +void CreateRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setBodyParameter("RoleName", roleName); +} + +std::vector CreateRoleRequest::getPermissionId()const +{ + return permissionId_; +} + +void CreateRoleRequest::setPermissionId(const std::vector& permissionId) +{ + permissionId_ = permissionId; + for(int dep1 = 0; dep1!= permissionId.size(); dep1++) { + setBodyParameter("PermissionId."+ std::to_string(dep1), std::to_string(permissionId.at(dep1))); + } +} + +std::string CreateRoleRequest::get_Operator()const +{ + return _operator_; +} + +void CreateRoleRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setBodyParameter("_Operator", _operator); +} + diff --git a/scsp/src/model/CreateRoleResult.cc b/scsp/src/model/CreateRoleResult.cc new file mode 100644 index 000000000..0b192c9a1 --- /dev/null +++ b/scsp/src/model/CreateRoleResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateRoleResult::CreateRoleResult() : + ServiceResult() +{} + +CreateRoleResult::CreateRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRoleResult::~CreateRoleResult() +{} + +void CreateRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string CreateRoleResult::getMessage()const +{ + return message_; +} + +long CreateRoleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long CreateRoleResult::getData()const +{ + return data_; +} + +std::string CreateRoleResult::getCode()const +{ + return code_; +} + +bool CreateRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateSkillGroupRequest.cc b/scsp/src/model/CreateSkillGroupRequest.cc new file mode 100644 index 000000000..5b2ab6e1e --- /dev/null +++ b/scsp/src/model/CreateSkillGroupRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::CreateSkillGroupRequest; + +CreateSkillGroupRequest::CreateSkillGroupRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSkillGroupRequest::~CreateSkillGroupRequest() +{} + +std::string CreateSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateSkillGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateSkillGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateSkillGroupRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateSkillGroupRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setBodyParameter("DisplayName", displayName); +} + +int CreateSkillGroupRequest::getChannelType()const +{ + return channelType_; +} + +void CreateSkillGroupRequest::setChannelType(int channelType) +{ + channelType_ = channelType; + setBodyParameter("ChannelType", std::to_string(channelType)); +} + +std::string CreateSkillGroupRequest::getSkillGroupName()const +{ + return skillGroupName_; +} + +void CreateSkillGroupRequest::setSkillGroupName(const std::string& skillGroupName) +{ + skillGroupName_ = skillGroupName; + setBodyParameter("SkillGroupName", skillGroupName); +} + +std::string CreateSkillGroupRequest::getDescription()const +{ + return description_; +} + +void CreateSkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + diff --git a/scsp/src/model/CreateSkillGroupResult.cc b/scsp/src/model/CreateSkillGroupResult.cc new file mode 100644 index 000000000..77ca69d7e --- /dev/null +++ b/scsp/src/model/CreateSkillGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateSkillGroupResult::CreateSkillGroupResult() : + ServiceResult() +{} + +CreateSkillGroupResult::CreateSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSkillGroupResult::~CreateSkillGroupResult() +{} + +void CreateSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateSkillGroupResult::getMessage()const +{ + return message_; +} + +long CreateSkillGroupResult::getData()const +{ + return data_; +} + +std::string CreateSkillGroupResult::getCode()const +{ + return code_; +} + +bool CreateSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateThirdSsoAgentRequest.cc b/scsp/src/model/CreateThirdSsoAgentRequest.cc new file mode 100644 index 000000000..b4b3c086a --- /dev/null +++ b/scsp/src/model/CreateThirdSsoAgentRequest.cc @@ -0,0 +1,125 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::CreateThirdSsoAgentRequest; + +CreateThirdSsoAgentRequest::CreateThirdSsoAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateThirdSsoAgent") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateThirdSsoAgentRequest::~CreateThirdSsoAgentRequest() +{} + +std::string CreateThirdSsoAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateThirdSsoAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateThirdSsoAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateThirdSsoAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string CreateThirdSsoAgentRequest::getClientId()const +{ + return clientId_; +} + +void CreateThirdSsoAgentRequest::setClientId(const std::string& clientId) +{ + clientId_ = clientId; + setBodyParameter("ClientId", clientId); +} + +std::string CreateThirdSsoAgentRequest::getAccountId()const +{ + return accountId_; +} + +void CreateThirdSsoAgentRequest::setAccountId(const std::string& accountId) +{ + accountId_ = accountId; + setBodyParameter("AccountId", accountId); +} + +std::string CreateThirdSsoAgentRequest::getAccountName()const +{ + return accountName_; +} + +void CreateThirdSsoAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string CreateThirdSsoAgentRequest::getDisplayName()const +{ + return displayName_; +} + +void CreateThirdSsoAgentRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setBodyParameter("DisplayName", displayName); +} + +Array CreateThirdSsoAgentRequest::getSkillGroupIds()const +{ + return skillGroupIds_; +} + +void CreateThirdSsoAgentRequest::setSkillGroupIds(const Array& skillGroupIds) +{ + skillGroupIds_ = skillGroupIds; + for(int dep1 = 0; dep1!= skillGroupIds.size(); dep1++) { + auto skillGroupIdsObj = skillGroupIds.at(dep1); + std::string skillGroupIdsObjStr = "SkillGroupIds." + std::to_string(dep1 + 1); + setParameter(skillGroupIdsObjStr + ".SkillGroupIds", std::to_string(skillGroupIdsObj.skillGroupIds)); + } +} + +Array CreateThirdSsoAgentRequest::getRoleIds()const +{ + return roleIds_; +} + +void CreateThirdSsoAgentRequest::setRoleIds(const Array& roleIds) +{ + roleIds_ = roleIds; + for(int dep1 = 0; dep1!= roleIds.size(); dep1++) { + auto roleIdsObj = roleIds.at(dep1); + std::string roleIdsObjStr = "RoleIds." + std::to_string(dep1 + 1); + setParameter(roleIdsObjStr + ".RoleIds", std::to_string(roleIdsObj.roleIds)); + } +} + diff --git a/scsp/src/model/CreateThirdSsoAgentResult.cc b/scsp/src/model/CreateThirdSsoAgentResult.cc new file mode 100644 index 000000000..223ea61ed --- /dev/null +++ b/scsp/src/model/CreateThirdSsoAgentResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateThirdSsoAgentResult::CreateThirdSsoAgentResult() : + ServiceResult() +{} + +CreateThirdSsoAgentResult::CreateThirdSsoAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateThirdSsoAgentResult::~CreateThirdSsoAgentResult() +{} + +void CreateThirdSsoAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateThirdSsoAgentResult::getMessage()const +{ + return message_; +} + +long CreateThirdSsoAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long CreateThirdSsoAgentResult::getData()const +{ + return data_; +} + +std::string CreateThirdSsoAgentResult::getCode()const +{ + return code_; +} + +bool CreateThirdSsoAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateTicketRequest.cc b/scsp/src/model/CreateTicketRequest.cc new file mode 100644 index 000000000..3e8101daa --- /dev/null +++ b/scsp/src/model/CreateTicketRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::CreateTicketRequest; + +CreateTicketRequest::CreateTicketRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateTicket") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTicketRequest::~CreateTicketRequest() +{} + +std::string CreateTicketRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTicketRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateTicketRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateTicketRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long CreateTicketRequest::getTemplateId()const +{ + return templateId_; +} + +void CreateTicketRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setBodyParameter("TemplateId", std::to_string(templateId)); +} + +long CreateTicketRequest::getCategoryId()const +{ + return categoryId_; +} + +void CreateTicketRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setBodyParameter("CategoryId", std::to_string(categoryId)); +} + +long CreateTicketRequest::getCreatorId()const +{ + return creatorId_; +} + +void CreateTicketRequest::setCreatorId(long creatorId) +{ + creatorId_ = creatorId; + setBodyParameter("CreatorId", std::to_string(creatorId)); +} + +int CreateTicketRequest::getCreatorType()const +{ + return creatorType_; +} + +void CreateTicketRequest::setCreatorType(int creatorType) +{ + creatorType_ = creatorType; + setBodyParameter("CreatorType", std::to_string(creatorType)); +} + +std::string CreateTicketRequest::getCreatorName()const +{ + return creatorName_; +} + +void CreateTicketRequest::setCreatorName(const std::string& creatorName) +{ + creatorName_ = creatorName; + setBodyParameter("CreatorName", creatorName); +} + +long CreateTicketRequest::getMemberId()const +{ + return memberId_; +} + +void CreateTicketRequest::setMemberId(long memberId) +{ + memberId_ = memberId; + setBodyParameter("MemberId", std::to_string(memberId)); +} + +std::string CreateTicketRequest::getMemberName()const +{ + return memberName_; +} + +void CreateTicketRequest::setMemberName(const std::string& memberName) +{ + memberName_ = memberName; + setBodyParameter("MemberName", memberName); +} + +std::string CreateTicketRequest::getFromInfo()const +{ + return fromInfo_; +} + +void CreateTicketRequest::setFromInfo(const std::string& fromInfo) +{ + fromInfo_ = fromInfo; + setBodyParameter("FromInfo", fromInfo); +} + +int CreateTicketRequest::getPriority()const +{ + return priority_; +} + +void CreateTicketRequest::setPriority(int priority) +{ + priority_ = priority; + setBodyParameter("Priority", std::to_string(priority)); +} + +std::string CreateTicketRequest::getCarbonCopy()const +{ + return carbonCopy_; +} + +void CreateTicketRequest::setCarbonCopy(const std::string& carbonCopy) +{ + carbonCopy_ = carbonCopy; + setBodyParameter("CarbonCopy", carbonCopy); +} + +std::string CreateTicketRequest::getFormData()const +{ + return formData_; +} + +void CreateTicketRequest::setFormData(const std::string& formData) +{ + formData_ = formData; + setBodyParameter("FormData", formData); +} + diff --git a/scsp/src/model/CreateTicketResult.cc b/scsp/src/model/CreateTicketResult.cc new file mode 100644 index 000000000..c031b073e --- /dev/null +++ b/scsp/src/model/CreateTicketResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateTicketResult::CreateTicketResult() : + ServiceResult() +{} + +CreateTicketResult::CreateTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTicketResult::~CreateTicketResult() +{} + +void CreateTicketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateTicketResult::getMessage()const +{ + return message_; +} + +long CreateTicketResult::getData()const +{ + return data_; +} + +std::string CreateTicketResult::getCode()const +{ + return code_; +} + +bool CreateTicketResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/CreateTicketWithBizDataRequest.cc b/scsp/src/model/CreateTicketWithBizDataRequest.cc new file mode 100644 index 000000000..3d1952e55 --- /dev/null +++ b/scsp/src/model/CreateTicketWithBizDataRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::CreateTicketWithBizDataRequest; + +CreateTicketWithBizDataRequest::CreateTicketWithBizDataRequest() : + RpcServiceRequest("scsp", "2020-07-02", "CreateTicketWithBizData") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTicketWithBizDataRequest::~CreateTicketWithBizDataRequest() +{} + +std::string CreateTicketWithBizDataRequest::getFromInfo()const +{ + return fromInfo_; +} + +void CreateTicketWithBizDataRequest::setFromInfo(const std::string& fromInfo) +{ + fromInfo_ = fromInfo; + setBodyParameter("FromInfo", fromInfo); +} + +std::string CreateTicketWithBizDataRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateTicketWithBizDataRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string CreateTicketWithBizDataRequest::getCarbonCopy()const +{ + return carbonCopy_; +} + +void CreateTicketWithBizDataRequest::setCarbonCopy(const std::string& carbonCopy) +{ + carbonCopy_ = carbonCopy; + setBodyParameter("CarbonCopy", carbonCopy); +} + +long CreateTicketWithBizDataRequest::getCreatorId()const +{ + return creatorId_; +} + +void CreateTicketWithBizDataRequest::setCreatorId(long creatorId) +{ + creatorId_ = creatorId; + setBodyParameter("CreatorId", std::to_string(creatorId)); +} + +std::string CreateTicketWithBizDataRequest::getBizData()const +{ + return bizData_; +} + +void CreateTicketWithBizDataRequest::setBizData(const std::string& bizData) +{ + bizData_ = bizData; + setBodyParameter("BizData", bizData); +} + +long CreateTicketWithBizDataRequest::getTemplateId()const +{ + return templateId_; +} + +void CreateTicketWithBizDataRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setBodyParameter("TemplateId", std::to_string(templateId)); +} + +int CreateTicketWithBizDataRequest::getPriority()const +{ + return priority_; +} + +void CreateTicketWithBizDataRequest::setPriority(int priority) +{ + priority_ = priority; + setBodyParameter("Priority", std::to_string(priority)); +} + +std::string CreateTicketWithBizDataRequest::getFormData()const +{ + return formData_; +} + +void CreateTicketWithBizDataRequest::setFormData(const std::string& formData) +{ + formData_ = formData; + setBodyParameter("FormData", formData); +} + +std::string CreateTicketWithBizDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateTicketWithBizDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +int CreateTicketWithBizDataRequest::getCreatorType()const +{ + return creatorType_; +} + +void CreateTicketWithBizDataRequest::setCreatorType(int creatorType) +{ + creatorType_ = creatorType; + setBodyParameter("CreatorType", std::to_string(creatorType)); +} + +std::string CreateTicketWithBizDataRequest::getCreatorName()const +{ + return creatorName_; +} + +void CreateTicketWithBizDataRequest::setCreatorName(const std::string& creatorName) +{ + creatorName_ = creatorName; + setBodyParameter("CreatorName", creatorName); +} + +long CreateTicketWithBizDataRequest::getCategoryId()const +{ + return categoryId_; +} + +void CreateTicketWithBizDataRequest::setCategoryId(long categoryId) +{ + categoryId_ = categoryId; + setBodyParameter("CategoryId", std::to_string(categoryId)); +} + +std::string CreateTicketWithBizDataRequest::getMemberName()const +{ + return memberName_; +} + +void CreateTicketWithBizDataRequest::setMemberName(const std::string& memberName) +{ + memberName_ = memberName; + setBodyParameter("MemberName", memberName); +} + +long CreateTicketWithBizDataRequest::getMemberId()const +{ + return memberId_; +} + +void CreateTicketWithBizDataRequest::setMemberId(long memberId) +{ + memberId_ = memberId; + setBodyParameter("MemberId", std::to_string(memberId)); +} + diff --git a/scsp/src/model/CreateTicketWithBizDataResult.cc b/scsp/src/model/CreateTicketWithBizDataResult.cc new file mode 100644 index 000000000..76ce20e58 --- /dev/null +++ b/scsp/src/model/CreateTicketWithBizDataResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +CreateTicketWithBizDataResult::CreateTicketWithBizDataResult() : + ServiceResult() +{} + +CreateTicketWithBizDataResult::CreateTicketWithBizDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTicketWithBizDataResult::~CreateTicketWithBizDataResult() +{} + +void CreateTicketWithBizDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateTicketWithBizDataResult::getMessage()const +{ + return message_; +} + +long CreateTicketWithBizDataResult::getData()const +{ + return data_; +} + +std::string CreateTicketWithBizDataResult::getCode()const +{ + return code_; +} + +bool CreateTicketWithBizDataResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/DeleteAgentRequest.cc b/scsp/src/model/DeleteAgentRequest.cc new file mode 100644 index 000000000..168fad5a9 --- /dev/null +++ b/scsp/src/model/DeleteAgentRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::DeleteAgentRequest; + +DeleteAgentRequest::DeleteAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "DeleteAgent") +{ + setMethod(HttpRequest::Method::Delete); +} + +DeleteAgentRequest::~DeleteAgentRequest() +{} + +std::string DeleteAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteAgentRequest::getAccountName()const +{ + return accountName_; +} + +void DeleteAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/DeleteAgentResult.cc b/scsp/src/model/DeleteAgentResult.cc new file mode 100644 index 000000000..5efe6ea1c --- /dev/null +++ b/scsp/src/model/DeleteAgentResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +DeleteAgentResult::DeleteAgentResult() : + ServiceResult() +{} + +DeleteAgentResult::DeleteAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAgentResult::~DeleteAgentResult() +{} + +void DeleteAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string DeleteAgentResult::getMessage()const +{ + return message_; +} + +long DeleteAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteAgentResult::getCode()const +{ + return code_; +} + +bool DeleteAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/DeleteEntityRouteRequest.cc b/scsp/src/model/DeleteEntityRouteRequest.cc new file mode 100644 index 000000000..1bd68afdf --- /dev/null +++ b/scsp/src/model/DeleteEntityRouteRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::DeleteEntityRouteRequest; + +DeleteEntityRouteRequest::DeleteEntityRouteRequest() : + RpcServiceRequest("scsp", "2020-07-02", "DeleteEntityRoute") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteEntityRouteRequest::~DeleteEntityRouteRequest() +{} + +std::string DeleteEntityRouteRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteEntityRouteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long DeleteEntityRouteRequest::getUniqueId()const +{ + return uniqueId_; +} + +void DeleteEntityRouteRequest::setUniqueId(long uniqueId) +{ + uniqueId_ = uniqueId; + setBodyParameter("UniqueId", std::to_string(uniqueId)); +} + diff --git a/scsp/src/model/DeleteEntityRouteResult.cc b/scsp/src/model/DeleteEntityRouteResult.cc new file mode 100644 index 000000000..a8b8bd473 --- /dev/null +++ b/scsp/src/model/DeleteEntityRouteResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +DeleteEntityRouteResult::DeleteEntityRouteResult() : + ServiceResult() +{} + +DeleteEntityRouteResult::DeleteEntityRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEntityRouteResult::~DeleteEntityRouteResult() +{} + +void DeleteEntityRouteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteEntityRouteResult::getMessage()const +{ + return message_; +} + +std::string DeleteEntityRouteResult::getCode()const +{ + return code_; +} + +bool DeleteEntityRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/DisableRoleRequest.cc b/scsp/src/model/DisableRoleRequest.cc new file mode 100644 index 000000000..8ef9fa56f --- /dev/null +++ b/scsp/src/model/DisableRoleRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::DisableRoleRequest; + +DisableRoleRequest::DisableRoleRequest() : + RpcServiceRequest("scsp", "2020-07-02", "DisableRole") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableRoleRequest::~DisableRoleRequest() +{} + +std::string DisableRoleRequest::getClientToken()const +{ + return clientToken_; +} + +void DisableRoleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string DisableRoleRequest::getInstanceId()const +{ + return instanceId_; +} + +void DisableRoleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long DisableRoleRequest::getRoleId()const +{ + return roleId_; +} + +void DisableRoleRequest::setRoleId(long roleId) +{ + roleId_ = roleId; + setBodyParameter("RoleId", std::to_string(roleId)); +} + diff --git a/scsp/src/model/DisableRoleResult.cc b/scsp/src/model/DisableRoleResult.cc new file mode 100644 index 000000000..8a0e488b3 --- /dev/null +++ b/scsp/src/model/DisableRoleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +DisableRoleResult::DisableRoleResult() : + ServiceResult() +{} + +DisableRoleResult::DisableRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableRoleResult::~DisableRoleResult() +{} + +void DisableRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DisableRoleResult::getMessage()const +{ + return message_; +} + +std::string DisableRoleResult::getCode()const +{ + return code_; +} + +bool DisableRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/EditEntityRouteRequest.cc b/scsp/src/model/EditEntityRouteRequest.cc new file mode 100644 index 000000000..67bced29e --- /dev/null +++ b/scsp/src/model/EditEntityRouteRequest.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::EditEntityRouteRequest; + +EditEntityRouteRequest::EditEntityRouteRequest() : + RpcServiceRequest("scsp", "2020-07-02", "EditEntityRoute") +{ + setMethod(HttpRequest::Method::Post); +} + +EditEntityRouteRequest::~EditEntityRouteRequest() +{} + +std::string EditEntityRouteRequest::getExtInfo()const +{ + return extInfo_; +} + +void EditEntityRouteRequest::setExtInfo(const std::string& extInfo) +{ + extInfo_ = extInfo; + setBodyParameter("ExtInfo", extInfo); +} + +std::string EditEntityRouteRequest::getDepartmentId()const +{ + return departmentId_; +} + +void EditEntityRouteRequest::setDepartmentId(const std::string& departmentId) +{ + departmentId_ = departmentId; + setBodyParameter("DepartmentId", departmentId); +} + +long EditEntityRouteRequest::getGroupId()const +{ + return groupId_; +} + +void EditEntityRouteRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setBodyParameter("GroupId", std::to_string(groupId)); +} + +std::string EditEntityRouteRequest::getEntityName()const +{ + return entityName_; +} + +void EditEntityRouteRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setBodyParameter("EntityName", entityName); +} + +std::string EditEntityRouteRequest::getEntityId()const +{ + return entityId_; +} + +void EditEntityRouteRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setBodyParameter("EntityId", entityId); +} + +std::string EditEntityRouteRequest::getEntityBizCodeType()const +{ + return entityBizCodeType_; +} + +void EditEntityRouteRequest::setEntityBizCodeType(const std::string& entityBizCodeType) +{ + entityBizCodeType_ = entityBizCodeType; + setBodyParameter("EntityBizCodeType", entityBizCodeType); +} + +std::string EditEntityRouteRequest::getEntityBizCode()const +{ + return entityBizCode_; +} + +void EditEntityRouteRequest::setEntityBizCode(const std::string& entityBizCode) +{ + entityBizCode_ = entityBizCode; + setBodyParameter("EntityBizCode", entityBizCode); +} + +std::string EditEntityRouteRequest::getInstanceId()const +{ + return instanceId_; +} + +void EditEntityRouteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string EditEntityRouteRequest::getEntityRelationNumber()const +{ + return entityRelationNumber_; +} + +void EditEntityRouteRequest::setEntityRelationNumber(const std::string& entityRelationNumber) +{ + entityRelationNumber_ = entityRelationNumber; + setBodyParameter("EntityRelationNumber", entityRelationNumber); +} + +long EditEntityRouteRequest::getServiceId()const +{ + return serviceId_; +} + +void EditEntityRouteRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setBodyParameter("ServiceId", std::to_string(serviceId)); +} + +long EditEntityRouteRequest::getUniqueId()const +{ + return uniqueId_; +} + +void EditEntityRouteRequest::setUniqueId(long uniqueId) +{ + uniqueId_ = uniqueId; + setBodyParameter("UniqueId", std::to_string(uniqueId)); +} + diff --git a/scsp/src/model/EditEntityRouteResult.cc b/scsp/src/model/EditEntityRouteResult.cc new file mode 100644 index 000000000..e26bb57c4 --- /dev/null +++ b/scsp/src/model/EditEntityRouteResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +EditEntityRouteResult::EditEntityRouteResult() : + ServiceResult() +{} + +EditEntityRouteResult::EditEntityRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EditEntityRouteResult::~EditEntityRouteResult() +{} + +void EditEntityRouteResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string EditEntityRouteResult::getMessage()const +{ + return message_; +} + +std::string EditEntityRouteResult::getCode()const +{ + return code_; +} + +bool EditEntityRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/EnableRoleRequest.cc b/scsp/src/model/EnableRoleRequest.cc new file mode 100644 index 000000000..cd274c9fb --- /dev/null +++ b/scsp/src/model/EnableRoleRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::EnableRoleRequest; + +EnableRoleRequest::EnableRoleRequest() : + RpcServiceRequest("scsp", "2020-07-02", "EnableRole") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableRoleRequest::~EnableRoleRequest() +{} + +std::string EnableRoleRequest::getClientToken()const +{ + return clientToken_; +} + +void EnableRoleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string EnableRoleRequest::getInstanceId()const +{ + return instanceId_; +} + +void EnableRoleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long EnableRoleRequest::getRoleId()const +{ + return roleId_; +} + +void EnableRoleRequest::setRoleId(long roleId) +{ + roleId_ = roleId; + setBodyParameter("RoleId", std::to_string(roleId)); +} + diff --git a/scsp/src/model/EnableRoleResult.cc b/scsp/src/model/EnableRoleResult.cc new file mode 100644 index 000000000..16e4c30b8 --- /dev/null +++ b/scsp/src/model/EnableRoleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +EnableRoleResult::EnableRoleResult() : + ServiceResult() +{} + +EnableRoleResult::EnableRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableRoleResult::~EnableRoleResult() +{} + +void EnableRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string EnableRoleResult::getMessage()const +{ + return message_; +} + +std::string EnableRoleResult::getCode()const +{ + return code_; +} + +bool EnableRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ExecuteActivityRequest.cc b/scsp/src/model/ExecuteActivityRequest.cc new file mode 100644 index 000000000..09fe2cad7 --- /dev/null +++ b/scsp/src/model/ExecuteActivityRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::ExecuteActivityRequest; + +ExecuteActivityRequest::ExecuteActivityRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ExecuteActivity") +{ + setMethod(HttpRequest::Method::Post); +} + +ExecuteActivityRequest::~ExecuteActivityRequest() +{} + +std::string ExecuteActivityRequest::getClientToken()const +{ + return clientToken_; +} + +void ExecuteActivityRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string ExecuteActivityRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExecuteActivityRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long ExecuteActivityRequest::getTicketId()const +{ + return ticketId_; +} + +void ExecuteActivityRequest::setTicketId(long ticketId) +{ + ticketId_ = ticketId; + setBodyParameter("TicketId", std::to_string(ticketId)); +} + +long ExecuteActivityRequest::getOperatorId()const +{ + return operatorId_; +} + +void ExecuteActivityRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setBodyParameter("OperatorId", std::to_string(operatorId)); +} + +std::string ExecuteActivityRequest::getActivityCode()const +{ + return activityCode_; +} + +void ExecuteActivityRequest::setActivityCode(const std::string& activityCode) +{ + activityCode_ = activityCode; + setBodyParameter("ActivityCode", activityCode); +} + +std::string ExecuteActivityRequest::getActivityForm()const +{ + return activityForm_; +} + +void ExecuteActivityRequest::setActivityForm(const std::string& activityForm) +{ + activityForm_ = activityForm; + setBodyParameter("ActivityForm", activityForm); +} + diff --git a/scsp/src/model/ExecuteActivityResult.cc b/scsp/src/model/ExecuteActivityResult.cc new file mode 100644 index 000000000..ce1af6063 --- /dev/null +++ b/scsp/src/model/ExecuteActivityResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ExecuteActivityResult::ExecuteActivityResult() : + ServiceResult() +{} + +ExecuteActivityResult::ExecuteActivityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecuteActivityResult::~ExecuteActivityResult() +{} + +void ExecuteActivityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ExecuteActivityResult::getMessage()const +{ + return message_; +} + +std::string ExecuteActivityResult::getCode()const +{ + return code_; +} + +bool ExecuteActivityResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/FetchCallRequest.cc b/scsp/src/model/FetchCallRequest.cc new file mode 100644 index 000000000..4180ddfc9 --- /dev/null +++ b/scsp/src/model/FetchCallRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::FetchCallRequest; + +FetchCallRequest::FetchCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "FetchCall") +{ + setMethod(HttpRequest::Method::Post); +} + +FetchCallRequest::~FetchCallRequest() +{} + +std::string FetchCallRequest::getClientToken()const +{ + return clientToken_; +} + +void FetchCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string FetchCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void FetchCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string FetchCallRequest::getAccountName()const +{ + return accountName_; +} + +void FetchCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string FetchCallRequest::getCallId()const +{ + return callId_; +} + +void FetchCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string FetchCallRequest::getJobId()const +{ + return jobId_; +} + +void FetchCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string FetchCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void FetchCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string FetchCallRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void FetchCallRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + diff --git a/scsp/src/model/FetchCallResult.cc b/scsp/src/model/FetchCallResult.cc new file mode 100644 index 000000000..5210e50a4 --- /dev/null +++ b/scsp/src/model/FetchCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +FetchCallResult::FetchCallResult() : + ServiceResult() +{} + +FetchCallResult::FetchCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FetchCallResult::~FetchCallResult() +{} + +void FetchCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string FetchCallResult::getMessage()const +{ + return message_; +} + +std::string FetchCallResult::getCode()const +{ + return code_; +} + +bool FetchCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/FinishHotlineServiceRequest.cc b/scsp/src/model/FinishHotlineServiceRequest.cc new file mode 100644 index 000000000..29d7213d0 --- /dev/null +++ b/scsp/src/model/FinishHotlineServiceRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::FinishHotlineServiceRequest; + +FinishHotlineServiceRequest::FinishHotlineServiceRequest() : + RpcServiceRequest("scsp", "2020-07-02", "FinishHotlineService") +{ + setMethod(HttpRequest::Method::Post); +} + +FinishHotlineServiceRequest::~FinishHotlineServiceRequest() +{} + +std::string FinishHotlineServiceRequest::getClientToken()const +{ + return clientToken_; +} + +void FinishHotlineServiceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string FinishHotlineServiceRequest::getInstanceId()const +{ + return instanceId_; +} + +void FinishHotlineServiceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string FinishHotlineServiceRequest::getAccountName()const +{ + return accountName_; +} + +void FinishHotlineServiceRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/FinishHotlineServiceResult.cc b/scsp/src/model/FinishHotlineServiceResult.cc new file mode 100644 index 000000000..19629b921 --- /dev/null +++ b/scsp/src/model/FinishHotlineServiceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +FinishHotlineServiceResult::FinishHotlineServiceResult() : + ServiceResult() +{} + +FinishHotlineServiceResult::FinishHotlineServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FinishHotlineServiceResult::~FinishHotlineServiceResult() +{} + +void FinishHotlineServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string FinishHotlineServiceResult::getMessage()const +{ + return message_; +} + +std::string FinishHotlineServiceResult::getCode()const +{ + return code_; +} + +bool FinishHotlineServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GenerateWebSocketSignRequest.cc b/scsp/src/model/GenerateWebSocketSignRequest.cc new file mode 100644 index 000000000..4810e8e17 --- /dev/null +++ b/scsp/src/model/GenerateWebSocketSignRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GenerateWebSocketSignRequest; + +GenerateWebSocketSignRequest::GenerateWebSocketSignRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GenerateWebSocketSign") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateWebSocketSignRequest::~GenerateWebSocketSignRequest() +{} + +std::string GenerateWebSocketSignRequest::getClientToken()const +{ + return clientToken_; +} + +void GenerateWebSocketSignRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string GenerateWebSocketSignRequest::getInstanceId()const +{ + return instanceId_; +} + +void GenerateWebSocketSignRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GenerateWebSocketSignRequest::getAccountName()const +{ + return accountName_; +} + +void GenerateWebSocketSignRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GenerateWebSocketSignResult.cc b/scsp/src/model/GenerateWebSocketSignResult.cc new file mode 100644 index 000000000..b1083058a --- /dev/null +++ b/scsp/src/model/GenerateWebSocketSignResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GenerateWebSocketSignResult::GenerateWebSocketSignResult() : + ServiceResult() +{} + +GenerateWebSocketSignResult::GenerateWebSocketSignResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateWebSocketSignResult::~GenerateWebSocketSignResult() +{} + +void GenerateWebSocketSignResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GenerateWebSocketSignResult::getMessage()const +{ + return message_; +} + +long GenerateWebSocketSignResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GenerateWebSocketSignResult::getData()const +{ + return data_; +} + +std::string GenerateWebSocketSignResult::getCode()const +{ + return code_; +} + +bool GenerateWebSocketSignResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetAgentRequest.cc b/scsp/src/model/GetAgentRequest.cc new file mode 100644 index 000000000..9af4b7c92 --- /dev/null +++ b/scsp/src/model/GetAgentRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetAgentRequest; + +GetAgentRequest::GetAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetAgent") +{ + setMethod(HttpRequest::Method::Get); +} + +GetAgentRequest::~GetAgentRequest() +{} + +std::string GetAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void GetAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetAgentRequest::getAccountName()const +{ + return accountName_; +} + +void GetAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetAgentResult.cc b/scsp/src/model/GetAgentResult.cc new file mode 100644 index 000000000..261fb238f --- /dev/null +++ b/scsp/src/model/GetAgentResult.cc @@ -0,0 +1,104 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetAgentResult::GetAgentResult() : + ServiceResult() +{} + +GetAgentResult::GetAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAgentResult::~GetAgentResult() +{} + +void GetAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["DisplayName"].isNull()) + data_.displayName = dataNode["DisplayName"].asString(); + if(!dataNode["AgentId"].isNull()) + data_.agentId = std::stol(dataNode["AgentId"].asString()); + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); + if(!dataNode["TenantId"].isNull()) + data_.tenantId = std::stol(dataNode["TenantId"].asString()); + auto allGroupListNode = dataNode["GroupList"]["GroupListItem"]; + for (auto dataNodeGroupListGroupListItem : allGroupListNode) + { + Data::GroupListItem groupListItemObject; + if(!dataNodeGroupListGroupListItem["DisplayName"].isNull()) + groupListItemObject.displayName = dataNodeGroupListGroupListItem["DisplayName"].asString(); + if(!dataNodeGroupListGroupListItem["Description"].isNull()) + groupListItemObject.description = dataNodeGroupListGroupListItem["Description"].asString(); + if(!dataNodeGroupListGroupListItem["ChannelType"].isNull()) + groupListItemObject.channelType = std::stoi(dataNodeGroupListGroupListItem["ChannelType"].asString()); + if(!dataNodeGroupListGroupListItem["SkillGroupId"].isNull()) + groupListItemObject.skillGroupId = std::stol(dataNodeGroupListGroupListItem["SkillGroupId"].asString()); + if(!dataNodeGroupListGroupListItem["Name"].isNull()) + groupListItemObject.name = dataNodeGroupListGroupListItem["Name"].asString(); + data_.groupList.push_back(groupListItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetAgentResult::getMessage()const +{ + return message_; +} + +long GetAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetAgentResult::Data GetAgentResult::getData()const +{ + return data_; +} + +std::string GetAgentResult::getCode()const +{ + return code_; +} + +bool GetAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetAuthInfoRequest.cc b/scsp/src/model/GetAuthInfoRequest.cc new file mode 100644 index 000000000..c2550cdb7 --- /dev/null +++ b/scsp/src/model/GetAuthInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetAuthInfoRequest; + +GetAuthInfoRequest::GetAuthInfoRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetAuthInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAuthInfoRequest::~GetAuthInfoRequest() +{} + +std::string GetAuthInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetAuthInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetAuthInfoRequest::getForeignId()const +{ + return foreignId_; +} + +void GetAuthInfoRequest::setForeignId(const std::string& foreignId) +{ + foreignId_ = foreignId; + setParameter("ForeignId", foreignId); +} + +std::string GetAuthInfoRequest::getAppKey()const +{ + return appKey_; +} + +void GetAuthInfoRequest::setAppKey(const std::string& appKey) +{ + appKey_ = appKey; + setParameter("AppKey", appKey); +} + diff --git a/scsp/src/model/GetAuthInfoResult.cc b/scsp/src/model/GetAuthInfoResult.cc new file mode 100644 index 000000000..2ebe6d895 --- /dev/null +++ b/scsp/src/model/GetAuthInfoResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetAuthInfoResult::GetAuthInfoResult() : + ServiceResult() +{} + +GetAuthInfoResult::GetAuthInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAuthInfoResult::~GetAuthInfoResult() +{} + +void GetAuthInfoResult::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["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Time"].isNull()) + data_.time = std::stol(dataNode["Time"].asString()); + if(!dataNode["AppKey"].isNull()) + data_.appKey = dataNode["AppKey"].asString(); + if(!dataNode["App"].isNull()) + data_.app = dataNode["App"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["Code"].isNull()) + data_.code = dataNode["Code"].asString(); + if(!dataNode["SessionId"].isNull()) + data_.sessionId = dataNode["SessionId"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + if(!dataNode["TenantId"].isNull()) + data_.tenantId = dataNode["TenantId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetAuthInfoResult::getMessage()const +{ + return message_; +} + +GetAuthInfoResult::Data GetAuthInfoResult::getData()const +{ + return data_; +} + +std::string GetAuthInfoResult::getCode()const +{ + return code_; +} + +bool GetAuthInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetCMSIdByForeignIdRequest.cc b/scsp/src/model/GetCMSIdByForeignIdRequest.cc new file mode 100644 index 000000000..d963947cb --- /dev/null +++ b/scsp/src/model/GetCMSIdByForeignIdRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetCMSIdByForeignIdRequest; + +GetCMSIdByForeignIdRequest::GetCMSIdByForeignIdRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetCMSIdByForeignId") +{ + setMethod(HttpRequest::Method::Post); +} + +GetCMSIdByForeignIdRequest::~GetCMSIdByForeignIdRequest() +{} + +std::string GetCMSIdByForeignIdRequest::getNick()const +{ + return nick_; +} + +void GetCMSIdByForeignIdRequest::setNick(const std::string& nick) +{ + nick_ = nick; + setParameter("Nick", nick); +} + +long GetCMSIdByForeignIdRequest::getSourceId()const +{ + return sourceId_; +} + +void GetCMSIdByForeignIdRequest::setSourceId(long sourceId) +{ + sourceId_ = sourceId; + setParameter("SourceId", std::to_string(sourceId)); +} + +std::string GetCMSIdByForeignIdRequest::getForeignId()const +{ + return foreignId_; +} + +void GetCMSIdByForeignIdRequest::setForeignId(const std::string& foreignId) +{ + foreignId_ = foreignId; + setParameter("ForeignId", foreignId); +} + +std::string GetCMSIdByForeignIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetCMSIdByForeignIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/scsp/src/model/GetCMSIdByForeignIdResult.cc b/scsp/src/model/GetCMSIdByForeignIdResult.cc new file mode 100644 index 000000000..f1e5e731a --- /dev/null +++ b/scsp/src/model/GetCMSIdByForeignIdResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetCMSIdByForeignIdResult::GetCMSIdByForeignIdResult() : + ServiceResult() +{} + +GetCMSIdByForeignIdResult::GetCMSIdByForeignIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCMSIdByForeignIdResult::~GetCMSIdByForeignIdResult() +{} + +void GetCMSIdByForeignIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["CustomerTypeId"].isNull()) + data_.customerTypeId = std::stoi(dataNode["CustomerTypeId"].asString()); + if(!dataNode["Avatar"].isNull()) + data_.avatar = dataNode["Avatar"].asString(); + if(!dataNode["Gender"].isNull()) + data_.gender = dataNode["Gender"].asString(); + if(!dataNode["ForeignId"].isNull()) + data_.foreignId = dataNode["ForeignId"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["Nick"].isNull()) + data_.nick = dataNode["Nick"].asString(); + if(!dataNode["Anonymity"].isNull()) + data_.anonymity = dataNode["Anonymity"].asString() == "true"; + if(!dataNode["Phone"].isNull()) + data_.phone = dataNode["Phone"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetCMSIdByForeignIdResult::getMessage()const +{ + return message_; +} + +GetCMSIdByForeignIdResult::Data GetCMSIdByForeignIdResult::getData()const +{ + return data_; +} + +std::string GetCMSIdByForeignIdResult::getCode()const +{ + return code_; +} + +bool GetCMSIdByForeignIdResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetCallsPerDayRequest.cc b/scsp/src/model/GetCallsPerDayRequest.cc new file mode 100644 index 000000000..b72fe1f66 --- /dev/null +++ b/scsp/src/model/GetCallsPerDayRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetCallsPerDayRequest; + +GetCallsPerDayRequest::GetCallsPerDayRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetCallsPerDay") +{ + setMethod(HttpRequest::Method::Get); +} + +GetCallsPerDayRequest::~GetCallsPerDayRequest() +{} + +std::string GetCallsPerDayRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetCallsPerDayRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetCallsPerDayRequest::getDataIdStart()const +{ + return dataIdStart_; +} + +void GetCallsPerDayRequest::setDataIdStart(const std::string& dataIdStart) +{ + dataIdStart_ = dataIdStart; + setParameter("DataIdStart", dataIdStart); +} + +std::string GetCallsPerDayRequest::getDataIdEnd()const +{ + return dataIdEnd_; +} + +void GetCallsPerDayRequest::setDataIdEnd(const std::string& dataIdEnd) +{ + dataIdEnd_ = dataIdEnd; + setParameter("DataIdEnd", dataIdEnd); +} + +std::string GetCallsPerDayRequest::getDataId()const +{ + return dataId_; +} + +void GetCallsPerDayRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string GetCallsPerDayRequest::getHourId()const +{ + return hourId_; +} + +void GetCallsPerDayRequest::setHourId(const std::string& hourId) +{ + hourId_ = hourId; + setParameter("HourId", hourId); +} + +std::string GetCallsPerDayRequest::getMinuteId()const +{ + return minuteId_; +} + +void GetCallsPerDayRequest::setMinuteId(const std::string& minuteId) +{ + minuteId_ = minuteId; + setParameter("MinuteId", minuteId); +} + +std::string GetCallsPerDayRequest::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +void GetCallsPerDayRequest::setPhoneNumbers(const std::string& phoneNumbers) +{ + phoneNumbers_ = phoneNumbers; + setParameter("PhoneNumbers", phoneNumbers); +} + +std::string GetCallsPerDayRequest::getHavePhoneNumbers()const +{ + return havePhoneNumbers_; +} + +void GetCallsPerDayRequest::setHavePhoneNumbers(const std::string& havePhoneNumbers) +{ + havePhoneNumbers_ = havePhoneNumbers; + setParameter("HavePhoneNumbers", havePhoneNumbers); +} + +long GetCallsPerDayRequest::getPageNo()const +{ + return pageNo_; +} + +void GetCallsPerDayRequest::setPageNo(long pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +long GetCallsPerDayRequest::getPageSize()const +{ + return pageSize_; +} + +void GetCallsPerDayRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/scsp/src/model/GetCallsPerDayResult.cc b/scsp/src/model/GetCallsPerDayResult.cc new file mode 100644 index 000000000..41398c76b --- /dev/null +++ b/scsp/src/model/GetCallsPerDayResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetCallsPerDayResult::GetCallsPerDayResult() : + ServiceResult() +{} + +GetCallsPerDayResult::GetCallsPerDayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCallsPerDayResult::~GetCallsPerDayResult() +{} + +void GetCallsPerDayResult::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["TotalNum"].isNull()) + data_.totalNum = std::stol(dataNode["TotalNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["PageNo"].isNull()) + data_.pageNo = dataNode["PageNo"].asString(); + auto allCallsPerdayResponseListNode = dataNode["CallsPerdayResponseList"]["CallsPerdayResponseListItem"]; + for (auto dataNodeCallsPerdayResponseListCallsPerdayResponseListItem : allCallsPerdayResponseListNode) + { + Data::CallsPerdayResponseListItem callsPerdayResponseListItemObject; + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["DataId"].isNull()) + callsPerdayResponseListItemObject.dataId = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["DataId"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["HourId"].isNull()) + callsPerdayResponseListItemObject.hourId = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["HourId"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["TenantId"].isNull()) + callsPerdayResponseListItemObject.tenantId = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["TenantId"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["TenantName"].isNull()) + callsPerdayResponseListItemObject.tenantName = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["TenantName"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["PhoneNum"].isNull()) + callsPerdayResponseListItemObject.phoneNum = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["PhoneNum"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["CallOutCnt"].isNull()) + callsPerdayResponseListItemObject.callOutCnt = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["CallOutCnt"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["CallInCnt"].isNull()) + callsPerdayResponseListItemObject.callInCnt = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["CallInCnt"].asString(); + if(!dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["MinuteId"].isNull()) + callsPerdayResponseListItemObject.minuteId = dataNodeCallsPerdayResponseListCallsPerdayResponseListItem["MinuteId"].asString(); + data_.callsPerdayResponseList.push_back(callsPerdayResponseListItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string GetCallsPerDayResult::getMessage()const +{ + return message_; +} + +GetCallsPerDayResult::Data GetCallsPerDayResult::getData()const +{ + return data_; +} + +std::string GetCallsPerDayResult::getCode()const +{ + return code_; +} + +std::string GetCallsPerDayResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetEntityRouteListRequest.cc b/scsp/src/model/GetEntityRouteListRequest.cc new file mode 100644 index 000000000..1bed0f898 --- /dev/null +++ b/scsp/src/model/GetEntityRouteListRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetEntityRouteListRequest; + +GetEntityRouteListRequest::GetEntityRouteListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetEntityRouteList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEntityRouteListRequest::~GetEntityRouteListRequest() +{} + +std::string GetEntityRouteListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetEntityRouteListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +int GetEntityRouteListRequest::getPageNo()const +{ + return pageNo_; +} + +void GetEntityRouteListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setBodyParameter("PageNo", std::to_string(pageNo)); +} + +int GetEntityRouteListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetEntityRouteListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetEntityRouteListRequest::getEntityName()const +{ + return entityName_; +} + +void GetEntityRouteListRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setBodyParameter("EntityName", entityName); +} + +std::string GetEntityRouteListRequest::getEntityRelationNumber()const +{ + return entityRelationNumber_; +} + +void GetEntityRouteListRequest::setEntityRelationNumber(const std::string& entityRelationNumber) +{ + entityRelationNumber_ = entityRelationNumber; + setBodyParameter("EntityRelationNumber", entityRelationNumber); +} + diff --git a/scsp/src/model/GetEntityRouteListResult.cc b/scsp/src/model/GetEntityRouteListResult.cc new file mode 100644 index 000000000..0de3e1bef --- /dev/null +++ b/scsp/src/model/GetEntityRouteListResult.cc @@ -0,0 +1,103 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetEntityRouteListResult::GetEntityRouteListResult() : + ServiceResult() +{} + +GetEntityRouteListResult::GetEntityRouteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEntityRouteListResult::~GetEntityRouteListResult() +{} + +void GetEntityRouteListResult::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["PageNo"].isNull()) + data_.pageNo = std::stoi(dataNode["PageNo"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + auto allEntityRouteListNode = dataNode["EntityRouteList"]["EntityRouteListItem"]; + for (auto dataNodeEntityRouteListEntityRouteListItem : allEntityRouteListNode) + { + Data::EntityRouteListItem entityRouteListItemObject; + if(!dataNodeEntityRouteListEntityRouteListItem["EntityBizCodeType"].isNull()) + entityRouteListItemObject.entityBizCodeType = dataNodeEntityRouteListEntityRouteListItem["EntityBizCodeType"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["GroupId"].isNull()) + entityRouteListItemObject.groupId = dataNodeEntityRouteListEntityRouteListItem["GroupId"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["EntityId"].isNull()) + entityRouteListItemObject.entityId = dataNodeEntityRouteListEntityRouteListItem["EntityId"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["ServiceId"].isNull()) + entityRouteListItemObject.serviceId = dataNodeEntityRouteListEntityRouteListItem["ServiceId"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["DepartmentId"].isNull()) + entityRouteListItemObject.departmentId = dataNodeEntityRouteListEntityRouteListItem["DepartmentId"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["EntityBizCode"].isNull()) + entityRouteListItemObject.entityBizCode = dataNodeEntityRouteListEntityRouteListItem["EntityBizCode"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["UniqueId"].isNull()) + entityRouteListItemObject.uniqueId = std::stol(dataNodeEntityRouteListEntityRouteListItem["UniqueId"].asString()); + if(!dataNodeEntityRouteListEntityRouteListItem["EntityName"].isNull()) + entityRouteListItemObject.entityName = dataNodeEntityRouteListEntityRouteListItem["EntityName"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["ExtInfo"].isNull()) + entityRouteListItemObject.extInfo = dataNodeEntityRouteListEntityRouteListItem["ExtInfo"].asString(); + if(!dataNodeEntityRouteListEntityRouteListItem["EntityRelationNumber"].isNull()) + entityRouteListItemObject.entityRelationNumber = dataNodeEntityRouteListEntityRouteListItem["EntityRelationNumber"].asString(); + data_.entityRouteList.push_back(entityRouteListItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetEntityRouteListResult::getMessage()const +{ + return message_; +} + +GetEntityRouteListResult::Data GetEntityRouteListResult::getData()const +{ + return data_; +} + +std::string GetEntityRouteListResult::getCode()const +{ + return code_; +} + +bool GetEntityRouteListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetEntityRouteRequest.cc b/scsp/src/model/GetEntityRouteRequest.cc new file mode 100644 index 000000000..1d819534c --- /dev/null +++ b/scsp/src/model/GetEntityRouteRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetEntityRouteRequest; + +GetEntityRouteRequest::GetEntityRouteRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetEntityRoute") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEntityRouteRequest::~GetEntityRouteRequest() +{} + +std::string GetEntityRouteRequest::getEntityBizCode()const +{ + return entityBizCode_; +} + +void GetEntityRouteRequest::setEntityBizCode(const std::string& entityBizCode) +{ + entityBizCode_ = entityBizCode; + setBodyParameter("EntityBizCode", entityBizCode); +} + +std::string GetEntityRouteRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetEntityRouteRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetEntityRouteRequest::getEntityName()const +{ + return entityName_; +} + +void GetEntityRouteRequest::setEntityName(const std::string& entityName) +{ + entityName_ = entityName; + setBodyParameter("EntityName", entityName); +} + +std::string GetEntityRouteRequest::getEntityId()const +{ + return entityId_; +} + +void GetEntityRouteRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setBodyParameter("EntityId", entityId); +} + +std::string GetEntityRouteRequest::getEntityRelationNumber()const +{ + return entityRelationNumber_; +} + +void GetEntityRouteRequest::setEntityRelationNumber(const std::string& entityRelationNumber) +{ + entityRelationNumber_ = entityRelationNumber; + setBodyParameter("EntityRelationNumber", entityRelationNumber); +} + +long GetEntityRouteRequest::getUniqueId()const +{ + return uniqueId_; +} + +void GetEntityRouteRequest::setUniqueId(long uniqueId) +{ + uniqueId_ = uniqueId; + setBodyParameter("UniqueId", std::to_string(uniqueId)); +} + diff --git a/scsp/src/model/GetEntityRouteResult.cc b/scsp/src/model/GetEntityRouteResult.cc new file mode 100644 index 000000000..f9787cff1 --- /dev/null +++ b/scsp/src/model/GetEntityRouteResult.cc @@ -0,0 +1,91 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetEntityRouteResult::GetEntityRouteResult() : + ServiceResult() +{} + +GetEntityRouteResult::GetEntityRouteResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEntityRouteResult::~GetEntityRouteResult() +{} + +void GetEntityRouteResult::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["EntityBizCodeType"].isNull()) + data_.entityBizCodeType = dataNode["EntityBizCodeType"].asString(); + if(!dataNode["GroupId"].isNull()) + data_.groupId = std::stol(dataNode["GroupId"].asString()); + if(!dataNode["EntityId"].isNull()) + data_.entityId = dataNode["EntityId"].asString(); + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = std::stol(dataNode["ServiceId"].asString()); + if(!dataNode["EntityBizCode"].isNull()) + data_.entityBizCode = dataNode["EntityBizCode"].asString(); + if(!dataNode["DepartmentId"].isNull()) + data_.departmentId = dataNode["DepartmentId"].asString(); + if(!dataNode["UniqueId"].isNull()) + data_.uniqueId = std::stol(dataNode["UniqueId"].asString()); + if(!dataNode["EntityName"].isNull()) + data_.entityName = dataNode["EntityName"].asString(); + if(!dataNode["ExtInfo"].isNull()) + data_.extInfo = dataNode["ExtInfo"].asString(); + if(!dataNode["EntityRelationNumber"].isNull()) + data_.entityRelationNumber = dataNode["EntityRelationNumber"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetEntityRouteResult::getMessage()const +{ + return message_; +} + +GetEntityRouteResult::Data GetEntityRouteResult::getData()const +{ + return data_; +} + +std::string GetEntityRouteResult::getCode()const +{ + return code_; +} + +bool GetEntityRouteResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetEntityTagRelationRequest.cc b/scsp/src/model/GetEntityTagRelationRequest.cc new file mode 100644 index 000000000..820f211b3 --- /dev/null +++ b/scsp/src/model/GetEntityTagRelationRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetEntityTagRelationRequest; + +GetEntityTagRelationRequest::GetEntityTagRelationRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetEntityTagRelation") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEntityTagRelationRequest::~GetEntityTagRelationRequest() +{} + +std::string GetEntityTagRelationRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetEntityTagRelationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetEntityTagRelationRequest::getEntityType()const +{ + return entityType_; +} + +void GetEntityTagRelationRequest::setEntityType(const std::string& entityType) +{ + entityType_ = entityType; + setBodyParameter("EntityType", entityType); +} + +std::string GetEntityTagRelationRequest::getEntityId()const +{ + return entityId_; +} + +void GetEntityTagRelationRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setBodyParameter("EntityId", entityId); +} + diff --git a/scsp/src/model/GetEntityTagRelationResult.cc b/scsp/src/model/GetEntityTagRelationResult.cc new file mode 100644 index 000000000..121a32e4f --- /dev/null +++ b/scsp/src/model/GetEntityTagRelationResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetEntityTagRelationResult::GetEntityTagRelationResult() : + ServiceResult() +{} + +GetEntityTagRelationResult::GetEntityTagRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEntityTagRelationResult::~GetEntityTagRelationResult() +{} + +void GetEntityTagRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["TagName"].isNull()) + dataObject.tagName = valueDataDataItem["TagName"].asString(); + if(!valueDataDataItem["TagGroupCode"].isNull()) + dataObject.tagGroupCode = valueDataDataItem["TagGroupCode"].asString(); + if(!valueDataDataItem["EntityId"].isNull()) + dataObject.entityId = valueDataDataItem["EntityId"].asString(); + if(!valueDataDataItem["TagCode"].isNull()) + dataObject.tagCode = valueDataDataItem["TagCode"].asString(); + if(!valueDataDataItem["EntityType"].isNull()) + dataObject.entityType = valueDataDataItem["EntityType"].asString(); + if(!valueDataDataItem["TagGroupName"].isNull()) + dataObject.tagGroupName = valueDataDataItem["TagGroupName"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetEntityTagRelationResult::getMessage()const +{ + return message_; +} + +std::vector GetEntityTagRelationResult::getData()const +{ + return data_; +} + +std::string GetEntityTagRelationResult::getCode()const +{ + return code_; +} + +bool GetEntityTagRelationResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetGrantedRoleIdsRequest.cc b/scsp/src/model/GetGrantedRoleIdsRequest.cc new file mode 100644 index 000000000..b8251fa9d --- /dev/null +++ b/scsp/src/model/GetGrantedRoleIdsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetGrantedRoleIdsRequest; + +GetGrantedRoleIdsRequest::GetGrantedRoleIdsRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetGrantedRoleIds") +{ + setMethod(HttpRequest::Method::Get); +} + +GetGrantedRoleIdsRequest::~GetGrantedRoleIdsRequest() +{} + +std::string GetGrantedRoleIdsRequest::getClientToken()const +{ + return clientToken_; +} + +void GetGrantedRoleIdsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetGrantedRoleIdsRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetGrantedRoleIdsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetGrantedRoleIdsRequest::getAccountName()const +{ + return accountName_; +} + +void GetGrantedRoleIdsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetGrantedRoleIdsResult.cc b/scsp/src/model/GetGrantedRoleIdsResult.cc new file mode 100644 index 000000000..18920ce51 --- /dev/null +++ b/scsp/src/model/GetGrantedRoleIdsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetGrantedRoleIdsResult::GetGrantedRoleIdsResult() : + ServiceResult() +{} + +GetGrantedRoleIdsResult::GetGrantedRoleIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGrantedRoleIdsResult::~GetGrantedRoleIdsResult() +{} + +void GetGrantedRoleIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Roles"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetGrantedRoleIdsResult::getMessage()const +{ + return message_; +} + +long GetGrantedRoleIdsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetGrantedRoleIdsResult::getData()const +{ + return data_; +} + +std::string GetGrantedRoleIdsResult::getCode()const +{ + return code_; +} + +bool GetGrantedRoleIdsResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetHotlineAgentDetailReportRequest.cc b/scsp/src/model/GetHotlineAgentDetailReportRequest.cc new file mode 100644 index 000000000..8a978238f --- /dev/null +++ b/scsp/src/model/GetHotlineAgentDetailReportRequest.cc @@ -0,0 +1,110 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::GetHotlineAgentDetailReportRequest; + +GetHotlineAgentDetailReportRequest::GetHotlineAgentDetailReportRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetHotlineAgentDetailReport") +{ + setMethod(HttpRequest::Method::Post); +} + +GetHotlineAgentDetailReportRequest::~GetHotlineAgentDetailReportRequest() +{} + +std::vector GetHotlineAgentDetailReportRequest::getDepIds()const +{ + return depIds_; +} + +void GetHotlineAgentDetailReportRequest::setDepIds(const std::vector& depIds) +{ + depIds_ = depIds; + for(int dep1 = 0; dep1!= depIds.size(); dep1++) { + setParameter("DepIds."+ std::to_string(dep1), std::to_string(depIds.at(dep1))); + } +} + +long GetHotlineAgentDetailReportRequest::getEndDate()const +{ + return endDate_; +} + +void GetHotlineAgentDetailReportRequest::setEndDate(long endDate) +{ + endDate_ = endDate; + setParameter("EndDate", std::to_string(endDate)); +} + +std::string GetHotlineAgentDetailReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHotlineAgentDetailReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector GetHotlineAgentDetailReportRequest::getGroupIds()const +{ + return groupIds_; +} + +void GetHotlineAgentDetailReportRequest::setGroupIds(const std::vector& groupIds) +{ + groupIds_ = groupIds; + for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { + setParameter("GroupIds."+ std::to_string(dep1), std::to_string(groupIds.at(dep1))); + } +} + +int GetHotlineAgentDetailReportRequest::getPageSize()const +{ + return pageSize_; +} + +void GetHotlineAgentDetailReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int GetHotlineAgentDetailReportRequest::getCurrentPage()const +{ + return currentPage_; +} + +void GetHotlineAgentDetailReportRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +long GetHotlineAgentDetailReportRequest::getStartDate()const +{ + return startDate_; +} + +void GetHotlineAgentDetailReportRequest::setStartDate(long startDate) +{ + startDate_ = startDate; + setParameter("StartDate", std::to_string(startDate)); +} + diff --git a/scsp/src/model/GetHotlineAgentDetailReportResult.cc b/scsp/src/model/GetHotlineAgentDetailReportResult.cc new file mode 100644 index 000000000..24db0136f --- /dev/null +++ b/scsp/src/model/GetHotlineAgentDetailReportResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetHotlineAgentDetailReportResult::GetHotlineAgentDetailReportResult() : + ServiceResult() +{} + +GetHotlineAgentDetailReportResult::GetHotlineAgentDetailReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHotlineAgentDetailReportResult::~GetHotlineAgentDetailReportResult() +{} + +void GetHotlineAgentDetailReportResult::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["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["Page"].isNull()) + data_.page = std::stoi(dataNode["Page"].asString()); + auto allColumnsNode = dataNode["Columns"]["ColumnsItem"]; + for (auto dataNodeColumnsColumnsItem : allColumnsNode) + { + Data::ColumnsItem columnsItemObject; + if(!dataNodeColumnsColumnsItem["Key"].isNull()) + columnsItemObject.key = dataNodeColumnsColumnsItem["Key"].asString(); + if(!dataNodeColumnsColumnsItem["Title"].isNull()) + columnsItemObject.title = dataNodeColumnsColumnsItem["Title"].asString(); + data_.columns.push_back(columnsItemObject); + } + auto allRows = dataNode["Rows"]["Rows"]; + for (auto value : allRows) + data_.rows.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string GetHotlineAgentDetailReportResult::getMessage()const +{ + return message_; +} + +GetHotlineAgentDetailReportResult::Data GetHotlineAgentDetailReportResult::getData()const +{ + return data_; +} + +std::string GetHotlineAgentDetailReportResult::getCode()const +{ + return code_; +} + +std::string GetHotlineAgentDetailReportResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetHotlineAgentDetailRequest.cc b/scsp/src/model/GetHotlineAgentDetailRequest.cc new file mode 100644 index 000000000..02dcfcc40 --- /dev/null +++ b/scsp/src/model/GetHotlineAgentDetailRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetHotlineAgentDetailRequest; + +GetHotlineAgentDetailRequest::GetHotlineAgentDetailRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetHotlineAgentDetail") +{ + setMethod(HttpRequest::Method::Get); +} + +GetHotlineAgentDetailRequest::~GetHotlineAgentDetailRequest() +{} + +std::string GetHotlineAgentDetailRequest::getClientToken()const +{ + return clientToken_; +} + +void GetHotlineAgentDetailRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetHotlineAgentDetailRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHotlineAgentDetailRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetHotlineAgentDetailRequest::getAccountName()const +{ + return accountName_; +} + +void GetHotlineAgentDetailRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetHotlineAgentDetailResult.cc b/scsp/src/model/GetHotlineAgentDetailResult.cc new file mode 100644 index 000000000..ed658a5af --- /dev/null +++ b/scsp/src/model/GetHotlineAgentDetailResult.cc @@ -0,0 +1,92 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetHotlineAgentDetailResult::GetHotlineAgentDetailResult() : + ServiceResult() +{} + +GetHotlineAgentDetailResult::GetHotlineAgentDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHotlineAgentDetailResult::~GetHotlineAgentDetailResult() +{} + +void GetHotlineAgentDetailResult::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["AgentStatusCode"].isNull()) + data_.agentStatusCode = dataNode["AgentStatusCode"].asString(); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!dataNode["AgentId"].isNull()) + data_.agentId = std::stol(dataNode["AgentId"].asString()); + if(!dataNode["Assigned"].isNull()) + data_.assigned = dataNode["Assigned"].asString() == "true"; + if(!dataNode["RestType"].isNull()) + data_.restType = std::stoi(dataNode["RestType"].asString()); + if(!dataNode["AgentStatus"].isNull()) + data_.agentStatus = std::stoi(dataNode["AgentStatus"].asString()); + if(!dataNode["TenantId"].isNull()) + data_.tenantId = std::stol(dataNode["TenantId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetHotlineAgentDetailResult::getMessage()const +{ + return message_; +} + +long GetHotlineAgentDetailResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetHotlineAgentDetailResult::Data GetHotlineAgentDetailResult::getData()const +{ + return data_; +} + +std::string GetHotlineAgentDetailResult::getCode()const +{ + return code_; +} + +bool GetHotlineAgentDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetHotlineAgentStatusRequest.cc b/scsp/src/model/GetHotlineAgentStatusRequest.cc new file mode 100644 index 000000000..69f7c49ab --- /dev/null +++ b/scsp/src/model/GetHotlineAgentStatusRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetHotlineAgentStatusRequest; + +GetHotlineAgentStatusRequest::GetHotlineAgentStatusRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetHotlineAgentStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetHotlineAgentStatusRequest::~GetHotlineAgentStatusRequest() +{} + +std::string GetHotlineAgentStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHotlineAgentStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetHotlineAgentStatusRequest::getAccountName()const +{ + return accountName_; +} + +void GetHotlineAgentStatusRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetHotlineAgentStatusResult.cc b/scsp/src/model/GetHotlineAgentStatusResult.cc new file mode 100644 index 000000000..164dae899 --- /dev/null +++ b/scsp/src/model/GetHotlineAgentStatusResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetHotlineAgentStatusResult::GetHotlineAgentStatusResult() : + ServiceResult() +{} + +GetHotlineAgentStatusResult::GetHotlineAgentStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHotlineAgentStatusResult::~GetHotlineAgentStatusResult() +{} + +void GetHotlineAgentStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetHotlineAgentStatusResult::getMessage()const +{ + return message_; +} + +long GetHotlineAgentStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetHotlineAgentStatusResult::getData()const +{ + return data_; +} + +std::string GetHotlineAgentStatusResult::getCode()const +{ + return code_; +} + +bool GetHotlineAgentStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetHotlineGroupDetailReportRequest.cc b/scsp/src/model/GetHotlineGroupDetailReportRequest.cc new file mode 100644 index 000000000..c3ef92766 --- /dev/null +++ b/scsp/src/model/GetHotlineGroupDetailReportRequest.cc @@ -0,0 +1,110 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::GetHotlineGroupDetailReportRequest; + +GetHotlineGroupDetailReportRequest::GetHotlineGroupDetailReportRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetHotlineGroupDetailReport") +{ + setMethod(HttpRequest::Method::Post); +} + +GetHotlineGroupDetailReportRequest::~GetHotlineGroupDetailReportRequest() +{} + +std::vector GetHotlineGroupDetailReportRequest::getDepIds()const +{ + return depIds_; +} + +void GetHotlineGroupDetailReportRequest::setDepIds(const std::vector& depIds) +{ + depIds_ = depIds; + for(int dep1 = 0; dep1!= depIds.size(); dep1++) { + setParameter("DepIds."+ std::to_string(dep1), std::to_string(depIds.at(dep1))); + } +} + +long GetHotlineGroupDetailReportRequest::getEndDate()const +{ + return endDate_; +} + +void GetHotlineGroupDetailReportRequest::setEndDate(long endDate) +{ + endDate_ = endDate; + setParameter("EndDate", std::to_string(endDate)); +} + +std::string GetHotlineGroupDetailReportRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHotlineGroupDetailReportRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::vector GetHotlineGroupDetailReportRequest::getGroupIds()const +{ + return groupIds_; +} + +void GetHotlineGroupDetailReportRequest::setGroupIds(const std::vector& groupIds) +{ + groupIds_ = groupIds; + for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { + setParameter("GroupIds."+ std::to_string(dep1), std::to_string(groupIds.at(dep1))); + } +} + +int GetHotlineGroupDetailReportRequest::getPageSize()const +{ + return pageSize_; +} + +void GetHotlineGroupDetailReportRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int GetHotlineGroupDetailReportRequest::getCurrentPage()const +{ + return currentPage_; +} + +void GetHotlineGroupDetailReportRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +long GetHotlineGroupDetailReportRequest::getStartDate()const +{ + return startDate_; +} + +void GetHotlineGroupDetailReportRequest::setStartDate(long startDate) +{ + startDate_ = startDate; + setParameter("StartDate", std::to_string(startDate)); +} + diff --git a/scsp/src/model/GetHotlineGroupDetailReportResult.cc b/scsp/src/model/GetHotlineGroupDetailReportResult.cc new file mode 100644 index 000000000..0e306a919 --- /dev/null +++ b/scsp/src/model/GetHotlineGroupDetailReportResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetHotlineGroupDetailReportResult::GetHotlineGroupDetailReportResult() : + ServiceResult() +{} + +GetHotlineGroupDetailReportResult::GetHotlineGroupDetailReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHotlineGroupDetailReportResult::~GetHotlineGroupDetailReportResult() +{} + +void GetHotlineGroupDetailReportResult::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["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["Page"].isNull()) + data_.page = std::stoi(dataNode["Page"].asString()); + auto allColumnsNode = dataNode["Columns"]["ColumnsItem"]; + for (auto dataNodeColumnsColumnsItem : allColumnsNode) + { + Data::ColumnsItem columnsItemObject; + if(!dataNodeColumnsColumnsItem["Key"].isNull()) + columnsItemObject.key = dataNodeColumnsColumnsItem["Key"].asString(); + if(!dataNodeColumnsColumnsItem["Title"].isNull()) + columnsItemObject.title = dataNodeColumnsColumnsItem["Title"].asString(); + data_.columns.push_back(columnsItemObject); + } + auto allRows = dataNode["Rows"]["Rows"]; + for (auto value : allRows) + data_.rows.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string GetHotlineGroupDetailReportResult::getMessage()const +{ + return message_; +} + +GetHotlineGroupDetailReportResult::Data GetHotlineGroupDetailReportResult::getData()const +{ + return data_; +} + +std::string GetHotlineGroupDetailReportResult::getCode()const +{ + return code_; +} + +std::string GetHotlineGroupDetailReportResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetHotlineWaitingNumberRequest.cc b/scsp/src/model/GetHotlineWaitingNumberRequest.cc new file mode 100644 index 000000000..4eb2260cd --- /dev/null +++ b/scsp/src/model/GetHotlineWaitingNumberRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetHotlineWaitingNumberRequest; + +GetHotlineWaitingNumberRequest::GetHotlineWaitingNumberRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetHotlineWaitingNumber") +{ + setMethod(HttpRequest::Method::Get); +} + +GetHotlineWaitingNumberRequest::~GetHotlineWaitingNumberRequest() +{} + +std::string GetHotlineWaitingNumberRequest::getClientToken()const +{ + return clientToken_; +} + +void GetHotlineWaitingNumberRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetHotlineWaitingNumberRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetHotlineWaitingNumberRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetHotlineWaitingNumberRequest::getAccountName()const +{ + return accountName_; +} + +void GetHotlineWaitingNumberRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetHotlineWaitingNumberResult.cc b/scsp/src/model/GetHotlineWaitingNumberResult.cc new file mode 100644 index 000000000..5d92ff07d --- /dev/null +++ b/scsp/src/model/GetHotlineWaitingNumberResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetHotlineWaitingNumberResult::GetHotlineWaitingNumberResult() : + ServiceResult() +{} + +GetHotlineWaitingNumberResult::GetHotlineWaitingNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHotlineWaitingNumberResult::~GetHotlineWaitingNumberResult() +{} + +void GetHotlineWaitingNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetHotlineWaitingNumberResult::getMessage()const +{ + return message_; +} + +long GetHotlineWaitingNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long GetHotlineWaitingNumberResult::getData()const +{ + return data_; +} + +std::string GetHotlineWaitingNumberResult::getCode()const +{ + return code_; +} + +bool GetHotlineWaitingNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetNumLocationRequest.cc b/scsp/src/model/GetNumLocationRequest.cc new file mode 100644 index 000000000..78b471ed8 --- /dev/null +++ b/scsp/src/model/GetNumLocationRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetNumLocationRequest; + +GetNumLocationRequest::GetNumLocationRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetNumLocation") +{ + setMethod(HttpRequest::Method::Get); +} + +GetNumLocationRequest::~GetNumLocationRequest() +{} + +std::string GetNumLocationRequest::getClientToken()const +{ + return clientToken_; +} + +void GetNumLocationRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetNumLocationRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetNumLocationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetNumLocationRequest::getPhoneNum()const +{ + return phoneNum_; +} + +void GetNumLocationRequest::setPhoneNum(const std::string& phoneNum) +{ + phoneNum_ = phoneNum; + setParameter("PhoneNum", phoneNum); +} + diff --git a/scsp/src/model/GetNumLocationResult.cc b/scsp/src/model/GetNumLocationResult.cc new file mode 100644 index 000000000..15bdad975 --- /dev/null +++ b/scsp/src/model/GetNumLocationResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetNumLocationResult::GetNumLocationResult() : + ServiceResult() +{} + +GetNumLocationResult::GetNumLocationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetNumLocationResult::~GetNumLocationResult() +{} + +void GetNumLocationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetNumLocationResult::getMessage()const +{ + return message_; +} + +long GetNumLocationResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetNumLocationResult::getData()const +{ + return data_; +} + +std::string GetNumLocationResult::getCode()const +{ + return code_; +} + +bool GetNumLocationResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetOutbounNumListRequest.cc b/scsp/src/model/GetOutbounNumListRequest.cc new file mode 100644 index 000000000..fe1341a0f --- /dev/null +++ b/scsp/src/model/GetOutbounNumListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetOutbounNumListRequest; + +GetOutbounNumListRequest::GetOutbounNumListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetOutbounNumList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetOutbounNumListRequest::~GetOutbounNumListRequest() +{} + +std::string GetOutbounNumListRequest::getClientToken()const +{ + return clientToken_; +} + +void GetOutbounNumListRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string GetOutbounNumListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetOutbounNumListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetOutbounNumListRequest::getAccountName()const +{ + return accountName_; +} + +void GetOutbounNumListRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/GetOutbounNumListResult.cc b/scsp/src/model/GetOutbounNumListResult.cc new file mode 100644 index 000000000..f7ce890b5 --- /dev/null +++ b/scsp/src/model/GetOutbounNumListResult.cc @@ -0,0 +1,102 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetOutbounNumListResult::GetOutbounNumListResult() : + ServiceResult() +{} + +GetOutbounNumListResult::GetOutbounNumListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOutbounNumListResult::~GetOutbounNumListResult() +{} + +void GetOutbounNumListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allNumGroupNode = dataNode["NumGroup"]["NumGroupItem"]; + for (auto dataNodeNumGroupNumGroupItem : allNumGroupNode) + { + Data::NumGroupItem numGroupItemObject; + if(!dataNodeNumGroupNumGroupItem["Type"].isNull()) + numGroupItemObject.type = std::stoi(dataNodeNumGroupNumGroupItem["Type"].asString()); + if(!dataNodeNumGroupNumGroupItem["Value"].isNull()) + numGroupItemObject.value = dataNodeNumGroupNumGroupItem["Value"].asString(); + if(!dataNodeNumGroupNumGroupItem["Description"].isNull()) + numGroupItemObject.description = dataNodeNumGroupNumGroupItem["Description"].asString(); + data_.numGroup.push_back(numGroupItemObject); + } + auto allNumNode = dataNode["Num"]["NumItem"]; + for (auto dataNodeNumNumItem : allNumNode) + { + Data::NumItem numItemObject; + if(!dataNodeNumNumItem["Type"].isNull()) + numItemObject.type = std::stoi(dataNodeNumNumItem["Type"].asString()); + if(!dataNodeNumNumItem["Value"].isNull()) + numItemObject.value = dataNodeNumNumItem["Value"].asString(); + if(!dataNodeNumNumItem["Description"].isNull()) + numItemObject.description = dataNodeNumNumItem["Description"].asString(); + data_.num.push_back(numItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetOutbounNumListResult::getMessage()const +{ + return message_; +} + +long GetOutbounNumListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetOutbounNumListResult::Data GetOutbounNumListResult::getData()const +{ + return data_; +} + +std::string GetOutbounNumListResult::getCode()const +{ + return code_; +} + +bool GetOutbounNumListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetOuterCallCenterDataListRequest.cc b/scsp/src/model/GetOuterCallCenterDataListRequest.cc new file mode 100644 index 000000000..06a7f7b99 --- /dev/null +++ b/scsp/src/model/GetOuterCallCenterDataListRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetOuterCallCenterDataListRequest; + +GetOuterCallCenterDataListRequest::GetOuterCallCenterDataListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetOuterCallCenterDataList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetOuterCallCenterDataListRequest::~GetOuterCallCenterDataListRequest() +{} + +std::string GetOuterCallCenterDataListRequest::getQueryEndTime()const +{ + return queryEndTime_; +} + +void GetOuterCallCenterDataListRequest::setQueryEndTime(const std::string& queryEndTime) +{ + queryEndTime_ = queryEndTime; + setBodyParameter("QueryEndTime", queryEndTime); +} + +std::string GetOuterCallCenterDataListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetOuterCallCenterDataListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetOuterCallCenterDataListRequest::getToPhoneNum()const +{ + return toPhoneNum_; +} + +void GetOuterCallCenterDataListRequest::setToPhoneNum(const std::string& toPhoneNum) +{ + toPhoneNum_ = toPhoneNum; + setBodyParameter("ToPhoneNum", toPhoneNum); +} + +std::string GetOuterCallCenterDataListRequest::getQueryStartTime()const +{ + return queryStartTime_; +} + +void GetOuterCallCenterDataListRequest::setQueryStartTime(const std::string& queryStartTime) +{ + queryStartTime_ = queryStartTime; + setBodyParameter("QueryStartTime", queryStartTime); +} + +std::string GetOuterCallCenterDataListRequest::getBizId()const +{ + return bizId_; +} + +void GetOuterCallCenterDataListRequest::setBizId(const std::string& bizId) +{ + bizId_ = bizId; + setBodyParameter("BizId", bizId); +} + +std::string GetOuterCallCenterDataListRequest::getSessionId()const +{ + return sessionId_; +} + +void GetOuterCallCenterDataListRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setBodyParameter("SessionId", sessionId); +} + +std::string GetOuterCallCenterDataListRequest::getFromPhoneNum()const +{ + return fromPhoneNum_; +} + +void GetOuterCallCenterDataListRequest::setFromPhoneNum(const std::string& fromPhoneNum) +{ + fromPhoneNum_ = fromPhoneNum; + setBodyParameter("FromPhoneNum", fromPhoneNum); +} + diff --git a/scsp/src/model/GetOuterCallCenterDataListResult.cc b/scsp/src/model/GetOuterCallCenterDataListResult.cc new file mode 100644 index 000000000..447a46828 --- /dev/null +++ b/scsp/src/model/GetOuterCallCenterDataListResult.cc @@ -0,0 +1,105 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetOuterCallCenterDataListResult::GetOuterCallCenterDataListResult() : + ServiceResult() +{} + +GetOuterCallCenterDataListResult::GetOuterCallCenterDataListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOuterCallCenterDataListResult::~GetOuterCallCenterDataListResult() +{} + +void GetOuterCallCenterDataListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["EndReason"].isNull()) + dataObject.endReason = valueDataDataItem["EndReason"].asString(); + if(!valueDataDataItem["CallType"].isNull()) + dataObject.callType = valueDataDataItem["CallType"].asString(); + if(!valueDataDataItem["Acid"].isNull()) + dataObject.acid = valueDataDataItem["Acid"].asString(); + if(!valueDataDataItem["ToPhoneNum"].isNull()) + dataObject.toPhoneNum = valueDataDataItem["ToPhoneNum"].asString(); + if(!valueDataDataItem["UserInfo"].isNull()) + dataObject.userInfo = valueDataDataItem["UserInfo"].asString(); + if(!valueDataDataItem["InterveneTime"].isNull()) + dataObject.interveneTime = valueDataDataItem["InterveneTime"].asString(); + if(!valueDataDataItem["BizId"].isNull()) + dataObject.bizId = valueDataDataItem["BizId"].asString(); + if(!valueDataDataItem["SessionId"].isNull()) + dataObject.sessionId = valueDataDataItem["SessionId"].asString(); + if(!valueDataDataItem["FromPhoneNum"].isNull()) + dataObject.fromPhoneNum = valueDataDataItem["FromPhoneNum"].asString(); + if(!valueDataDataItem["ExtInfo"].isNull()) + dataObject.extInfo = valueDataDataItem["ExtInfo"].asString(); + if(!valueDataDataItem["BizType"].isNull()) + dataObject.bizType = valueDataDataItem["BizType"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GetOuterCallCenterDataListResult::getMessage()const +{ + return message_; +} + +long GetOuterCallCenterDataListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetOuterCallCenterDataListResult::getData()const +{ + return data_; +} + +std::string GetOuterCallCenterDataListResult::getCode()const +{ + return code_; +} + +bool GetOuterCallCenterDataListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetTagListRequest.cc b/scsp/src/model/GetTagListRequest.cc new file mode 100644 index 000000000..962450605 --- /dev/null +++ b/scsp/src/model/GetTagListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetTagListRequest; + +GetTagListRequest::GetTagListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetTagList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTagListRequest::~GetTagListRequest() +{} + +std::string GetTagListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTagListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetTagListRequest::getEntityType()const +{ + return entityType_; +} + +void GetTagListRequest::setEntityType(const std::string& entityType) +{ + entityType_ = entityType; + setBodyParameter("EntityType", entityType); +} + +std::string GetTagListRequest::getEntityId()const +{ + return entityId_; +} + +void GetTagListRequest::setEntityId(const std::string& entityId) +{ + entityId_ = entityId; + setBodyParameter("EntityId", entityId); +} + diff --git a/scsp/src/model/GetTagListResult.cc b/scsp/src/model/GetTagListResult.cc new file mode 100644 index 000000000..ea572b2fd --- /dev/null +++ b/scsp/src/model/GetTagListResult.cc @@ -0,0 +1,102 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetTagListResult::GetTagListResult() : + ServiceResult() +{} + +GetTagListResult::GetTagListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTagListResult::~GetTagListResult() +{} + +void GetTagListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["ScenarioCode"].isNull()) + dataObject.scenarioCode = valueDataDataItem["ScenarioCode"].asString(); + if(!valueDataDataItem["TagGroupCode"].isNull()) + dataObject.tagGroupCode = valueDataDataItem["TagGroupCode"].asString(); + if(!valueDataDataItem["TagGroupName"].isNull()) + dataObject.tagGroupName = valueDataDataItem["TagGroupName"].asString(); + auto allTagValuesNode = valueDataDataItem["TagValues"]["TagValuesItem"]; + for (auto valueDataDataItemTagValuesTagValuesItem : allTagValuesNode) + { + DataItem::TagValuesItem tagValuesObject; + if(!valueDataDataItemTagValuesTagValuesItem["Status"].isNull()) + tagValuesObject.status = valueDataDataItemTagValuesTagValuesItem["Status"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["Description"].isNull()) + tagValuesObject.description = valueDataDataItemTagValuesTagValuesItem["Description"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["TagName"].isNull()) + tagValuesObject.tagName = valueDataDataItemTagValuesTagValuesItem["TagName"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["TagGroupCode"].isNull()) + tagValuesObject.tagGroupCode = valueDataDataItemTagValuesTagValuesItem["TagGroupCode"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["TagCode"].isNull()) + tagValuesObject.tagCode = valueDataDataItemTagValuesTagValuesItem["TagCode"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["TagGroupName"].isNull()) + tagValuesObject.tagGroupName = valueDataDataItemTagValuesTagValuesItem["TagGroupName"].asString(); + if(!valueDataDataItemTagValuesTagValuesItem["EntityRelationNumber"].isNull()) + tagValuesObject.entityRelationNumber = valueDataDataItemTagValuesTagValuesItem["EntityRelationNumber"].asString(); + dataObject.tagValues.push_back(tagValuesObject); + } + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetTagListResult::getMessage()const +{ + return message_; +} + +std::vector GetTagListResult::getData()const +{ + return data_; +} + +std::string GetTagListResult::getCode()const +{ + return code_; +} + +bool GetTagListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetTicketTemplateSchemaRequest.cc b/scsp/src/model/GetTicketTemplateSchemaRequest.cc new file mode 100644 index 000000000..bcd513b5e --- /dev/null +++ b/scsp/src/model/GetTicketTemplateSchemaRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GetTicketTemplateSchemaRequest; + +GetTicketTemplateSchemaRequest::GetTicketTemplateSchemaRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetTicketTemplateSchema") +{ + setMethod(HttpRequest::Method::Get); +} + +GetTicketTemplateSchemaRequest::~GetTicketTemplateSchemaRequest() +{} + +std::string GetTicketTemplateSchemaRequest::getClientToken()const +{ + return clientToken_; +} + +void GetTicketTemplateSchemaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string GetTicketTemplateSchemaRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTicketTemplateSchemaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long GetTicketTemplateSchemaRequest::getTemplateId()const +{ + return templateId_; +} + +void GetTicketTemplateSchemaRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + diff --git a/scsp/src/model/GetTicketTemplateSchemaResult.cc b/scsp/src/model/GetTicketTemplateSchemaResult.cc new file mode 100644 index 000000000..9987477e1 --- /dev/null +++ b/scsp/src/model/GetTicketTemplateSchemaResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetTicketTemplateSchemaResult::GetTicketTemplateSchemaResult() : + ServiceResult() +{} + +GetTicketTemplateSchemaResult::GetTicketTemplateSchemaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTicketTemplateSchemaResult::~GetTicketTemplateSchemaResult() +{} + +void GetTicketTemplateSchemaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetTicketTemplateSchemaResult::getMessage()const +{ + return message_; +} + +std::string GetTicketTemplateSchemaResult::getData()const +{ + return data_; +} + +std::string GetTicketTemplateSchemaResult::getCode()const +{ + return code_; +} + +bool GetTicketTemplateSchemaResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GetUserTokenRequest.cc b/scsp/src/model/GetUserTokenRequest.cc new file mode 100644 index 000000000..a56732ec8 --- /dev/null +++ b/scsp/src/model/GetUserTokenRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::GetUserTokenRequest; + +GetUserTokenRequest::GetUserTokenRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GetUserToken") +{ + setMethod(HttpRequest::Method::Post); +} + +GetUserTokenRequest::~GetUserTokenRequest() +{} + +std::string GetUserTokenRequest::getNick()const +{ + return nick_; +} + +void GetUserTokenRequest::setNick(const std::string& nick) +{ + nick_ = nick; + setBodyParameter("Nick", nick); +} + +std::string GetUserTokenRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetUserTokenRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GetUserTokenRequest::getAppKey()const +{ + return appKey_; +} + +void GetUserTokenRequest::setAppKey(const std::string& appKey) +{ + appKey_ = appKey; + setBodyParameter("AppKey", appKey); +} + +std::string GetUserTokenRequest::getUserId()const +{ + return userId_; +} + +void GetUserTokenRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/scsp/src/model/GetUserTokenResult.cc b/scsp/src/model/GetUserTokenResult.cc new file mode 100644 index 000000000..0267b9177 --- /dev/null +++ b/scsp/src/model/GetUserTokenResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GetUserTokenResult::GetUserTokenResult() : + ServiceResult() +{} + +GetUserTokenResult::GetUserTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserTokenResult::~GetUserTokenResult() +{} + +void GetUserTokenResult::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["Expires"].isNull()) + data_.expires = std::stol(dataNode["Expires"].asString()); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetUserTokenResult::getMessage()const +{ + return message_; +} + +GetUserTokenResult::Data GetUserTokenResult::getData()const +{ + return data_; +} + +std::string GetUserTokenResult::getCode()const +{ + return code_; +} + +bool GetUserTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/GrantRolesRequest.cc b/scsp/src/model/GrantRolesRequest.cc new file mode 100644 index 000000000..98375f4aa --- /dev/null +++ b/scsp/src/model/GrantRolesRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::GrantRolesRequest; + +GrantRolesRequest::GrantRolesRequest() : + RpcServiceRequest("scsp", "2020-07-02", "GrantRoles") +{ + setMethod(HttpRequest::Method::Post); +} + +GrantRolesRequest::~GrantRolesRequest() +{} + +std::string GrantRolesRequest::getClientToken()const +{ + return clientToken_; +} + +void GrantRolesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string GrantRolesRequest::getInstanceId()const +{ + return instanceId_; +} + +void GrantRolesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string GrantRolesRequest::getAccountName()const +{ + return accountName_; +} + +void GrantRolesRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::vector GrantRolesRequest::getRoleId()const +{ + return roleId_; +} + +void GrantRolesRequest::setRoleId(const std::vector& roleId) +{ + roleId_ = roleId; + for(int dep1 = 0; dep1!= roleId.size(); dep1++) { + setBodyParameter("RoleId."+ std::to_string(dep1), std::to_string(roleId.at(dep1))); + } +} + +std::string GrantRolesRequest::get_Operator()const +{ + return _operator_; +} + +void GrantRolesRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setBodyParameter("_Operator", _operator); +} + diff --git a/scsp/src/model/GrantRolesResult.cc b/scsp/src/model/GrantRolesResult.cc new file mode 100644 index 000000000..df5d0c9d0 --- /dev/null +++ b/scsp/src/model/GrantRolesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +GrantRolesResult::GrantRolesResult() : + ServiceResult() +{} + +GrantRolesResult::GrantRolesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantRolesResult::~GrantRolesResult() +{} + +void GrantRolesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string GrantRolesResult::getMessage()const +{ + return message_; +} + +long GrantRolesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GrantRolesResult::getCode()const +{ + return code_; +} + +bool GrantRolesResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/HangupCallRequest.cc b/scsp/src/model/HangupCallRequest.cc new file mode 100644 index 000000000..951952b4b --- /dev/null +++ b/scsp/src/model/HangupCallRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::HangupCallRequest; + +HangupCallRequest::HangupCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "HangupCall") +{ + setMethod(HttpRequest::Method::Post); +} + +HangupCallRequest::~HangupCallRequest() +{} + +std::string HangupCallRequest::getClientToken()const +{ + return clientToken_; +} + +void HangupCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string HangupCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void HangupCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string HangupCallRequest::getAccountName()const +{ + return accountName_; +} + +void HangupCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string HangupCallRequest::getCallId()const +{ + return callId_; +} + +void HangupCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string HangupCallRequest::getJobId()const +{ + return jobId_; +} + +void HangupCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string HangupCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void HangupCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + diff --git a/scsp/src/model/HangupCallResult.cc b/scsp/src/model/HangupCallResult.cc new file mode 100644 index 000000000..894977c47 --- /dev/null +++ b/scsp/src/model/HangupCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +HangupCallResult::HangupCallResult() : + ServiceResult() +{} + +HangupCallResult::HangupCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +HangupCallResult::~HangupCallResult() +{} + +void HangupCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string HangupCallResult::getMessage()const +{ + return message_; +} + +std::string HangupCallResult::getCode()const +{ + return code_; +} + +bool HangupCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/HangupThirdCallRequest.cc b/scsp/src/model/HangupThirdCallRequest.cc new file mode 100644 index 000000000..2ecbf52aa --- /dev/null +++ b/scsp/src/model/HangupThirdCallRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::HangupThirdCallRequest; + +HangupThirdCallRequest::HangupThirdCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "HangupThirdCall") +{ + setMethod(HttpRequest::Method::Post); +} + +HangupThirdCallRequest::~HangupThirdCallRequest() +{} + +std::string HangupThirdCallRequest::getClientToken()const +{ + return clientToken_; +} + +void HangupThirdCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string HangupThirdCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void HangupThirdCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string HangupThirdCallRequest::getAccountName()const +{ + return accountName_; +} + +void HangupThirdCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string HangupThirdCallRequest::getCallId()const +{ + return callId_; +} + +void HangupThirdCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string HangupThirdCallRequest::getJobId()const +{ + return jobId_; +} + +void HangupThirdCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string HangupThirdCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void HangupThirdCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + diff --git a/scsp/src/model/HangupThirdCallResult.cc b/scsp/src/model/HangupThirdCallResult.cc new file mode 100644 index 000000000..5a535cec3 --- /dev/null +++ b/scsp/src/model/HangupThirdCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +HangupThirdCallResult::HangupThirdCallResult() : + ServiceResult() +{} + +HangupThirdCallResult::HangupThirdCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +HangupThirdCallResult::~HangupThirdCallResult() +{} + +void HangupThirdCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string HangupThirdCallResult::getMessage()const +{ + return message_; +} + +std::string HangupThirdCallResult::getCode()const +{ + return code_; +} + +bool HangupThirdCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/HoldCallRequest.cc b/scsp/src/model/HoldCallRequest.cc new file mode 100644 index 000000000..f046a515b --- /dev/null +++ b/scsp/src/model/HoldCallRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::HoldCallRequest; + +HoldCallRequest::HoldCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "HoldCall") +{ + setMethod(HttpRequest::Method::Post); +} + +HoldCallRequest::~HoldCallRequest() +{} + +std::string HoldCallRequest::getClientToken()const +{ + return clientToken_; +} + +void HoldCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string HoldCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void HoldCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string HoldCallRequest::getAccountName()const +{ + return accountName_; +} + +void HoldCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string HoldCallRequest::getCallId()const +{ + return callId_; +} + +void HoldCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string HoldCallRequest::getJobId()const +{ + return jobId_; +} + +void HoldCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string HoldCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void HoldCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + diff --git a/scsp/src/model/HoldCallResult.cc b/scsp/src/model/HoldCallResult.cc new file mode 100644 index 000000000..a515ea6aa --- /dev/null +++ b/scsp/src/model/HoldCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +HoldCallResult::HoldCallResult() : + ServiceResult() +{} + +HoldCallResult::HoldCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +HoldCallResult::~HoldCallResult() +{} + +void HoldCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string HoldCallResult::getMessage()const +{ + return message_; +} + +std::string HoldCallResult::getCode()const +{ + return code_; +} + +bool HoldCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/JoinThirdCallRequest.cc b/scsp/src/model/JoinThirdCallRequest.cc new file mode 100644 index 000000000..df85a4e72 --- /dev/null +++ b/scsp/src/model/JoinThirdCallRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::JoinThirdCallRequest; + +JoinThirdCallRequest::JoinThirdCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "JoinThirdCall") +{ + setMethod(HttpRequest::Method::Post); +} + +JoinThirdCallRequest::~JoinThirdCallRequest() +{} + +std::string JoinThirdCallRequest::getClientToken()const +{ + return clientToken_; +} + +void JoinThirdCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string JoinThirdCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void JoinThirdCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string JoinThirdCallRequest::getAccountName()const +{ + return accountName_; +} + +void JoinThirdCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string JoinThirdCallRequest::getCallId()const +{ + return callId_; +} + +void JoinThirdCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string JoinThirdCallRequest::getJobId()const +{ + return jobId_; +} + +void JoinThirdCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string JoinThirdCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void JoinThirdCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string JoinThirdCallRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void JoinThirdCallRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + diff --git a/scsp/src/model/JoinThirdCallResult.cc b/scsp/src/model/JoinThirdCallResult.cc new file mode 100644 index 000000000..15c903dba --- /dev/null +++ b/scsp/src/model/JoinThirdCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +JoinThirdCallResult::JoinThirdCallResult() : + ServiceResult() +{} + +JoinThirdCallResult::JoinThirdCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinThirdCallResult::~JoinThirdCallResult() +{} + +void JoinThirdCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string JoinThirdCallResult::getMessage()const +{ + return message_; +} + +std::string JoinThirdCallResult::getCode()const +{ + return code_; +} + +bool JoinThirdCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ListAgentBySkillGroupIdRequest.cc b/scsp/src/model/ListAgentBySkillGroupIdRequest.cc new file mode 100644 index 000000000..c99232dd5 --- /dev/null +++ b/scsp/src/model/ListAgentBySkillGroupIdRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::ListAgentBySkillGroupIdRequest; + +ListAgentBySkillGroupIdRequest::ListAgentBySkillGroupIdRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ListAgentBySkillGroupId") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAgentBySkillGroupIdRequest::~ListAgentBySkillGroupIdRequest() +{} + +std::string ListAgentBySkillGroupIdRequest::getClientToken()const +{ + return clientToken_; +} + +void ListAgentBySkillGroupIdRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListAgentBySkillGroupIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListAgentBySkillGroupIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long ListAgentBySkillGroupIdRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void ListAgentBySkillGroupIdRequest::setSkillGroupId(long skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", std::to_string(skillGroupId)); +} + diff --git a/scsp/src/model/ListAgentBySkillGroupIdResult.cc b/scsp/src/model/ListAgentBySkillGroupIdResult.cc new file mode 100644 index 000000000..a868af982 --- /dev/null +++ b/scsp/src/model/ListAgentBySkillGroupIdResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ListAgentBySkillGroupIdResult::ListAgentBySkillGroupIdResult() : + ServiceResult() +{} + +ListAgentBySkillGroupIdResult::ListAgentBySkillGroupIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentBySkillGroupIdResult::~ListAgentBySkillGroupIdResult() +{} + +void ListAgentBySkillGroupIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Agents"]; + for (auto valueDataAgents : allDataNode) + { + Agents dataObject; + if(!valueDataAgents["Status"].isNull()) + dataObject.status = std::stoi(valueDataAgents["Status"].asString()); + if(!valueDataAgents["DisplayName"].isNull()) + dataObject.displayName = valueDataAgents["DisplayName"].asString(); + if(!valueDataAgents["AgentId"].isNull()) + dataObject.agentId = std::stol(valueDataAgents["AgentId"].asString()); + if(!valueDataAgents["AccountName"].isNull()) + dataObject.accountName = valueDataAgents["AccountName"].asString(); + if(!valueDataAgents["TenantId"].isNull()) + dataObject.tenantId = std::stol(valueDataAgents["TenantId"].asString()); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAgentBySkillGroupIdResult::getMessage()const +{ + return message_; +} + +std::vector ListAgentBySkillGroupIdResult::getData()const +{ + return data_; +} + +std::string ListAgentBySkillGroupIdResult::getCode()const +{ + return code_; +} + +bool ListAgentBySkillGroupIdResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ListHotlineRecordRequest.cc b/scsp/src/model/ListHotlineRecordRequest.cc new file mode 100644 index 000000000..6d119f97e --- /dev/null +++ b/scsp/src/model/ListHotlineRecordRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::ListHotlineRecordRequest; + +ListHotlineRecordRequest::ListHotlineRecordRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ListHotlineRecord") +{ + setMethod(HttpRequest::Method::Get); +} + +ListHotlineRecordRequest::~ListHotlineRecordRequest() +{} + +std::string ListHotlineRecordRequest::getClientToken()const +{ + return clientToken_; +} + +void ListHotlineRecordRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListHotlineRecordRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListHotlineRecordRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListHotlineRecordRequest::getCallId()const +{ + return callId_; +} + +void ListHotlineRecordRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + diff --git a/scsp/src/model/ListHotlineRecordResult.cc b/scsp/src/model/ListHotlineRecordResult.cc new file mode 100644 index 000000000..e1a21d178 --- /dev/null +++ b/scsp/src/model/ListHotlineRecordResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ListHotlineRecordResult::ListHotlineRecordResult() : + ServiceResult() +{} + +ListHotlineRecordResult::ListHotlineRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHotlineRecordResult::~ListHotlineRecordResult() +{} + +void ListHotlineRecordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["EndTime"].isNull()) + dataObject.endTime = valueDataDataItem["EndTime"].asString() == "true"; + if(!valueDataDataItem["StartTime"].isNull()) + dataObject.startTime = valueDataDataItem["StartTime"].asString() == "true"; + if(!valueDataDataItem["ConnectionId"].isNull()) + dataObject.connectionId = valueDataDataItem["ConnectionId"].asString(); + if(!valueDataDataItem["CallId"].isNull()) + dataObject.callId = valueDataDataItem["CallId"].asString(); + if(!valueDataDataItem["Url"].isNull()) + dataObject.url = valueDataDataItem["Url"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string ListHotlineRecordResult::getMessage()const +{ + return message_; +} + +long ListHotlineRecordResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListHotlineRecordResult::getData()const +{ + return data_; +} + +std::string ListHotlineRecordResult::getCode()const +{ + return code_; +} + +bool ListHotlineRecordResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ListOutboundPhoneNumberRequest.cc b/scsp/src/model/ListOutboundPhoneNumberRequest.cc new file mode 100644 index 000000000..368756414 --- /dev/null +++ b/scsp/src/model/ListOutboundPhoneNumberRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::ListOutboundPhoneNumberRequest; + +ListOutboundPhoneNumberRequest::ListOutboundPhoneNumberRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ListOutboundPhoneNumber") +{ + setMethod(HttpRequest::Method::Get); +} + +ListOutboundPhoneNumberRequest::~ListOutboundPhoneNumberRequest() +{} + +std::string ListOutboundPhoneNumberRequest::getClientToken()const +{ + return clientToken_; +} + +void ListOutboundPhoneNumberRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListOutboundPhoneNumberRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListOutboundPhoneNumberRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListOutboundPhoneNumberRequest::getAccountName()const +{ + return accountName_; +} + +void ListOutboundPhoneNumberRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/ListOutboundPhoneNumberResult.cc b/scsp/src/model/ListOutboundPhoneNumberResult.cc new file mode 100644 index 000000000..4f7765278 --- /dev/null +++ b/scsp/src/model/ListOutboundPhoneNumberResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ListOutboundPhoneNumberResult::ListOutboundPhoneNumberResult() : + ServiceResult() +{} + +ListOutboundPhoneNumberResult::ListOutboundPhoneNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOutboundPhoneNumberResult::~ListOutboundPhoneNumberResult() +{} + +void ListOutboundPhoneNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["PhoneNumbers"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string ListOutboundPhoneNumberResult::getMessage()const +{ + return message_; +} + +long ListOutboundPhoneNumberResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListOutboundPhoneNumberResult::getData()const +{ + return data_; +} + +std::string ListOutboundPhoneNumberResult::getCode()const +{ + return code_; +} + +bool ListOutboundPhoneNumberResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/ListSkillGroupRequest.cc b/scsp/src/model/ListSkillGroupRequest.cc new file mode 100644 index 000000000..13e15d864 --- /dev/null +++ b/scsp/src/model/ListSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::ListSkillGroupRequest; + +ListSkillGroupRequest::ListSkillGroupRequest() : + RpcServiceRequest("scsp", "2020-07-02", "ListSkillGroup") +{ + setMethod(HttpRequest::Method::Get); +} + +ListSkillGroupRequest::~ListSkillGroupRequest() +{} + +std::string ListSkillGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void ListSkillGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ListSkillGroupRequest::getChannelType()const +{ + return channelType_; +} + +void ListSkillGroupRequest::setChannelType(int channelType) +{ + channelType_ = channelType; + setParameter("ChannelType", std::to_string(channelType)); +} + diff --git a/scsp/src/model/ListSkillGroupResult.cc b/scsp/src/model/ListSkillGroupResult.cc new file mode 100644 index 000000000..b586c35e0 --- /dev/null +++ b/scsp/src/model/ListSkillGroupResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +ListSkillGroupResult::ListSkillGroupResult() : + ServiceResult() +{} + +ListSkillGroupResult::ListSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSkillGroupResult::~ListSkillGroupResult() +{} + +void ListSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SkillGroups"]; + for (auto valueDataSkillGroups : allDataNode) + { + SkillGroups dataObject; + if(!valueDataSkillGroups["DisplayName"].isNull()) + dataObject.displayName = valueDataSkillGroups["DisplayName"].asString(); + if(!valueDataSkillGroups["Description"].isNull()) + dataObject.description = valueDataSkillGroups["Description"].asString(); + if(!valueDataSkillGroups["ChannelType"].isNull()) + dataObject.channelType = std::stoi(valueDataSkillGroups["ChannelType"].asString()); + if(!valueDataSkillGroups["SkillGroupId"].isNull()) + dataObject.skillGroupId = std::stol(valueDataSkillGroups["SkillGroupId"].asString()); + if(!valueDataSkillGroups["Name"].isNull()) + dataObject.name = valueDataSkillGroups["Name"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListSkillGroupResult::getMessage()const +{ + return message_; +} + +std::vector ListSkillGroupResult::getData()const +{ + return data_; +} + +std::string ListSkillGroupResult::getCode()const +{ + return code_; +} + +bool ListSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QueryHotlineSessionRequest.cc b/scsp/src/model/QueryHotlineSessionRequest.cc new file mode 100644 index 000000000..7a07a3929 --- /dev/null +++ b/scsp/src/model/QueryHotlineSessionRequest.cc @@ -0,0 +1,227 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::QueryHotlineSessionRequest; + +QueryHotlineSessionRequest::QueryHotlineSessionRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryHotlineSession") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryHotlineSessionRequest::~QueryHotlineSessionRequest() +{} + +long QueryHotlineSessionRequest::getGroupId()const +{ + return groupId_; +} + +void QueryHotlineSessionRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string QueryHotlineSessionRequest::getServicerId()const +{ + return servicerId_; +} + +void QueryHotlineSessionRequest::setServicerId(const std::string& servicerId) +{ + servicerId_ = servicerId; + setParameter("ServicerId", servicerId); +} + +std::string QueryHotlineSessionRequest::getParams()const +{ + return params_; +} + +void QueryHotlineSessionRequest::setParams(const std::string& params) +{ + params_ = params; + setParameter("Params", params); +} + +std::string QueryHotlineSessionRequest::getGroupName()const +{ + return groupName_; +} + +void QueryHotlineSessionRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string QueryHotlineSessionRequest::getAcid()const +{ + return acid_; +} + +void QueryHotlineSessionRequest::setAcid(const std::string& acid) +{ + acid_ = acid; + setParameter("Acid", acid); +} + +std::string QueryHotlineSessionRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void QueryHotlineSessionRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setParameter("CallingNumber", callingNumber); +} + +long QueryHotlineSessionRequest::getQueryEndTime()const +{ + return queryEndTime_; +} + +void QueryHotlineSessionRequest::setQueryEndTime(long queryEndTime) +{ + queryEndTime_ = queryEndTime; + setParameter("QueryEndTime", std::to_string(queryEndTime)); +} + +std::string QueryHotlineSessionRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryHotlineSessionRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QueryHotlineSessionRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void QueryHotlineSessionRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setParameter("CalledNumber", calledNumber); +} + +std::string QueryHotlineSessionRequest::getRequestId()const +{ + return requestId_; +} + +void QueryHotlineSessionRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +int QueryHotlineSessionRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryHotlineSessionRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +long QueryHotlineSessionRequest::getQueryStartTime()const +{ + return queryStartTime_; +} + +void QueryHotlineSessionRequest::setQueryStartTime(long queryStartTime) +{ + queryStartTime_ = queryStartTime; + setParameter("QueryStartTime", std::to_string(queryStartTime)); +} + +std::string QueryHotlineSessionRequest::getServicerName()const +{ + return servicerName_; +} + +void QueryHotlineSessionRequest::setServicerName(const std::string& servicerName) +{ + servicerName_ = servicerName; + setParameter("ServicerName", servicerName); +} + +int QueryHotlineSessionRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryHotlineSessionRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryHotlineSessionRequest::getCallResult()const +{ + return callResult_; +} + +void QueryHotlineSessionRequest::setCallResult(const std::string& callResult) +{ + callResult_ = callResult; + setParameter("CallResult", callResult); +} + +int QueryHotlineSessionRequest::getCallType()const +{ + return callType_; +} + +void QueryHotlineSessionRequest::setCallType(int callType) +{ + callType_ = callType; + setParameter("CallType", std::to_string(callType)); +} + +std::string QueryHotlineSessionRequest::getMemberName()const +{ + return memberName_; +} + +void QueryHotlineSessionRequest::setMemberName(const std::string& memberName) +{ + memberName_ = memberName; + setParameter("MemberName", memberName); +} + +std::string QueryHotlineSessionRequest::getMemberId()const +{ + return memberId_; +} + +void QueryHotlineSessionRequest::setMemberId(const std::string& memberId) +{ + memberId_ = memberId; + setParameter("MemberId", memberId); +} + diff --git a/scsp/src/model/QueryHotlineSessionResult.cc b/scsp/src/model/QueryHotlineSessionResult.cc new file mode 100644 index 000000000..3a4fd98a0 --- /dev/null +++ b/scsp/src/model/QueryHotlineSessionResult.cc @@ -0,0 +1,131 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryHotlineSessionResult::QueryHotlineSessionResult() : + ServiceResult() +{} + +QueryHotlineSessionResult::QueryHotlineSessionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryHotlineSessionResult::~QueryHotlineSessionResult() +{} + +void QueryHotlineSessionResult::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["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + auto allCallDetailRecordNode = dataNode["CallDetailRecord"]["CallDetailRecordItem"]; + for (auto dataNodeCallDetailRecordCallDetailRecordItem : allCallDetailRecordNode) + { + Data::CallDetailRecordItem callDetailRecordItemObject; + if(!dataNodeCallDetailRecordCallDetailRecordItem["CallResult"].isNull()) + callDetailRecordItemObject.callResult = dataNodeCallDetailRecordCallDetailRecordItem["CallResult"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["ServicerName"].isNull()) + callDetailRecordItemObject.servicerName = dataNodeCallDetailRecordCallDetailRecordItem["ServicerName"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["OutQueueTime"].isNull()) + callDetailRecordItemObject.outQueueTime = dataNodeCallDetailRecordCallDetailRecordItem["OutQueueTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["CallContinueTime"].isNull()) + callDetailRecordItemObject.callContinueTime = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["CallContinueTime"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["CreateTime"].isNull()) + callDetailRecordItemObject.createTime = dataNodeCallDetailRecordCallDetailRecordItem["CreateTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["PickUpTime"].isNull()) + callDetailRecordItemObject.pickUpTime = dataNodeCallDetailRecordCallDetailRecordItem["PickUpTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["RingContinueTime"].isNull()) + callDetailRecordItemObject.ringContinueTime = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["RingContinueTime"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["CalledNumber"].isNull()) + callDetailRecordItemObject.calledNumber = dataNodeCallDetailRecordCallDetailRecordItem["CalledNumber"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["ServicerId"].isNull()) + callDetailRecordItemObject.servicerId = dataNodeCallDetailRecordCallDetailRecordItem["ServicerId"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["HangUpTime"].isNull()) + callDetailRecordItemObject.hangUpTime = dataNodeCallDetailRecordCallDetailRecordItem["HangUpTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["EvaluationLevel"].isNull()) + callDetailRecordItemObject.evaluationLevel = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["EvaluationLevel"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["HangUpRole"].isNull()) + callDetailRecordItemObject.hangUpRole = dataNodeCallDetailRecordCallDetailRecordItem["HangUpRole"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["MemberName"].isNull()) + callDetailRecordItemObject.memberName = dataNodeCallDetailRecordCallDetailRecordItem["MemberName"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["EvaluationScore"].isNull()) + callDetailRecordItemObject.evaluationScore = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["EvaluationScore"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["Acid"].isNull()) + callDetailRecordItemObject.acid = dataNodeCallDetailRecordCallDetailRecordItem["Acid"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["RingStartTime"].isNull()) + callDetailRecordItemObject.ringStartTime = dataNodeCallDetailRecordCallDetailRecordItem["RingStartTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["CallType"].isNull()) + callDetailRecordItemObject.callType = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["CallType"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["GroupName"].isNull()) + callDetailRecordItemObject.groupName = dataNodeCallDetailRecordCallDetailRecordItem["GroupName"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["GroupId"].isNull()) + callDetailRecordItemObject.groupId = std::stol(dataNodeCallDetailRecordCallDetailRecordItem["GroupId"].asString()); + if(!dataNodeCallDetailRecordCallDetailRecordItem["RingEndTime"].isNull()) + callDetailRecordItemObject.ringEndTime = dataNodeCallDetailRecordCallDetailRecordItem["RingEndTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["InQueueTime"].isNull()) + callDetailRecordItemObject.inQueueTime = dataNodeCallDetailRecordCallDetailRecordItem["InQueueTime"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["CallingNumber"].isNull()) + callDetailRecordItemObject.callingNumber = dataNodeCallDetailRecordCallDetailRecordItem["CallingNumber"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["MemberId"].isNull()) + callDetailRecordItemObject.memberId = dataNodeCallDetailRecordCallDetailRecordItem["MemberId"].asString(); + if(!dataNodeCallDetailRecordCallDetailRecordItem["QueueUpContinueTime"].isNull()) + callDetailRecordItemObject.queueUpContinueTime = std::stoi(dataNodeCallDetailRecordCallDetailRecordItem["QueueUpContinueTime"].asString()); + data_.callDetailRecord.push_back(callDetailRecordItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryHotlineSessionResult::getMessage()const +{ + return message_; +} + +QueryHotlineSessionResult::Data QueryHotlineSessionResult::getData()const +{ + return data_; +} + +std::string QueryHotlineSessionResult::getCode()const +{ + return code_; +} + +bool QueryHotlineSessionResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QueryRingDetailListRequest.cc b/scsp/src/model/QueryRingDetailListRequest.cc new file mode 100644 index 000000000..e7fc5bae4 --- /dev/null +++ b/scsp/src/model/QueryRingDetailListRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::QueryRingDetailListRequest; + +QueryRingDetailListRequest::QueryRingDetailListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryRingDetailList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryRingDetailListRequest::~QueryRingDetailListRequest() +{} + +std::string QueryRingDetailListRequest::getFromPhoneNumList()const +{ + return fromPhoneNumList_; +} + +void QueryRingDetailListRequest::setFromPhoneNumList(const std::string& fromPhoneNumList) +{ + fromPhoneNumList_ = fromPhoneNumList; + setBodyParameter("FromPhoneNumList", fromPhoneNumList); +} + +std::string QueryRingDetailListRequest::getCallOutStatus()const +{ + return callOutStatus_; +} + +void QueryRingDetailListRequest::setCallOutStatus(const std::string& callOutStatus) +{ + callOutStatus_ = callOutStatus; + setBodyParameter("CallOutStatus", callOutStatus); +} + +long QueryRingDetailListRequest::getStartDate()const +{ + return startDate_; +} + +void QueryRingDetailListRequest::setStartDate(long startDate) +{ + startDate_ = startDate; + setBodyParameter("StartDate", std::to_string(startDate)); +} + +long QueryRingDetailListRequest::getEndDate()const +{ + return endDate_; +} + +void QueryRingDetailListRequest::setEndDate(long endDate) +{ + endDate_ = endDate; + setBodyParameter("EndDate", std::to_string(endDate)); +} + +std::string QueryRingDetailListRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryRingDetailListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +int QueryRingDetailListRequest::getPageNo()const +{ + return pageNo_; +} + +void QueryRingDetailListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setBodyParameter("PageNo", std::to_string(pageNo)); +} + +std::string QueryRingDetailListRequest::getExtra()const +{ + return extra_; +} + +void QueryRingDetailListRequest::setExtra(const std::string& extra) +{ + extra_ = extra; + setBodyParameter("Extra", extra); +} + +int QueryRingDetailListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryRingDetailListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryRingDetailListRequest::getToPhoneNumList()const +{ + return toPhoneNumList_; +} + +void QueryRingDetailListRequest::setToPhoneNumList(const std::string& toPhoneNumList) +{ + toPhoneNumList_ = toPhoneNumList; + setBodyParameter("ToPhoneNumList", toPhoneNumList); +} + diff --git a/scsp/src/model/QueryRingDetailListResult.cc b/scsp/src/model/QueryRingDetailListResult.cc new file mode 100644 index 000000000..114c2b774 --- /dev/null +++ b/scsp/src/model/QueryRingDetailListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryRingDetailListResult::QueryRingDetailListResult() : + ServiceResult() +{} + +QueryRingDetailListResult::QueryRingDetailListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRingDetailListResult::~QueryRingDetailListResult() +{} + +void QueryRingDetailListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string QueryRingDetailListResult::getMessage()const +{ + return message_; +} + +long QueryRingDetailListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string QueryRingDetailListResult::getData()const +{ + return data_; +} + +std::string QueryRingDetailListResult::getCode()const +{ + return code_; +} + +bool QueryRingDetailListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QueryServiceConfigRequest.cc b/scsp/src/model/QueryServiceConfigRequest.cc new file mode 100644 index 000000000..a073302d6 --- /dev/null +++ b/scsp/src/model/QueryServiceConfigRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::QueryServiceConfigRequest; + +QueryServiceConfigRequest::QueryServiceConfigRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryServiceConfig") +{ + setMethod(HttpRequest::Method::Get); +} + +QueryServiceConfigRequest::~QueryServiceConfigRequest() +{} + +std::string QueryServiceConfigRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryServiceConfigRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QueryServiceConfigRequest::getViewCode()const +{ + return viewCode_; +} + +void QueryServiceConfigRequest::setViewCode(const std::string& viewCode) +{ + viewCode_ = viewCode; + setParameter("ViewCode", viewCode); +} + +std::string QueryServiceConfigRequest::getParameters()const +{ + return parameters_; +} + +void QueryServiceConfigRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/scsp/src/model/QueryServiceConfigResult.cc b/scsp/src/model/QueryServiceConfigResult.cc new file mode 100644 index 000000000..30054e619 --- /dev/null +++ b/scsp/src/model/QueryServiceConfigResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryServiceConfigResult::QueryServiceConfigResult() : + ServiceResult() +{} + +QueryServiceConfigResult::QueryServiceConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryServiceConfigResult::~QueryServiceConfigResult() +{} + +void QueryServiceConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryServiceConfigResult::getMessage()const +{ + return message_; +} + +std::string QueryServiceConfigResult::getData()const +{ + return data_; +} + +std::string QueryServiceConfigResult::getCode()const +{ + return code_; +} + +bool QueryServiceConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QuerySkillGroupsRequest.cc b/scsp/src/model/QuerySkillGroupsRequest.cc new file mode 100644 index 000000000..415dba758 --- /dev/null +++ b/scsp/src/model/QuerySkillGroupsRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::QuerySkillGroupsRequest; + +QuerySkillGroupsRequest::QuerySkillGroupsRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QuerySkillGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySkillGroupsRequest::~QuerySkillGroupsRequest() +{} + +std::string QuerySkillGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void QuerySkillGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int QuerySkillGroupsRequest::getGroupType()const +{ + return groupType_; +} + +void QuerySkillGroupsRequest::setGroupType(int groupType) +{ + groupType_ = groupType; + setParameter("GroupType", std::to_string(groupType)); +} + +std::string QuerySkillGroupsRequest::getClientToken()const +{ + return clientToken_; +} + +void QuerySkillGroupsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int QuerySkillGroupsRequest::getPageNo()const +{ + return pageNo_; +} + +void QuerySkillGroupsRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +long QuerySkillGroupsRequest::getGroupId()const +{ + return groupId_; +} + +void QuerySkillGroupsRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int QuerySkillGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void QuerySkillGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QuerySkillGroupsRequest::getGroupName()const +{ + return groupName_; +} + +void QuerySkillGroupsRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + diff --git a/scsp/src/model/QuerySkillGroupsResult.cc b/scsp/src/model/QuerySkillGroupsResult.cc new file mode 100644 index 000000000..d2545bece --- /dev/null +++ b/scsp/src/model/QuerySkillGroupsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QuerySkillGroupsResult::QuerySkillGroupsResult() : + ServiceResult() +{} + +QuerySkillGroupsResult::QuerySkillGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySkillGroupsResult::~QuerySkillGroupsResult() +{} + +void QuerySkillGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["DisplayName"].isNull()) + dataObject.displayName = valueDataDataItem["DisplayName"].asString(); + if(!valueDataDataItem["Description"].isNull()) + dataObject.description = valueDataDataItem["Description"].asString(); + if(!valueDataDataItem["ChannelType"].isNull()) + dataObject.channelType = std::stoi(valueDataDataItem["ChannelType"].asString()); + if(!valueDataDataItem["SkillGroupName"].isNull()) + dataObject.skillGroupName = valueDataDataItem["SkillGroupName"].asString(); + if(!valueDataDataItem["SkillGroupId"].isNull()) + dataObject.skillGroupId = std::stol(valueDataDataItem["SkillGroupId"].asString()); + data_.push_back(dataObject); + } + if(!value["OnePageSize"].isNull()) + onePageSize_ = std::stoi(value["OnePageSize"].asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalResults"].isNull()) + totalResults_ = std::stoi(value["TotalResults"].asString()); + +} + +int QuerySkillGroupsResult::getOnePageSize()const +{ + return onePageSize_; +} + +int QuerySkillGroupsResult::getTotalPage()const +{ + return totalPage_; +} + +int QuerySkillGroupsResult::getCurrentPage()const +{ + return currentPage_; +} + +int QuerySkillGroupsResult::getTotalResults()const +{ + return totalResults_; +} + +std::vector QuerySkillGroupsResult::getData()const +{ + return data_; +} + diff --git a/scsp/src/model/QueryTicketActionsRequest.cc b/scsp/src/model/QueryTicketActionsRequest.cc new file mode 100644 index 000000000..d646e7f49 --- /dev/null +++ b/scsp/src/model/QueryTicketActionsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::QueryTicketActionsRequest; + +QueryTicketActionsRequest::QueryTicketActionsRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryTicketActions") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryTicketActionsRequest::~QueryTicketActionsRequest() +{} + +std::string QueryTicketActionsRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryTicketActionsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string QueryTicketActionsRequest::getTicketId()const +{ + return ticketId_; +} + +void QueryTicketActionsRequest::setTicketId(const std::string& ticketId) +{ + ticketId_ = ticketId; + setBodyParameter("TicketId", ticketId); +} + +std::vector QueryTicketActionsRequest::getActionCodeList()const +{ + return actionCodeList_; +} + +void QueryTicketActionsRequest::setActionCodeList(const std::vector& actionCodeList) +{ + actionCodeList_ = actionCodeList; + for(int dep1 = 0; dep1!= actionCodeList.size(); dep1++) { + setBodyParameter("ActionCodeList."+ std::to_string(dep1), std::to_string(actionCodeList.at(dep1))); + } +} + diff --git a/scsp/src/model/QueryTicketActionsResult.cc b/scsp/src/model/QueryTicketActionsResult.cc new file mode 100644 index 000000000..f325b02cd --- /dev/null +++ b/scsp/src/model/QueryTicketActionsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryTicketActionsResult::QueryTicketActionsResult() : + ServiceResult() +{} + +QueryTicketActionsResult::QueryTicketActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTicketActionsResult::~QueryTicketActionsResult() +{} + +void QueryTicketActionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryTicketActionsResult::getMessage()const +{ + return message_; +} + +std::string QueryTicketActionsResult::getData()const +{ + return data_; +} + +std::string QueryTicketActionsResult::getCode()const +{ + return code_; +} + +bool QueryTicketActionsResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QueryTicketCountRequest.cc b/scsp/src/model/QueryTicketCountRequest.cc new file mode 100644 index 000000000..e6c120475 --- /dev/null +++ b/scsp/src/model/QueryTicketCountRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::QueryTicketCountRequest; + +QueryTicketCountRequest::QueryTicketCountRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryTicketCount") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryTicketCountRequest::~QueryTicketCountRequest() +{} + +std::string QueryTicketCountRequest::getClientToken()const +{ + return clientToken_; +} + +void QueryTicketCountRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string QueryTicketCountRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryTicketCountRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long QueryTicketCountRequest::getOperatorId()const +{ + return operatorId_; +} + +void QueryTicketCountRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setParameter("OperatorId", std::to_string(operatorId)); +} + diff --git a/scsp/src/model/QueryTicketCountResult.cc b/scsp/src/model/QueryTicketCountResult.cc new file mode 100644 index 000000000..023573f96 --- /dev/null +++ b/scsp/src/model/QueryTicketCountResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryTicketCountResult::QueryTicketCountResult() : + ServiceResult() +{} + +QueryTicketCountResult::QueryTicketCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTicketCountResult::~QueryTicketCountResult() +{} + +void QueryTicketCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryTicketCountResult::getMessage()const +{ + return message_; +} + +std::string QueryTicketCountResult::getData()const +{ + return data_; +} + +std::string QueryTicketCountResult::getCode()const +{ + return code_; +} + +bool QueryTicketCountResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/QueryTicketsRequest.cc b/scsp/src/model/QueryTicketsRequest.cc new file mode 100644 index 000000000..ceb7c4ce5 --- /dev/null +++ b/scsp/src/model/QueryTicketsRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::QueryTicketsRequest; + +QueryTicketsRequest::QueryTicketsRequest() : + RpcServiceRequest("scsp", "2020-07-02", "QueryTickets") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryTicketsRequest::~QueryTicketsRequest() +{} + +long QueryTicketsRequest::getSrType()const +{ + return srType_; +} + +void QueryTicketsRequest::setSrType(long srType) +{ + srType_ = srType; + setBodyParameter("SrType", std::to_string(srType)); +} + +long QueryTicketsRequest::getTouchId()const +{ + return touchId_; +} + +void QueryTicketsRequest::setTouchId(long touchId) +{ + touchId_ = touchId; + setBodyParameter("TouchId", std::to_string(touchId)); +} + +long QueryTicketsRequest::getDealId()const +{ + return dealId_; +} + +void QueryTicketsRequest::setDealId(long dealId) +{ + dealId_ = dealId; + setBodyParameter("DealId", std::to_string(dealId)); +} + +int QueryTicketsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void QueryTicketsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setBodyParameter("CurrentPage", std::to_string(currentPage)); +} + +int QueryTicketsRequest::getTaskStatus()const +{ + return taskStatus_; +} + +void QueryTicketsRequest::setTaskStatus(int taskStatus) +{ + taskStatus_ = taskStatus; + setBodyParameter("TaskStatus", std::to_string(taskStatus)); +} + +std::string QueryTicketsRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryTicketsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string QueryTicketsRequest::getAccountName()const +{ + return accountName_; +} + +void QueryTicketsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +long QueryTicketsRequest::getCaseId()const +{ + return caseId_; +} + +void QueryTicketsRequest::setCaseId(long caseId) +{ + caseId_ = caseId; + setBodyParameter("CaseId", std::to_string(caseId)); +} + +std::string QueryTicketsRequest::getExtra()const +{ + return extra_; +} + +void QueryTicketsRequest::setExtra(const std::string& extra) +{ + extra_ = extra; + setBodyParameter("Extra", extra); +} + +int QueryTicketsRequest::getChannelType()const +{ + return channelType_; +} + +void QueryTicketsRequest::setChannelType(int channelType) +{ + channelType_ = channelType; + setBodyParameter("ChannelType", std::to_string(channelType)); +} + +int QueryTicketsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryTicketsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +int QueryTicketsRequest::getCaseType()const +{ + return caseType_; +} + +void QueryTicketsRequest::setCaseType(int caseType) +{ + caseType_ = caseType; + setBodyParameter("CaseType", std::to_string(caseType)); +} + +int QueryTicketsRequest::getCaseStatus()const +{ + return caseStatus_; +} + +void QueryTicketsRequest::setCaseStatus(int caseStatus) +{ + caseStatus_ = caseStatus; + setBodyParameter("CaseStatus", std::to_string(caseStatus)); +} + +std::string QueryTicketsRequest::getChannelId()const +{ + return channelId_; +} + +void QueryTicketsRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setBodyParameter("ChannelId", channelId); +} + diff --git a/scsp/src/model/QueryTicketsResult.cc b/scsp/src/model/QueryTicketsResult.cc new file mode 100644 index 000000000..f4ecdc4da --- /dev/null +++ b/scsp/src/model/QueryTicketsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +QueryTicketsResult::QueryTicketsResult() : + ServiceResult() +{} + +QueryTicketsResult::QueryTicketsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTicketsResult::~QueryTicketsResult() +{} + +void QueryTicketsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryTicketsResult::getMessage()const +{ + return message_; +} + +std::string QueryTicketsResult::getData()const +{ + return data_; +} + +std::string QueryTicketsResult::getCode()const +{ + return code_; +} + +bool QueryTicketsResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/RemoveSkillGroupRequest.cc b/scsp/src/model/RemoveSkillGroupRequest.cc new file mode 100644 index 000000000..b5d8e2993 --- /dev/null +++ b/scsp/src/model/RemoveSkillGroupRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::RemoveSkillGroupRequest; + +RemoveSkillGroupRequest::RemoveSkillGroupRequest() : + RpcServiceRequest("scsp", "2020-07-02", "RemoveSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveSkillGroupRequest::~RemoveSkillGroupRequest() +{} + +std::string RemoveSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void RemoveSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string RemoveSkillGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveSkillGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string RemoveSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void RemoveSkillGroupRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setBodyParameter("SkillGroupId", skillGroupId); +} + diff --git a/scsp/src/model/RemoveSkillGroupResult.cc b/scsp/src/model/RemoveSkillGroupResult.cc new file mode 100644 index 000000000..3566a6d98 --- /dev/null +++ b/scsp/src/model/RemoveSkillGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +RemoveSkillGroupResult::RemoveSkillGroupResult() : + ServiceResult() +{} + +RemoveSkillGroupResult::RemoveSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSkillGroupResult::~RemoveSkillGroupResult() +{} + +void RemoveSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string RemoveSkillGroupResult::getMessage()const +{ + return message_; +} + +std::string RemoveSkillGroupResult::getCode()const +{ + return code_; +} + +bool RemoveSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SearchTicketByIdRequest.cc b/scsp/src/model/SearchTicketByIdRequest.cc new file mode 100644 index 000000000..6199577d7 --- /dev/null +++ b/scsp/src/model/SearchTicketByIdRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::SearchTicketByIdRequest; + +SearchTicketByIdRequest::SearchTicketByIdRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SearchTicketById") +{ + setMethod(HttpRequest::Method::Get); +} + +SearchTicketByIdRequest::~SearchTicketByIdRequest() +{} + +std::string SearchTicketByIdRequest::getClientToken()const +{ + return clientToken_; +} + +void SearchTicketByIdRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string SearchTicketByIdRequest::getInstanceId()const +{ + return instanceId_; +} + +void SearchTicketByIdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long SearchTicketByIdRequest::getTicketId()const +{ + return ticketId_; +} + +void SearchTicketByIdRequest::setTicketId(long ticketId) +{ + ticketId_ = ticketId; + setParameter("TicketId", std::to_string(ticketId)); +} + +int SearchTicketByIdRequest::getStatusCode()const +{ + return statusCode_; +} + +void SearchTicketByIdRequest::setStatusCode(int statusCode) +{ + statusCode_ = statusCode; + setParameter("StatusCode", std::to_string(statusCode)); +} + diff --git a/scsp/src/model/SearchTicketByIdResult.cc b/scsp/src/model/SearchTicketByIdResult.cc new file mode 100644 index 000000000..b676533b8 --- /dev/null +++ b/scsp/src/model/SearchTicketByIdResult.cc @@ -0,0 +1,138 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SearchTicketByIdResult::SearchTicketByIdResult() : + ServiceResult() +{} + +SearchTicketByIdResult::SearchTicketByIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTicketByIdResult::~SearchTicketByIdResult() +{} + +void SearchTicketByIdResult::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["CarbonCopy"].isNull()) + data_.carbonCopy = dataNode["CarbonCopy"].asString(); + if(!dataNode["MemberName"].isNull()) + data_.memberName = dataNode["MemberName"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = std::stol(dataNode["CreateTime"].asString()); + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = std::stol(dataNode["ServiceId"].asString()); + if(!dataNode["TicketId"].isNull()) + data_.ticketId = std::stol(dataNode["TicketId"].asString()); + if(!dataNode["Priority"].isNull()) + data_.priority = std::stoi(dataNode["Priority"].asString()); + if(!dataNode["CreatorId"].isNull()) + data_.creatorId = std::stol(dataNode["CreatorId"].asString()); + if(!dataNode["FormData"].isNull()) + data_.formData = dataNode["FormData"].asString(); + if(!dataNode["FromInfo"].isNull()) + data_.fromInfo = dataNode["FromInfo"].asString(); + if(!dataNode["ModifiedTime"].isNull()) + data_.modifiedTime = std::stol(dataNode["ModifiedTime"].asString()); + if(!dataNode["CreatorName"].isNull()) + data_.creatorName = dataNode["CreatorName"].asString(); + if(!dataNode["CategoryId"].isNull()) + data_.categoryId = std::stol(dataNode["CategoryId"].asString()); + if(!dataNode["CreatorType"].isNull()) + data_.creatorType = std::stoi(dataNode["CreatorType"].asString()); + if(!dataNode["MemberId"].isNull()) + data_.memberId = std::stol(dataNode["MemberId"].asString()); + if(!dataNode["CaseStatus"].isNull()) + data_.caseStatus = std::stoi(dataNode["CaseStatus"].asString()); + if(!dataNode["TemplateId"].isNull()) + data_.templateId = std::stol(dataNode["TemplateId"].asString()); + if(!dataNode["TicketName"].isNull()) + data_.ticketName = dataNode["TicketName"].asString(); + auto allActivitiesNode = dataNode["Activities"]["ActivitiesItem"]; + for (auto dataNodeActivitiesActivitiesItem : allActivitiesNode) + { + Data::ActivitiesItem activitiesItemObject; + if(!dataNodeActivitiesActivitiesItem["ActivityFormData"].isNull()) + activitiesItemObject.activityFormData = dataNodeActivitiesActivitiesItem["ActivityFormData"].asString(); + if(!dataNodeActivitiesActivitiesItem["ActivityCode"].isNull()) + activitiesItemObject.activityCode = dataNodeActivitiesActivitiesItem["ActivityCode"].asString(); + data_.activities.push_back(activitiesItemObject); + } + auto allActivityRecordsNode = dataNode["ActivityRecords"]["ActivityRecordsItem"]; + for (auto dataNodeActivityRecordsActivityRecordsItem : allActivityRecordsNode) + { + Data::ActivityRecordsItem activityRecordsItemObject; + if(!dataNodeActivityRecordsActivityRecordsItem["ActionCode"].isNull()) + activityRecordsItemObject.actionCode = dataNodeActivityRecordsActivityRecordsItem["ActionCode"].asString(); + if(!dataNodeActivityRecordsActivityRecordsItem["ActionCodeDesc"].isNull()) + activityRecordsItemObject.actionCodeDesc = dataNodeActivityRecordsActivityRecordsItem["ActionCodeDesc"].asString(); + if(!dataNodeActivityRecordsActivityRecordsItem["OperatorName"].isNull()) + activityRecordsItemObject.operatorName = dataNodeActivityRecordsActivityRecordsItem["OperatorName"].asString(); + if(!dataNodeActivityRecordsActivityRecordsItem["Memo"].isNull()) + activityRecordsItemObject.memo = dataNodeActivityRecordsActivityRecordsItem["Memo"].asString(); + if(!dataNodeActivityRecordsActivityRecordsItem["GmtCreate"].isNull()) + activityRecordsItemObject.gmtCreate = std::stol(dataNodeActivityRecordsActivityRecordsItem["GmtCreate"].asString()); + data_.activityRecords.push_back(activityRecordsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string SearchTicketByIdResult::getMessage()const +{ + return message_; +} + +long SearchTicketByIdResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +SearchTicketByIdResult::Data SearchTicketByIdResult::getData()const +{ + return data_; +} + +std::string SearchTicketByIdResult::getCode()const +{ + return code_; +} + +bool SearchTicketByIdResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SearchTicketByPhoneRequest.cc b/scsp/src/model/SearchTicketByPhoneRequest.cc new file mode 100644 index 000000000..94b4c1604 --- /dev/null +++ b/scsp/src/model/SearchTicketByPhoneRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::SearchTicketByPhoneRequest; + +SearchTicketByPhoneRequest::SearchTicketByPhoneRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SearchTicketByPhone") +{ + setMethod(HttpRequest::Method::Get); +} + +SearchTicketByPhoneRequest::~SearchTicketByPhoneRequest() +{} + +std::string SearchTicketByPhoneRequest::getClientToken()const +{ + return clientToken_; +} + +void SearchTicketByPhoneRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string SearchTicketByPhoneRequest::getInstanceId()const +{ + return instanceId_; +} + +void SearchTicketByPhoneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SearchTicketByPhoneRequest::getPhone()const +{ + return phone_; +} + +void SearchTicketByPhoneRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setParameter("Phone", phone); +} + +long SearchTicketByPhoneRequest::getTemplateId()const +{ + return templateId_; +} + +void SearchTicketByPhoneRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + +std::string SearchTicketByPhoneRequest::getTicketStatus()const +{ + return ticketStatus_; +} + +void SearchTicketByPhoneRequest::setTicketStatus(const std::string& ticketStatus) +{ + ticketStatus_ = ticketStatus; + setParameter("TicketStatus", ticketStatus); +} + +int SearchTicketByPhoneRequest::getPageNo()const +{ + return pageNo_; +} + +void SearchTicketByPhoneRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +int SearchTicketByPhoneRequest::getPageSize()const +{ + return pageSize_; +} + +void SearchTicketByPhoneRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long SearchTicketByPhoneRequest::getStartTime()const +{ + return startTime_; +} + +void SearchTicketByPhoneRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +long SearchTicketByPhoneRequest::getEndTime()const +{ + return endTime_; +} + +void SearchTicketByPhoneRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + diff --git a/scsp/src/model/SearchTicketByPhoneResult.cc b/scsp/src/model/SearchTicketByPhoneResult.cc new file mode 100644 index 000000000..d0c6f9559 --- /dev/null +++ b/scsp/src/model/SearchTicketByPhoneResult.cc @@ -0,0 +1,138 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SearchTicketByPhoneResult::SearchTicketByPhoneResult() : + ServiceResult() +{} + +SearchTicketByPhoneResult::SearchTicketByPhoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTicketByPhoneResult::~SearchTicketByPhoneResult() +{} + +void SearchTicketByPhoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["MemberName"].isNull()) + dataObject.memberName = valueDataDataItem["MemberName"].asString(); + if(!valueDataDataItem["CarbonCopy"].isNull()) + dataObject.carbonCopy = valueDataDataItem["CarbonCopy"].asString(); + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = std::stol(valueDataDataItem["CreateTime"].asString()); + if(!valueDataDataItem["ServiceId"].isNull()) + dataObject.serviceId = std::stol(valueDataDataItem["ServiceId"].asString()); + if(!valueDataDataItem["TicketId"].isNull()) + dataObject.ticketId = std::stol(valueDataDataItem["TicketId"].asString()); + if(!valueDataDataItem["Priority"].isNull()) + dataObject.priority = std::stoi(valueDataDataItem["Priority"].asString()); + if(!valueDataDataItem["CreatorId"].isNull()) + dataObject.creatorId = std::stol(valueDataDataItem["CreatorId"].asString()); + if(!valueDataDataItem["FormData"].isNull()) + dataObject.formData = valueDataDataItem["FormData"].asString(); + if(!valueDataDataItem["FromInfo"].isNull()) + dataObject.fromInfo = valueDataDataItem["FromInfo"].asString(); + if(!valueDataDataItem["ModifiedTime"].isNull()) + dataObject.modifiedTime = std::stol(valueDataDataItem["ModifiedTime"].asString()); + if(!valueDataDataItem["TaskStatus"].isNull()) + dataObject.taskStatus = valueDataDataItem["TaskStatus"].asString(); + if(!valueDataDataItem["CreatorName"].isNull()) + dataObject.creatorName = valueDataDataItem["CreatorName"].asString(); + if(!valueDataDataItem["CategoryId"].isNull()) + dataObject.categoryId = std::stol(valueDataDataItem["CategoryId"].asString()); + if(!valueDataDataItem["CreatorType"].isNull()) + dataObject.creatorType = std::stoi(valueDataDataItem["CreatorType"].asString()); + if(!valueDataDataItem["MemberId"].isNull()) + dataObject.memberId = std::stol(valueDataDataItem["MemberId"].asString()); + if(!valueDataDataItem["CaseStatus"].isNull()) + dataObject.caseStatus = std::stoi(valueDataDataItem["CaseStatus"].asString()); + if(!valueDataDataItem["TemplateId"].isNull()) + dataObject.templateId = std::stol(valueDataDataItem["TemplateId"].asString()); + data_.push_back(dataObject); + } + if(!value["OnePageSize"].isNull()) + onePageSize_ = std::stoi(value["OnePageSize"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); + if(!value["TotalResults"].isNull()) + totalResults_ = std::stoi(value["TotalResults"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int SearchTicketByPhoneResult::getOnePageSize()const +{ + return onePageSize_; +} + +std::string SearchTicketByPhoneResult::getMessage()const +{ + return message_; +} + +int SearchTicketByPhoneResult::getTotalPage()const +{ + return totalPage_; +} + +int SearchTicketByPhoneResult::getTotalResults()const +{ + return totalResults_; +} + +std::vector SearchTicketByPhoneResult::getData()const +{ + return data_; +} + +int SearchTicketByPhoneResult::getPageNo()const +{ + return pageNo_; +} + +std::string SearchTicketByPhoneResult::getCode()const +{ + return code_; +} + +bool SearchTicketByPhoneResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SearchTicketListRequest.cc b/scsp/src/model/SearchTicketListRequest.cc new file mode 100644 index 000000000..3bd0ebc86 --- /dev/null +++ b/scsp/src/model/SearchTicketListRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::SearchTicketListRequest; + +SearchTicketListRequest::SearchTicketListRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SearchTicketList") +{ + setMethod(HttpRequest::Method::Get); +} + +SearchTicketListRequest::~SearchTicketListRequest() +{} + +std::string SearchTicketListRequest::getClientToken()const +{ + return clientToken_; +} + +void SearchTicketListRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string SearchTicketListRequest::getInstanceId()const +{ + return instanceId_; +} + +void SearchTicketListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long SearchTicketListRequest::getOperatorId()const +{ + return operatorId_; +} + +void SearchTicketListRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setParameter("OperatorId", std::to_string(operatorId)); +} + +std::string SearchTicketListRequest::getTicketStatus()const +{ + return ticketStatus_; +} + +void SearchTicketListRequest::setTicketStatus(const std::string& ticketStatus) +{ + ticketStatus_ = ticketStatus; + setParameter("TicketStatus", ticketStatus); +} + +int SearchTicketListRequest::getPageNo()const +{ + return pageNo_; +} + +void SearchTicketListRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +int SearchTicketListRequest::getPageSize()const +{ + return pageSize_; +} + +void SearchTicketListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long SearchTicketListRequest::getStartTime()const +{ + return startTime_; +} + +void SearchTicketListRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setParameter("StartTime", std::to_string(startTime)); +} + +long SearchTicketListRequest::getEndTime()const +{ + return endTime_; +} + +void SearchTicketListRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setParameter("EndTime", std::to_string(endTime)); +} + diff --git a/scsp/src/model/SearchTicketListResult.cc b/scsp/src/model/SearchTicketListResult.cc new file mode 100644 index 000000000..278404059 --- /dev/null +++ b/scsp/src/model/SearchTicketListResult.cc @@ -0,0 +1,138 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SearchTicketListResult::SearchTicketListResult() : + ServiceResult() +{} + +SearchTicketListResult::SearchTicketListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchTicketListResult::~SearchTicketListResult() +{} + +void SearchTicketListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["MemberName"].isNull()) + dataObject.memberName = valueDataDataItem["MemberName"].asString(); + if(!valueDataDataItem["CarbonCopy"].isNull()) + dataObject.carbonCopy = valueDataDataItem["CarbonCopy"].asString(); + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = std::stol(valueDataDataItem["CreateTime"].asString()); + if(!valueDataDataItem["ServiceId"].isNull()) + dataObject.serviceId = std::stol(valueDataDataItem["ServiceId"].asString()); + if(!valueDataDataItem["TicketId"].isNull()) + dataObject.ticketId = std::stol(valueDataDataItem["TicketId"].asString()); + if(!valueDataDataItem["Priority"].isNull()) + dataObject.priority = std::stoi(valueDataDataItem["Priority"].asString()); + if(!valueDataDataItem["CreatorId"].isNull()) + dataObject.creatorId = std::stol(valueDataDataItem["CreatorId"].asString()); + if(!valueDataDataItem["FormData"].isNull()) + dataObject.formData = valueDataDataItem["FormData"].asString(); + if(!valueDataDataItem["FromInfo"].isNull()) + dataObject.fromInfo = valueDataDataItem["FromInfo"].asString(); + if(!valueDataDataItem["ModifiedTime"].isNull()) + dataObject.modifiedTime = std::stol(valueDataDataItem["ModifiedTime"].asString()); + if(!valueDataDataItem["TaskStatus"].isNull()) + dataObject.taskStatus = valueDataDataItem["TaskStatus"].asString(); + if(!valueDataDataItem["CreatorName"].isNull()) + dataObject.creatorName = valueDataDataItem["CreatorName"].asString(); + if(!valueDataDataItem["CategoryId"].isNull()) + dataObject.categoryId = std::stol(valueDataDataItem["CategoryId"].asString()); + if(!valueDataDataItem["CreatorType"].isNull()) + dataObject.creatorType = std::stoi(valueDataDataItem["CreatorType"].asString()); + if(!valueDataDataItem["MemberId"].isNull()) + dataObject.memberId = std::stol(valueDataDataItem["MemberId"].asString()); + if(!valueDataDataItem["CaseStatus"].isNull()) + dataObject.caseStatus = std::stoi(valueDataDataItem["CaseStatus"].asString()); + if(!valueDataDataItem["TemplateId"].isNull()) + dataObject.templateId = std::stol(valueDataDataItem["TemplateId"].asString()); + data_.push_back(dataObject); + } + if(!value["OnePageSize"].isNull()) + onePageSize_ = std::stoi(value["OnePageSize"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); + if(!value["TotalResults"].isNull()) + totalResults_ = std::stoi(value["TotalResults"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stoi(value["PageNo"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int SearchTicketListResult::getOnePageSize()const +{ + return onePageSize_; +} + +std::string SearchTicketListResult::getMessage()const +{ + return message_; +} + +int SearchTicketListResult::getTotalPage()const +{ + return totalPage_; +} + +int SearchTicketListResult::getTotalResults()const +{ + return totalResults_; +} + +std::vector SearchTicketListResult::getData()const +{ + return data_; +} + +int SearchTicketListResult::getPageNo()const +{ + return pageNo_; +} + +std::string SearchTicketListResult::getCode()const +{ + return code_; +} + +bool SearchTicketListResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SendHotlineHeartBeatRequest.cc b/scsp/src/model/SendHotlineHeartBeatRequest.cc new file mode 100644 index 000000000..08fb98d7c --- /dev/null +++ b/scsp/src/model/SendHotlineHeartBeatRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::SendHotlineHeartBeatRequest; + +SendHotlineHeartBeatRequest::SendHotlineHeartBeatRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SendHotlineHeartBeat") +{ + setMethod(HttpRequest::Method::Post); +} + +SendHotlineHeartBeatRequest::~SendHotlineHeartBeatRequest() +{} + +std::string SendHotlineHeartBeatRequest::getClientToken()const +{ + return clientToken_; +} + +void SendHotlineHeartBeatRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string SendHotlineHeartBeatRequest::getInstanceId()const +{ + return instanceId_; +} + +void SendHotlineHeartBeatRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string SendHotlineHeartBeatRequest::getAccountName()const +{ + return accountName_; +} + +void SendHotlineHeartBeatRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string SendHotlineHeartBeatRequest::getToken()const +{ + return token_; +} + +void SendHotlineHeartBeatRequest::setToken(const std::string& token) +{ + token_ = token; + setBodyParameter("Token", token); +} + diff --git a/scsp/src/model/SendHotlineHeartBeatResult.cc b/scsp/src/model/SendHotlineHeartBeatResult.cc new file mode 100644 index 000000000..30d791dd7 --- /dev/null +++ b/scsp/src/model/SendHotlineHeartBeatResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SendHotlineHeartBeatResult::SendHotlineHeartBeatResult() : + ServiceResult() +{} + +SendHotlineHeartBeatResult::SendHotlineHeartBeatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendHotlineHeartBeatResult::~SendHotlineHeartBeatResult() +{} + +void SendHotlineHeartBeatResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SendHotlineHeartBeatResult::getMessage()const +{ + return message_; +} + +std::string SendHotlineHeartBeatResult::getCode()const +{ + return code_; +} + +bool SendHotlineHeartBeatResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SendOutboundCommandRequest.cc b/scsp/src/model/SendOutboundCommandRequest.cc new file mode 100644 index 000000000..bc22235f2 --- /dev/null +++ b/scsp/src/model/SendOutboundCommandRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::SendOutboundCommandRequest; + +SendOutboundCommandRequest::SendOutboundCommandRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SendOutboundCommand") +{ + setMethod(HttpRequest::Method::Post); +} + +SendOutboundCommandRequest::~SendOutboundCommandRequest() +{} + +std::string SendOutboundCommandRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void SendOutboundCommandRequest::setCallingNumber(const std::string& callingNumber) +{ + callingNumber_ = callingNumber; + setBodyParameter("CallingNumber", callingNumber); +} + +std::string SendOutboundCommandRequest::getInstanceId()const +{ + return instanceId_; +} + +void SendOutboundCommandRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string SendOutboundCommandRequest::getAccountName()const +{ + return accountName_; +} + +void SendOutboundCommandRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string SendOutboundCommandRequest::getCalledNumber()const +{ + return calledNumber_; +} + +void SendOutboundCommandRequest::setCalledNumber(const std::string& calledNumber) +{ + calledNumber_ = calledNumber; + setBodyParameter("CalledNumber", calledNumber); +} + +std::string SendOutboundCommandRequest::getCustomerInfo()const +{ + return customerInfo_; +} + +void SendOutboundCommandRequest::setCustomerInfo(const std::string& customerInfo) +{ + customerInfo_ = customerInfo; + setBodyParameter("CustomerInfo", customerInfo); +} + diff --git a/scsp/src/model/SendOutboundCommandResult.cc b/scsp/src/model/SendOutboundCommandResult.cc new file mode 100644 index 000000000..047c96f27 --- /dev/null +++ b/scsp/src/model/SendOutboundCommandResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SendOutboundCommandResult::SendOutboundCommandResult() : + ServiceResult() +{} + +SendOutboundCommandResult::SendOutboundCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendOutboundCommandResult::~SendOutboundCommandResult() +{} + +void SendOutboundCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SendOutboundCommandResult::getMessage()const +{ + return message_; +} + +std::string SendOutboundCommandResult::getData()const +{ + return data_; +} + +std::string SendOutboundCommandResult::getCode()const +{ + return code_; +} + +bool SendOutboundCommandResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/StartCallRequest.cc b/scsp/src/model/StartCallRequest.cc new file mode 100644 index 000000000..a4711b239 --- /dev/null +++ b/scsp/src/model/StartCallRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::StartCallRequest; + +StartCallRequest::StartCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "StartCall") +{ + setMethod(HttpRequest::Method::Post); +} + +StartCallRequest::~StartCallRequest() +{} + +std::string StartCallRequest::getClientToken()const +{ + return clientToken_; +} + +void StartCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string StartCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string StartCallRequest::getAccountName()const +{ + return accountName_; +} + +void StartCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string StartCallRequest::getCaller()const +{ + return caller_; +} + +void StartCallRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setBodyParameter("Caller", caller); +} + +std::string StartCallRequest::getCallee()const +{ + return callee_; +} + +void StartCallRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setBodyParameter("Callee", callee); +} + diff --git a/scsp/src/model/StartCallResult.cc b/scsp/src/model/StartCallResult.cc new file mode 100644 index 000000000..82955e0ca --- /dev/null +++ b/scsp/src/model/StartCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +StartCallResult::StartCallResult() : + ServiceResult() +{} + +StartCallResult::StartCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartCallResult::~StartCallResult() +{} + +void StartCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string StartCallResult::getMessage()const +{ + return message_; +} + +std::string StartCallResult::getCode()const +{ + return code_; +} + +bool StartCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/StartCallV2Request.cc b/scsp/src/model/StartCallV2Request.cc new file mode 100644 index 000000000..303d42d0c --- /dev/null +++ b/scsp/src/model/StartCallV2Request.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::StartCallV2Request; + +StartCallV2Request::StartCallV2Request() : + RpcServiceRequest("scsp", "2020-07-02", "StartCallV2") +{ + setMethod(HttpRequest::Method::Post); +} + +StartCallV2Request::~StartCallV2Request() +{} + +std::string StartCallV2Request::getClientToken()const +{ + return clientToken_; +} + +void StartCallV2Request::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string StartCallV2Request::getInstanceId()const +{ + return instanceId_; +} + +void StartCallV2Request::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string StartCallV2Request::getAccountName()const +{ + return accountName_; +} + +void StartCallV2Request::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string StartCallV2Request::getCaller()const +{ + return caller_; +} + +void StartCallV2Request::setCaller(const std::string& caller) +{ + caller_ = caller; + setBodyParameter("Caller", caller); +} + +std::string StartCallV2Request::getCallee()const +{ + return callee_; +} + +void StartCallV2Request::setCallee(const std::string& callee) +{ + callee_ = callee; + setBodyParameter("Callee", callee); +} + +std::string StartCallV2Request::getJsonMsg()const +{ + return jsonMsg_; +} + +void StartCallV2Request::setJsonMsg(const std::string& jsonMsg) +{ + jsonMsg_ = jsonMsg; + setBodyParameter("JsonMsg", jsonMsg); +} + diff --git a/scsp/src/model/StartCallV2Result.cc b/scsp/src/model/StartCallV2Result.cc new file mode 100644 index 000000000..158c6ee3d --- /dev/null +++ b/scsp/src/model/StartCallV2Result.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +StartCallV2Result::StartCallV2Result() : + ServiceResult() +{} + +StartCallV2Result::StartCallV2Result(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartCallV2Result::~StartCallV2Result() +{} + +void StartCallV2Result::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string StartCallV2Result::getMessage()const +{ + return message_; +} + +std::string StartCallV2Result::getCode()const +{ + return code_; +} + +bool StartCallV2Result::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/StartChatWorkRequest.cc b/scsp/src/model/StartChatWorkRequest.cc new file mode 100644 index 000000000..d0323ffd0 --- /dev/null +++ b/scsp/src/model/StartChatWorkRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::StartChatWorkRequest; + +StartChatWorkRequest::StartChatWorkRequest() : + RpcServiceRequest("scsp", "2020-07-02", "StartChatWork") +{ + setMethod(HttpRequest::Method::Post); +} + +StartChatWorkRequest::~StartChatWorkRequest() +{} + +std::string StartChatWorkRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartChatWorkRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string StartChatWorkRequest::getAccountName()const +{ + return accountName_; +} + +void StartChatWorkRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string StartChatWorkRequest::getStationType()const +{ + return stationType_; +} + +void StartChatWorkRequest::setStationType(const std::string& stationType) +{ + stationType_ = stationType; + setBodyParameter("StationType", stationType); +} + +int StartChatWorkRequest::getWorkType()const +{ + return workType_; +} + +void StartChatWorkRequest::setWorkType(int workType) +{ + workType_ = workType; + setBodyParameter("WorkType", std::to_string(workType)); +} + +std::string StartChatWorkRequest::getUserAgent()const +{ + return userAgent_; +} + +void StartChatWorkRequest::setUserAgent(const std::string& userAgent) +{ + userAgent_ = userAgent; + setBodyParameter("UserAgent", userAgent); +} + diff --git a/scsp/src/model/StartChatWorkResult.cc b/scsp/src/model/StartChatWorkResult.cc new file mode 100644 index 000000000..9f9b0a115 --- /dev/null +++ b/scsp/src/model/StartChatWorkResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +StartChatWorkResult::StartChatWorkResult() : + ServiceResult() +{} + +StartChatWorkResult::StartChatWorkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartChatWorkResult::~StartChatWorkResult() +{} + +void StartChatWorkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string StartChatWorkResult::getMessage()const +{ + return message_; +} + +int StartChatWorkResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartChatWorkResult::getData()const +{ + return data_; +} + +std::string StartChatWorkResult::getCode()const +{ + return code_; +} + +bool StartChatWorkResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/StartHotlineServiceRequest.cc b/scsp/src/model/StartHotlineServiceRequest.cc new file mode 100644 index 000000000..b1940bc2a --- /dev/null +++ b/scsp/src/model/StartHotlineServiceRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::StartHotlineServiceRequest; + +StartHotlineServiceRequest::StartHotlineServiceRequest() : + RpcServiceRequest("scsp", "2020-07-02", "StartHotlineService") +{ + setMethod(HttpRequest::Method::Post); +} + +StartHotlineServiceRequest::~StartHotlineServiceRequest() +{} + +std::string StartHotlineServiceRequest::getClientToken()const +{ + return clientToken_; +} + +void StartHotlineServiceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string StartHotlineServiceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartHotlineServiceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string StartHotlineServiceRequest::getAccountName()const +{ + return accountName_; +} + +void StartHotlineServiceRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + diff --git a/scsp/src/model/StartHotlineServiceResult.cc b/scsp/src/model/StartHotlineServiceResult.cc new file mode 100644 index 000000000..9f98b1b9a --- /dev/null +++ b/scsp/src/model/StartHotlineServiceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +StartHotlineServiceResult::StartHotlineServiceResult() : + ServiceResult() +{} + +StartHotlineServiceResult::StartHotlineServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartHotlineServiceResult::~StartHotlineServiceResult() +{} + +void StartHotlineServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string StartHotlineServiceResult::getMessage()const +{ + return message_; +} + +long StartHotlineServiceResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartHotlineServiceResult::getData()const +{ + return data_; +} + +std::string StartHotlineServiceResult::getCode()const +{ + return code_; +} + +bool StartHotlineServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/SuspendHotlineServiceRequest.cc b/scsp/src/model/SuspendHotlineServiceRequest.cc new file mode 100644 index 000000000..f78bff51d --- /dev/null +++ b/scsp/src/model/SuspendHotlineServiceRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::SuspendHotlineServiceRequest; + +SuspendHotlineServiceRequest::SuspendHotlineServiceRequest() : + RpcServiceRequest("scsp", "2020-07-02", "SuspendHotlineService") +{ + setMethod(HttpRequest::Method::Post); +} + +SuspendHotlineServiceRequest::~SuspendHotlineServiceRequest() +{} + +std::string SuspendHotlineServiceRequest::getClientToken()const +{ + return clientToken_; +} + +void SuspendHotlineServiceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string SuspendHotlineServiceRequest::getInstanceId()const +{ + return instanceId_; +} + +void SuspendHotlineServiceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string SuspendHotlineServiceRequest::getAccountName()const +{ + return accountName_; +} + +void SuspendHotlineServiceRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +int SuspendHotlineServiceRequest::getType()const +{ + return type_; +} + +void SuspendHotlineServiceRequest::setType(int type) +{ + type_ = type; + setBodyParameter("Type", std::to_string(type)); +} + diff --git a/scsp/src/model/SuspendHotlineServiceResult.cc b/scsp/src/model/SuspendHotlineServiceResult.cc new file mode 100644 index 000000000..6f2e0a32b --- /dev/null +++ b/scsp/src/model/SuspendHotlineServiceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +SuspendHotlineServiceResult::SuspendHotlineServiceResult() : + ServiceResult() +{} + +SuspendHotlineServiceResult::SuspendHotlineServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SuspendHotlineServiceResult::~SuspendHotlineServiceResult() +{} + +void SuspendHotlineServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SuspendHotlineServiceResult::getMessage()const +{ + return message_; +} + +std::string SuspendHotlineServiceResult::getCode()const +{ + return code_; +} + +bool SuspendHotlineServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/TransferCallToAgentRequest.cc b/scsp/src/model/TransferCallToAgentRequest.cc new file mode 100644 index 000000000..548faa6bd --- /dev/null +++ b/scsp/src/model/TransferCallToAgentRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::TransferCallToAgentRequest; + +TransferCallToAgentRequest::TransferCallToAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "TransferCallToAgent") +{ + setMethod(HttpRequest::Method::Post); +} + +TransferCallToAgentRequest::~TransferCallToAgentRequest() +{} + +std::string TransferCallToAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void TransferCallToAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string TransferCallToAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void TransferCallToAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string TransferCallToAgentRequest::getAccountName()const +{ + return accountName_; +} + +void TransferCallToAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string TransferCallToAgentRequest::getTargetAccountName()const +{ + return targetAccountName_; +} + +void TransferCallToAgentRequest::setTargetAccountName(const std::string& targetAccountName) +{ + targetAccountName_ = targetAccountName; + setBodyParameter("TargetAccountName", targetAccountName); +} + +std::string TransferCallToAgentRequest::getCallId()const +{ + return callId_; +} + +void TransferCallToAgentRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string TransferCallToAgentRequest::getJobId()const +{ + return jobId_; +} + +void TransferCallToAgentRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string TransferCallToAgentRequest::getConnectionId()const +{ + return connectionId_; +} + +void TransferCallToAgentRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string TransferCallToAgentRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void TransferCallToAgentRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + +int TransferCallToAgentRequest::getType()const +{ + return type_; +} + +void TransferCallToAgentRequest::setType(int type) +{ + type_ = type; + setBodyParameter("Type", std::to_string(type)); +} + +std::string TransferCallToAgentRequest::getIsSingleTransfer()const +{ + return isSingleTransfer_; +} + +void TransferCallToAgentRequest::setIsSingleTransfer(const std::string& isSingleTransfer) +{ + isSingleTransfer_ = isSingleTransfer; + setBodyParameter("IsSingleTransfer", isSingleTransfer); +} + diff --git a/scsp/src/model/TransferCallToAgentResult.cc b/scsp/src/model/TransferCallToAgentResult.cc new file mode 100644 index 000000000..455abeacd --- /dev/null +++ b/scsp/src/model/TransferCallToAgentResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +TransferCallToAgentResult::TransferCallToAgentResult() : + ServiceResult() +{} + +TransferCallToAgentResult::TransferCallToAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferCallToAgentResult::~TransferCallToAgentResult() +{} + +void TransferCallToAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string TransferCallToAgentResult::getMessage()const +{ + return message_; +} + +std::string TransferCallToAgentResult::getCode()const +{ + return code_; +} + +bool TransferCallToAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/TransferCallToPhoneRequest.cc b/scsp/src/model/TransferCallToPhoneRequest.cc new file mode 100644 index 000000000..1cd786266 --- /dev/null +++ b/scsp/src/model/TransferCallToPhoneRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::TransferCallToPhoneRequest; + +TransferCallToPhoneRequest::TransferCallToPhoneRequest() : + RpcServiceRequest("scsp", "2020-07-02", "TransferCallToPhone") +{ + setMethod(HttpRequest::Method::Post); +} + +TransferCallToPhoneRequest::~TransferCallToPhoneRequest() +{} + +std::string TransferCallToPhoneRequest::getClientToken()const +{ + return clientToken_; +} + +void TransferCallToPhoneRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string TransferCallToPhoneRequest::getInstanceId()const +{ + return instanceId_; +} + +void TransferCallToPhoneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string TransferCallToPhoneRequest::getAccountName()const +{ + return accountName_; +} + +void TransferCallToPhoneRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string TransferCallToPhoneRequest::getCaller()const +{ + return caller_; +} + +void TransferCallToPhoneRequest::setCaller(const std::string& caller) +{ + caller_ = caller; + setBodyParameter("Caller", caller); +} + +std::string TransferCallToPhoneRequest::getCallee()const +{ + return callee_; +} + +void TransferCallToPhoneRequest::setCallee(const std::string& callee) +{ + callee_ = callee; + setBodyParameter("Callee", callee); +} + +std::string TransferCallToPhoneRequest::getCallId()const +{ + return callId_; +} + +void TransferCallToPhoneRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string TransferCallToPhoneRequest::getJobId()const +{ + return jobId_; +} + +void TransferCallToPhoneRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string TransferCallToPhoneRequest::getConnectionId()const +{ + return connectionId_; +} + +void TransferCallToPhoneRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string TransferCallToPhoneRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void TransferCallToPhoneRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + +int TransferCallToPhoneRequest::getType()const +{ + return type_; +} + +void TransferCallToPhoneRequest::setType(int type) +{ + type_ = type; + setBodyParameter("Type", std::to_string(type)); +} + +bool TransferCallToPhoneRequest::getIsSingleTransfer()const +{ + return isSingleTransfer_; +} + +void TransferCallToPhoneRequest::setIsSingleTransfer(bool isSingleTransfer) +{ + isSingleTransfer_ = isSingleTransfer; + setBodyParameter("IsSingleTransfer", isSingleTransfer ? "true" : "false"); +} + +std::string TransferCallToPhoneRequest::getCallerPhone()const +{ + return callerPhone_; +} + +void TransferCallToPhoneRequest::setCallerPhone(const std::string& callerPhone) +{ + callerPhone_ = callerPhone; + setBodyParameter("CallerPhone", callerPhone); +} + +std::string TransferCallToPhoneRequest::getCalleePhone()const +{ + return calleePhone_; +} + +void TransferCallToPhoneRequest::setCalleePhone(const std::string& calleePhone) +{ + calleePhone_ = calleePhone; + setBodyParameter("CalleePhone", calleePhone); +} + diff --git a/scsp/src/model/TransferCallToPhoneResult.cc b/scsp/src/model/TransferCallToPhoneResult.cc new file mode 100644 index 000000000..f7b7f9129 --- /dev/null +++ b/scsp/src/model/TransferCallToPhoneResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +TransferCallToPhoneResult::TransferCallToPhoneResult() : + ServiceResult() +{} + +TransferCallToPhoneResult::TransferCallToPhoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferCallToPhoneResult::~TransferCallToPhoneResult() +{} + +void TransferCallToPhoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string TransferCallToPhoneResult::getMessage()const +{ + return message_; +} + +long TransferCallToPhoneResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string TransferCallToPhoneResult::getCode()const +{ + return code_; +} + +bool TransferCallToPhoneResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/TransferCallToSkillGroupRequest.cc b/scsp/src/model/TransferCallToSkillGroupRequest.cc new file mode 100644 index 000000000..cbd356d3a --- /dev/null +++ b/scsp/src/model/TransferCallToSkillGroupRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::TransferCallToSkillGroupRequest; + +TransferCallToSkillGroupRequest::TransferCallToSkillGroupRequest() : + RpcServiceRequest("scsp", "2020-07-02", "TransferCallToSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +TransferCallToSkillGroupRequest::~TransferCallToSkillGroupRequest() +{} + +std::string TransferCallToSkillGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void TransferCallToSkillGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string TransferCallToSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void TransferCallToSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string TransferCallToSkillGroupRequest::getAccountName()const +{ + return accountName_; +} + +void TransferCallToSkillGroupRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +long TransferCallToSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void TransferCallToSkillGroupRequest::setSkillGroupId(long skillGroupId) +{ + skillGroupId_ = skillGroupId; + setBodyParameter("SkillGroupId", std::to_string(skillGroupId)); +} + +std::string TransferCallToSkillGroupRequest::getCallId()const +{ + return callId_; +} + +void TransferCallToSkillGroupRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string TransferCallToSkillGroupRequest::getJobId()const +{ + return jobId_; +} + +void TransferCallToSkillGroupRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string TransferCallToSkillGroupRequest::getConnectionId()const +{ + return connectionId_; +} + +void TransferCallToSkillGroupRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string TransferCallToSkillGroupRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void TransferCallToSkillGroupRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + +int TransferCallToSkillGroupRequest::getType()const +{ + return type_; +} + +void TransferCallToSkillGroupRequest::setType(int type) +{ + type_ = type; + setBodyParameter("Type", std::to_string(type)); +} + +bool TransferCallToSkillGroupRequest::getIsSingleTransfer()const +{ + return isSingleTransfer_; +} + +void TransferCallToSkillGroupRequest::setIsSingleTransfer(bool isSingleTransfer) +{ + isSingleTransfer_ = isSingleTransfer; + setBodyParameter("IsSingleTransfer", isSingleTransfer ? "true" : "false"); +} + diff --git a/scsp/src/model/TransferCallToSkillGroupResult.cc b/scsp/src/model/TransferCallToSkillGroupResult.cc new file mode 100644 index 000000000..aa34238c8 --- /dev/null +++ b/scsp/src/model/TransferCallToSkillGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +TransferCallToSkillGroupResult::TransferCallToSkillGroupResult() : + ServiceResult() +{} + +TransferCallToSkillGroupResult::TransferCallToSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferCallToSkillGroupResult::~TransferCallToSkillGroupResult() +{} + +void TransferCallToSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string TransferCallToSkillGroupResult::getMessage()const +{ + return message_; +} + +std::string TransferCallToSkillGroupResult::getCode()const +{ + return code_; +} + +bool TransferCallToSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/TransferToThirdCallRequest.cc b/scsp/src/model/TransferToThirdCallRequest.cc new file mode 100644 index 000000000..b1e8b9d4b --- /dev/null +++ b/scsp/src/model/TransferToThirdCallRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::TransferToThirdCallRequest; + +TransferToThirdCallRequest::TransferToThirdCallRequest() : + RpcServiceRequest("scsp", "2020-07-02", "TransferToThirdCall") +{ + setMethod(HttpRequest::Method::Post); +} + +TransferToThirdCallRequest::~TransferToThirdCallRequest() +{} + +std::string TransferToThirdCallRequest::getClientToken()const +{ + return clientToken_; +} + +void TransferToThirdCallRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string TransferToThirdCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void TransferToThirdCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string TransferToThirdCallRequest::getAccountName()const +{ + return accountName_; +} + +void TransferToThirdCallRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string TransferToThirdCallRequest::getCallId()const +{ + return callId_; +} + +void TransferToThirdCallRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setBodyParameter("CallId", callId); +} + +std::string TransferToThirdCallRequest::getJobId()const +{ + return jobId_; +} + +void TransferToThirdCallRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string TransferToThirdCallRequest::getConnectionId()const +{ + return connectionId_; +} + +void TransferToThirdCallRequest::setConnectionId(const std::string& connectionId) +{ + connectionId_ = connectionId; + setBodyParameter("ConnectionId", connectionId); +} + +std::string TransferToThirdCallRequest::getHoldConnectionId()const +{ + return holdConnectionId_; +} + +void TransferToThirdCallRequest::setHoldConnectionId(const std::string& holdConnectionId) +{ + holdConnectionId_ = holdConnectionId; + setBodyParameter("HoldConnectionId", holdConnectionId); +} + diff --git a/scsp/src/model/TransferToThirdCallResult.cc b/scsp/src/model/TransferToThirdCallResult.cc new file mode 100644 index 000000000..06fe7e22c --- /dev/null +++ b/scsp/src/model/TransferToThirdCallResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +TransferToThirdCallResult::TransferToThirdCallResult() : + ServiceResult() +{} + +TransferToThirdCallResult::TransferToThirdCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferToThirdCallResult::~TransferToThirdCallResult() +{} + +void TransferToThirdCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string TransferToThirdCallResult::getMessage()const +{ + return message_; +} + +std::string TransferToThirdCallResult::getCode()const +{ + return code_; +} + +bool TransferToThirdCallResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateAgentRequest.cc b/scsp/src/model/UpdateAgentRequest.cc new file mode 100644 index 000000000..1939a0726 --- /dev/null +++ b/scsp/src/model/UpdateAgentRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Scsp::Model::UpdateAgentRequest; + +UpdateAgentRequest::UpdateAgentRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateAgent") +{ + setMethod(HttpRequest::Method::Put); +} + +UpdateAgentRequest::~UpdateAgentRequest() +{} + +std::string UpdateAgentRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateAgentRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string UpdateAgentRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateAgentRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string UpdateAgentRequest::getAccountName()const +{ + return accountName_; +} + +void UpdateAgentRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string UpdateAgentRequest::getDisplayName()const +{ + return displayName_; +} + +void UpdateAgentRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setBodyParameter("DisplayName", displayName); +} + +std::vector UpdateAgentRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void UpdateAgentRequest::setSkillGroupId(const std::vector& skillGroupId) +{ + skillGroupId_ = skillGroupId; + for(int dep1 = 0; dep1!= skillGroupId.size(); dep1++) { + setBodyParameter("SkillGroupId."+ std::to_string(dep1), std::to_string(skillGroupId.at(dep1))); + } +} + +std::vector UpdateAgentRequest::getSkillGroupIdList()const +{ + return skillGroupIdList_; +} + +void UpdateAgentRequest::setSkillGroupIdList(const std::vector& skillGroupIdList) +{ + skillGroupIdList_ = skillGroupIdList; + for(int dep1 = 0; dep1!= skillGroupIdList.size(); dep1++) { + setBodyParameter("SkillGroupIdList."+ std::to_string(dep1), std::to_string(skillGroupIdList.at(dep1))); + } +} + diff --git a/scsp/src/model/UpdateAgentResult.cc b/scsp/src/model/UpdateAgentResult.cc new file mode 100644 index 000000000..a80208aa1 --- /dev/null +++ b/scsp/src/model/UpdateAgentResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateAgentResult::UpdateAgentResult() : + ServiceResult() +{} + +UpdateAgentResult::UpdateAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAgentResult::~UpdateAgentResult() +{} + +void UpdateAgentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string UpdateAgentResult::getMessage()const +{ + return message_; +} + +long UpdateAgentResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateAgentResult::getCode()const +{ + return code_; +} + +bool UpdateAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateCustomerRequest.cc b/scsp/src/model/UpdateCustomerRequest.cc new file mode 100644 index 000000000..af8c088ea --- /dev/null +++ b/scsp/src/model/UpdateCustomerRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::UpdateCustomerRequest; + +UpdateCustomerRequest::UpdateCustomerRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateCustomer") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomerRequest::~UpdateCustomerRequest() +{} + +std::string UpdateCustomerRequest::getIndustry()const +{ + return industry_; +} + +void UpdateCustomerRequest::setIndustry(const std::string& industry) +{ + industry_ = industry; + setParameter("Industry", industry); +} + +int UpdateCustomerRequest::getOuterIdType()const +{ + return outerIdType_; +} + +void UpdateCustomerRequest::setOuterIdType(int outerIdType) +{ + outerIdType_ = outerIdType; + setParameter("OuterIdType", std::to_string(outerIdType)); +} + +std::string UpdateCustomerRequest::getDingding()const +{ + return dingding_; +} + +void UpdateCustomerRequest::setDingding(const std::string& dingding) +{ + dingding_ = dingding; + setParameter("Dingding", dingding); +} + +std::string UpdateCustomerRequest::getBizType()const +{ + return bizType_; +} + +void UpdateCustomerRequest::setBizType(const std::string& bizType) +{ + bizType_ = bizType; + setParameter("BizType", bizType); +} + +std::string UpdateCustomerRequest::getTypeCode()const +{ + return typeCode_; +} + +void UpdateCustomerRequest::setTypeCode(const std::string& typeCode) +{ + typeCode_ = typeCode; + setParameter("TypeCode", typeCode); +} + +std::string UpdateCustomerRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateCustomerRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateCustomerRequest::getContacter()const +{ + return contacter_; +} + +void UpdateCustomerRequest::setContacter(const std::string& contacter) +{ + contacter_ = contacter; + setParameter("Contacter", contacter); +} + +long UpdateCustomerRequest::getProdLineId()const +{ + return prodLineId_; +} + +void UpdateCustomerRequest::setProdLineId(long prodLineId) +{ + prodLineId_ = prodLineId; + setParameter("ProdLineId", std::to_string(prodLineId)); +} + +std::string UpdateCustomerRequest::getPhone()const +{ + return phone_; +} + +void UpdateCustomerRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setParameter("Phone", phone); +} + +std::string UpdateCustomerRequest::getName()const +{ + return name_; +} + +void UpdateCustomerRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long UpdateCustomerRequest::getCustomerId()const +{ + return customerId_; +} + +void UpdateCustomerRequest::setCustomerId(long customerId) +{ + customerId_ = customerId; + setParameter("CustomerId", std::to_string(customerId)); +} + +std::string UpdateCustomerRequest::getManagerName()const +{ + return managerName_; +} + +void UpdateCustomerRequest::setManagerName(const std::string& managerName) +{ + managerName_ = managerName; + setParameter("ManagerName", managerName); +} + +std::string UpdateCustomerRequest::getOuterId()const +{ + return outerId_; +} + +void UpdateCustomerRequest::setOuterId(const std::string& outerId) +{ + outerId_ = outerId; + setParameter("OuterId", outerId); +} + +std::string UpdateCustomerRequest::getPosition()const +{ + return position_; +} + +void UpdateCustomerRequest::setPosition(const std::string& position) +{ + position_ = position; + setParameter("Position", position); +} + +std::string UpdateCustomerRequest::getEmail()const +{ + return email_; +} + +void UpdateCustomerRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + diff --git a/scsp/src/model/UpdateCustomerResult.cc b/scsp/src/model/UpdateCustomerResult.cc new file mode 100644 index 000000000..3d24d38ce --- /dev/null +++ b/scsp/src/model/UpdateCustomerResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateCustomerResult::UpdateCustomerResult() : + ServiceResult() +{} + +UpdateCustomerResult::UpdateCustomerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomerResult::~UpdateCustomerResult() +{} + +void UpdateCustomerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateCustomerResult::getMessage()const +{ + return message_; +} + +long UpdateCustomerResult::getData()const +{ + return data_; +} + +std::string UpdateCustomerResult::getCode()const +{ + return code_; +} + +bool UpdateCustomerResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateEntityTagRelationRequest.cc b/scsp/src/model/UpdateEntityTagRelationRequest.cc new file mode 100644 index 000000000..34ca38c7d --- /dev/null +++ b/scsp/src/model/UpdateEntityTagRelationRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::UpdateEntityTagRelationRequest; + +UpdateEntityTagRelationRequest::UpdateEntityTagRelationRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateEntityTagRelation") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEntityTagRelationRequest::~UpdateEntityTagRelationRequest() +{} + +std::string UpdateEntityTagRelationRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateEntityTagRelationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string UpdateEntityTagRelationRequest::getEntityTagParam()const +{ + return entityTagParam_; +} + +void UpdateEntityTagRelationRequest::setEntityTagParam(const std::string& entityTagParam) +{ + entityTagParam_ = entityTagParam; + setBodyParameter("EntityTagParam", entityTagParam); +} + diff --git a/scsp/src/model/UpdateEntityTagRelationResult.cc b/scsp/src/model/UpdateEntityTagRelationResult.cc new file mode 100644 index 000000000..bb50af099 --- /dev/null +++ b/scsp/src/model/UpdateEntityTagRelationResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateEntityTagRelationResult::UpdateEntityTagRelationResult() : + ServiceResult() +{} + +UpdateEntityTagRelationResult::UpdateEntityTagRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEntityTagRelationResult::~UpdateEntityTagRelationResult() +{} + +void UpdateEntityTagRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateEntityTagRelationResult::getMessage()const +{ + return message_; +} + +std::string UpdateEntityTagRelationResult::getData()const +{ + return data_; +} + +std::string UpdateEntityTagRelationResult::getCode()const +{ + return code_; +} + +bool UpdateEntityTagRelationResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateRingStatusRequest.cc b/scsp/src/model/UpdateRingStatusRequest.cc new file mode 100644 index 000000000..682dfcbe8 --- /dev/null +++ b/scsp/src/model/UpdateRingStatusRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::UpdateRingStatusRequest; + +UpdateRingStatusRequest::UpdateRingStatusRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateRingStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateRingStatusRequest::~UpdateRingStatusRequest() +{} + +std::string UpdateRingStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateRingStatusRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +std::string UpdateRingStatusRequest::getExtra()const +{ + return extra_; +} + +void UpdateRingStatusRequest::setExtra(const std::string& extra) +{ + extra_ = extra; + setBodyParameter("Extra", extra); +} + +std::string UpdateRingStatusRequest::getCallOutStatus()const +{ + return callOutStatus_; +} + +void UpdateRingStatusRequest::setCallOutStatus(const std::string& callOutStatus) +{ + callOutStatus_ = callOutStatus; + setBodyParameter("CallOutStatus", callOutStatus); +} + +std::string UpdateRingStatusRequest::getUniqueBizId()const +{ + return uniqueBizId_; +} + +void UpdateRingStatusRequest::setUniqueBizId(const std::string& uniqueBizId) +{ + uniqueBizId_ = uniqueBizId; + setBodyParameter("UniqueBizId", uniqueBizId); +} + diff --git a/scsp/src/model/UpdateRingStatusResult.cc b/scsp/src/model/UpdateRingStatusResult.cc new file mode 100644 index 000000000..3eb6819b7 --- /dev/null +++ b/scsp/src/model/UpdateRingStatusResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateRingStatusResult::UpdateRingStatusResult() : + ServiceResult() +{} + +UpdateRingStatusResult::UpdateRingStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRingStatusResult::~UpdateRingStatusResult() +{} + +void UpdateRingStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string UpdateRingStatusResult::getMessage()const +{ + return message_; +} + +long UpdateRingStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateRingStatusResult::getData()const +{ + return data_; +} + +std::string UpdateRingStatusResult::getCode()const +{ + return code_; +} + +bool UpdateRingStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateRoleRequest.cc b/scsp/src/model/UpdateRoleRequest.cc new file mode 100644 index 000000000..1a482c813 --- /dev/null +++ b/scsp/src/model/UpdateRoleRequest.cc @@ -0,0 +1,97 @@ +/* + * 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 + +using AlibabaCloud::Scsp::Model::UpdateRoleRequest; + +UpdateRoleRequest::UpdateRoleRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateRole") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateRoleRequest::~UpdateRoleRequest() +{} + +std::string UpdateRoleRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateRoleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string UpdateRoleRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateRoleRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long UpdateRoleRequest::getRoleId()const +{ + return roleId_; +} + +void UpdateRoleRequest::setRoleId(long roleId) +{ + roleId_ = roleId; + setBodyParameter("RoleId", std::to_string(roleId)); +} + +std::string UpdateRoleRequest::getRoleName()const +{ + return roleName_; +} + +void UpdateRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setBodyParameter("RoleName", roleName); +} + +std::vector UpdateRoleRequest::getPermissionId()const +{ + return permissionId_; +} + +void UpdateRoleRequest::setPermissionId(const std::vector& permissionId) +{ + permissionId_ = permissionId; + for(int dep1 = 0; dep1!= permissionId.size(); dep1++) { + setBodyParameter("PermissionId."+ std::to_string(dep1), std::to_string(permissionId.at(dep1))); + } +} + +std::string UpdateRoleRequest::get_Operator()const +{ + return _operator_; +} + +void UpdateRoleRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setBodyParameter("_Operator", _operator); +} + diff --git a/scsp/src/model/UpdateRoleResult.cc b/scsp/src/model/UpdateRoleResult.cc new file mode 100644 index 000000000..b835a5a49 --- /dev/null +++ b/scsp/src/model/UpdateRoleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateRoleResult::UpdateRoleResult() : + ServiceResult() +{} + +UpdateRoleResult::UpdateRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRoleResult::~UpdateRoleResult() +{} + +void UpdateRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string UpdateRoleResult::getMessage()const +{ + return message_; +} + +long UpdateRoleResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateRoleResult::getCode()const +{ + return code_; +} + +bool UpdateRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateSkillGroupRequest.cc b/scsp/src/model/UpdateSkillGroupRequest.cc new file mode 100644 index 000000000..72e219e75 --- /dev/null +++ b/scsp/src/model/UpdateSkillGroupRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::UpdateSkillGroupRequest; + +UpdateSkillGroupRequest::UpdateSkillGroupRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateSkillGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateSkillGroupRequest::~UpdateSkillGroupRequest() +{} + +std::string UpdateSkillGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateSkillGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateSkillGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateSkillGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long UpdateSkillGroupRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void UpdateSkillGroupRequest::setSkillGroupId(long skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", std::to_string(skillGroupId)); +} + +std::string UpdateSkillGroupRequest::getDisplayName()const +{ + return displayName_; +} + +void UpdateSkillGroupRequest::setDisplayName(const std::string& displayName) +{ + displayName_ = displayName; + setParameter("DisplayName", displayName); +} + +long UpdateSkillGroupRequest::getChannelType()const +{ + return channelType_; +} + +void UpdateSkillGroupRequest::setChannelType(long channelType) +{ + channelType_ = channelType; + setParameter("ChannelType", std::to_string(channelType)); +} + +std::string UpdateSkillGroupRequest::getSkillGroupName()const +{ + return skillGroupName_; +} + +void UpdateSkillGroupRequest::setSkillGroupName(const std::string& skillGroupName) +{ + skillGroupName_ = skillGroupName; + setParameter("SkillGroupName", skillGroupName); +} + +std::string UpdateSkillGroupRequest::getDescription()const +{ + return description_; +} + +void UpdateSkillGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + diff --git a/scsp/src/model/UpdateSkillGroupResult.cc b/scsp/src/model/UpdateSkillGroupResult.cc new file mode 100644 index 000000000..0353b1b77 --- /dev/null +++ b/scsp/src/model/UpdateSkillGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateSkillGroupResult::UpdateSkillGroupResult() : + ServiceResult() +{} + +UpdateSkillGroupResult::UpdateSkillGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSkillGroupResult::~UpdateSkillGroupResult() +{} + +void UpdateSkillGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string UpdateSkillGroupResult::getMessage()const +{ + return message_; +} + +long UpdateSkillGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateSkillGroupResult::getCode()const +{ + return code_; +} + +bool UpdateSkillGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/scsp/src/model/UpdateTicketRequest.cc b/scsp/src/model/UpdateTicketRequest.cc new file mode 100644 index 000000000..a979c4d79 --- /dev/null +++ b/scsp/src/model/UpdateTicketRequest.cc @@ -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 + +using AlibabaCloud::Scsp::Model::UpdateTicketRequest; + +UpdateTicketRequest::UpdateTicketRequest() : + RpcServiceRequest("scsp", "2020-07-02", "UpdateTicket") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateTicketRequest::~UpdateTicketRequest() +{} + +std::string UpdateTicketRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateTicketRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string UpdateTicketRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateTicketRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + +long UpdateTicketRequest::getTicketId()const +{ + return ticketId_; +} + +void UpdateTicketRequest::setTicketId(long ticketId) +{ + ticketId_ = ticketId; + setBodyParameter("TicketId", std::to_string(ticketId)); +} + +long UpdateTicketRequest::getOperatorId()const +{ + return operatorId_; +} + +void UpdateTicketRequest::setOperatorId(long operatorId) +{ + operatorId_ = operatorId; + setBodyParameter("OperatorId", std::to_string(operatorId)); +} + +std::string UpdateTicketRequest::getFormData()const +{ + return formData_; +} + +void UpdateTicketRequest::setFormData(const std::string& formData) +{ + formData_ = formData; + setBodyParameter("FormData", formData); +} + diff --git a/scsp/src/model/UpdateTicketResult.cc b/scsp/src/model/UpdateTicketResult.cc new file mode 100644 index 000000000..3e983220b --- /dev/null +++ b/scsp/src/model/UpdateTicketResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Scsp; +using namespace AlibabaCloud::Scsp::Model; + +UpdateTicketResult::UpdateTicketResult() : + ServiceResult() +{} + +UpdateTicketResult::UpdateTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTicketResult::~UpdateTicketResult() +{} + +void UpdateTicketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + +} + +std::string UpdateTicketResult::getMessage()const +{ + return message_; +} + +long UpdateTicketResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateTicketResult::getCode()const +{ + return code_; +} + +bool UpdateTicketResult::getSuccess()const +{ + return success_; +} +