diff --git a/CHANGELOG b/CHANGELOG index 9a7f8addb..b5caa3cfe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +2018-11-07 Version: 1.30.2 +1, Add API CreateTemplate,DeleteTemplate,GetAllTemplate,GetTemplateInfo. +2, Add API GetTaskStatus,StartTask,StopTask. +3, Add API GetTaskParam,UpdateTaskParam. + + 2018-11-02 Version: 1.30.1 1, deviceName and productKey can be used instead of iotId. 2, New productKey fields for queryauthentication output parameter. diff --git a/VERSION b/VERSION index 329bff23f..db66ff9be 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.30.1 \ No newline at end of file +1.30.2 \ No newline at end of file diff --git a/rtc/CMakeLists.txt b/rtc/CMakeLists.txt index c1844d0ca..d75eff37d 100644 --- a/rtc/CMakeLists.txt +++ b/rtc/CMakeLists.txt @@ -23,14 +23,44 @@ set(rtc_public_header set(rtc_public_header_model include/alibabacloud/rtc/model/DescribeAppsRequest.h include/alibabacloud/rtc/model/DescribeAppsResult.h + include/alibabacloud/rtc/model/GetTaskStatusRequest.h + include/alibabacloud/rtc/model/GetTaskStatusResult.h + include/alibabacloud/rtc/model/MuteAudioAllRequest.h + include/alibabacloud/rtc/model/MuteAudioAllResult.h + include/alibabacloud/rtc/model/UpdateTaskParamRequest.h + include/alibabacloud/rtc/model/UpdateTaskParamResult.h + include/alibabacloud/rtc/model/DeleteTemplateRequest.h + include/alibabacloud/rtc/model/DeleteTemplateResult.h + include/alibabacloud/rtc/model/CreateTemplateRequest.h + include/alibabacloud/rtc/model/CreateTemplateResult.h + include/alibabacloud/rtc/model/GetTemplateInfoRequest.h + include/alibabacloud/rtc/model/GetTemplateInfoResult.h + include/alibabacloud/rtc/model/DeleteChannelRequest.h + include/alibabacloud/rtc/model/DeleteChannelResult.h + include/alibabacloud/rtc/model/ModifyAppRequest.h + include/alibabacloud/rtc/model/ModifyAppResult.h + include/alibabacloud/rtc/model/RemoveParticipantsRequest.h + include/alibabacloud/rtc/model/RemoveParticipantsResult.h + include/alibabacloud/rtc/model/GetAllTemplateRequest.h + include/alibabacloud/rtc/model/GetAllTemplateResult.h + include/alibabacloud/rtc/model/DescribeStatisRequest.h + include/alibabacloud/rtc/model/DescribeStatisResult.h + include/alibabacloud/rtc/model/CreateChannelRequest.h + include/alibabacloud/rtc/model/CreateChannelResult.h + include/alibabacloud/rtc/model/StopTaskRequest.h + include/alibabacloud/rtc/model/StopTaskResult.h + include/alibabacloud/rtc/model/GetTaskParamRequest.h + include/alibabacloud/rtc/model/GetTaskParamResult.h + include/alibabacloud/rtc/model/UpdateChannelRequest.h + include/alibabacloud/rtc/model/UpdateChannelResult.h + include/alibabacloud/rtc/model/StartTaskRequest.h + include/alibabacloud/rtc/model/StartTaskResult.h include/alibabacloud/rtc/model/ModifyConferenceRequest.h include/alibabacloud/rtc/model/ModifyConferenceResult.h include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h include/alibabacloud/rtc/model/DescribeRecordListRequest.h include/alibabacloud/rtc/model/DescribeRecordListResult.h - include/alibabacloud/rtc/model/MuteAudioAllRequest.h - include/alibabacloud/rtc/model/MuteAudioAllResult.h include/alibabacloud/rtc/model/UnmuteAudioRequest.h include/alibabacloud/rtc/model/UnmuteAudioResult.h include/alibabacloud/rtc/model/MuteAudioRequest.h @@ -39,18 +69,8 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/StartAppResult.h include/alibabacloud/rtc/model/CreateConferenceRequest.h include/alibabacloud/rtc/model/CreateConferenceResult.h - include/alibabacloud/rtc/model/DeleteChannelRequest.h - include/alibabacloud/rtc/model/DeleteChannelResult.h - include/alibabacloud/rtc/model/ModifyAppRequest.h - include/alibabacloud/rtc/model/ModifyAppResult.h include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailResult.h - include/alibabacloud/rtc/model/RemoveParticipantsRequest.h - include/alibabacloud/rtc/model/RemoveParticipantsResult.h - include/alibabacloud/rtc/model/DescribeStatisRequest.h - include/alibabacloud/rtc/model/DescribeStatisResult.h - include/alibabacloud/rtc/model/CreateChannelRequest.h - include/alibabacloud/rtc/model/CreateChannelResult.h include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h include/alibabacloud/rtc/model/DescribeRealTimeRecordListResult.h include/alibabacloud/rtc/model/StopAppRequest.h @@ -59,8 +79,6 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/RemoveTerminalsResult.h include/alibabacloud/rtc/model/DeleteConferenceRequest.h include/alibabacloud/rtc/model/DeleteConferenceResult.h - include/alibabacloud/rtc/model/UpdateChannelRequest.h - include/alibabacloud/rtc/model/UpdateChannelResult.h include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h include/alibabacloud/rtc/model/UnmuteAudioAllResult.h include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h @@ -72,14 +90,44 @@ set(rtc_src src/RtcClient.cc src/model/DescribeAppsRequest.cc src/model/DescribeAppsResult.cc + src/model/GetTaskStatusRequest.cc + src/model/GetTaskStatusResult.cc + src/model/MuteAudioAllRequest.cc + src/model/MuteAudioAllResult.cc + src/model/UpdateTaskParamRequest.cc + src/model/UpdateTaskParamResult.cc + src/model/DeleteTemplateRequest.cc + src/model/DeleteTemplateResult.cc + src/model/CreateTemplateRequest.cc + src/model/CreateTemplateResult.cc + src/model/GetTemplateInfoRequest.cc + src/model/GetTemplateInfoResult.cc + src/model/DeleteChannelRequest.cc + src/model/DeleteChannelResult.cc + src/model/ModifyAppRequest.cc + src/model/ModifyAppResult.cc + src/model/RemoveParticipantsRequest.cc + src/model/RemoveParticipantsResult.cc + src/model/GetAllTemplateRequest.cc + src/model/GetAllTemplateResult.cc + src/model/DescribeStatisRequest.cc + src/model/DescribeStatisResult.cc + src/model/CreateChannelRequest.cc + src/model/CreateChannelResult.cc + src/model/StopTaskRequest.cc + src/model/StopTaskResult.cc + src/model/GetTaskParamRequest.cc + src/model/GetTaskParamResult.cc + src/model/UpdateChannelRequest.cc + src/model/UpdateChannelResult.cc + src/model/StartTaskRequest.cc + src/model/StartTaskResult.cc src/model/ModifyConferenceRequest.cc src/model/ModifyConferenceResult.cc src/model/DescribeConferenceAuthInfoRequest.cc src/model/DescribeConferenceAuthInfoResult.cc src/model/DescribeRecordListRequest.cc src/model/DescribeRecordListResult.cc - src/model/MuteAudioAllRequest.cc - src/model/MuteAudioAllResult.cc src/model/UnmuteAudioRequest.cc src/model/UnmuteAudioResult.cc src/model/MuteAudioRequest.cc @@ -88,18 +136,8 @@ set(rtc_src src/model/StartAppResult.cc src/model/CreateConferenceRequest.cc src/model/CreateConferenceResult.cc - src/model/DeleteChannelRequest.cc - src/model/DeleteChannelResult.cc - src/model/ModifyAppRequest.cc - src/model/ModifyAppResult.cc src/model/DescribeRealTimeRecordDetailRequest.cc src/model/DescribeRealTimeRecordDetailResult.cc - src/model/RemoveParticipantsRequest.cc - src/model/RemoveParticipantsResult.cc - src/model/DescribeStatisRequest.cc - src/model/DescribeStatisResult.cc - src/model/CreateChannelRequest.cc - src/model/CreateChannelResult.cc src/model/DescribeRealTimeRecordListRequest.cc src/model/DescribeRealTimeRecordListResult.cc src/model/StopAppRequest.cc @@ -108,8 +146,6 @@ set(rtc_src src/model/RemoveTerminalsResult.cc src/model/DeleteConferenceRequest.cc src/model/DeleteConferenceResult.cc - src/model/UpdateChannelRequest.cc - src/model/UpdateChannelResult.cc src/model/UnmuteAudioAllRequest.cc src/model/UnmuteAudioAllResult.cc src/model/DescribeRecordDetailRequest.cc diff --git a/rtc/include/alibabacloud/rtc/RtcClient.h b/rtc/include/alibabacloud/rtc/RtcClient.h index 7903fc8e5..6b5cfead6 100644 --- a/rtc/include/alibabacloud/rtc/RtcClient.h +++ b/rtc/include/alibabacloud/rtc/RtcClient.h @@ -24,14 +24,44 @@ #include "RtcExport.h" #include "model/DescribeAppsRequest.h" #include "model/DescribeAppsResult.h" +#include "model/GetTaskStatusRequest.h" +#include "model/GetTaskStatusResult.h" +#include "model/MuteAudioAllRequest.h" +#include "model/MuteAudioAllResult.h" +#include "model/UpdateTaskParamRequest.h" +#include "model/UpdateTaskParamResult.h" +#include "model/DeleteTemplateRequest.h" +#include "model/DeleteTemplateResult.h" +#include "model/CreateTemplateRequest.h" +#include "model/CreateTemplateResult.h" +#include "model/GetTemplateInfoRequest.h" +#include "model/GetTemplateInfoResult.h" +#include "model/DeleteChannelRequest.h" +#include "model/DeleteChannelResult.h" +#include "model/ModifyAppRequest.h" +#include "model/ModifyAppResult.h" +#include "model/RemoveParticipantsRequest.h" +#include "model/RemoveParticipantsResult.h" +#include "model/GetAllTemplateRequest.h" +#include "model/GetAllTemplateResult.h" +#include "model/DescribeStatisRequest.h" +#include "model/DescribeStatisResult.h" +#include "model/CreateChannelRequest.h" +#include "model/CreateChannelResult.h" +#include "model/StopTaskRequest.h" +#include "model/StopTaskResult.h" +#include "model/GetTaskParamRequest.h" +#include "model/GetTaskParamResult.h" +#include "model/UpdateChannelRequest.h" +#include "model/UpdateChannelResult.h" +#include "model/StartTaskRequest.h" +#include "model/StartTaskResult.h" #include "model/ModifyConferenceRequest.h" #include "model/ModifyConferenceResult.h" #include "model/DescribeConferenceAuthInfoRequest.h" #include "model/DescribeConferenceAuthInfoResult.h" #include "model/DescribeRecordListRequest.h" #include "model/DescribeRecordListResult.h" -#include "model/MuteAudioAllRequest.h" -#include "model/MuteAudioAllResult.h" #include "model/UnmuteAudioRequest.h" #include "model/UnmuteAudioResult.h" #include "model/MuteAudioRequest.h" @@ -40,18 +70,8 @@ #include "model/StartAppResult.h" #include "model/CreateConferenceRequest.h" #include "model/CreateConferenceResult.h" -#include "model/DeleteChannelRequest.h" -#include "model/DeleteChannelResult.h" -#include "model/ModifyAppRequest.h" -#include "model/ModifyAppResult.h" #include "model/DescribeRealTimeRecordDetailRequest.h" #include "model/DescribeRealTimeRecordDetailResult.h" -#include "model/RemoveParticipantsRequest.h" -#include "model/RemoveParticipantsResult.h" -#include "model/DescribeStatisRequest.h" -#include "model/DescribeStatisResult.h" -#include "model/CreateChannelRequest.h" -#include "model/CreateChannelResult.h" #include "model/DescribeRealTimeRecordListRequest.h" #include "model/DescribeRealTimeRecordListResult.h" #include "model/StopAppRequest.h" @@ -60,8 +80,6 @@ #include "model/RemoveTerminalsResult.h" #include "model/DeleteConferenceRequest.h" #include "model/DeleteConferenceResult.h" -#include "model/UpdateChannelRequest.h" -#include "model/UpdateChannelResult.h" #include "model/UnmuteAudioAllRequest.h" #include "model/UnmuteAudioAllResult.h" #include "model/DescribeRecordDetailRequest.h" @@ -80,6 +98,54 @@ namespace AlibabaCloud typedef Outcome DescribeAppsOutcome; typedef std::future DescribeAppsOutcomeCallable; typedef std::function&)> DescribeAppsAsyncHandler; + typedef Outcome GetTaskStatusOutcome; + typedef std::future GetTaskStatusOutcomeCallable; + typedef std::function&)> GetTaskStatusAsyncHandler; + typedef Outcome MuteAudioAllOutcome; + typedef std::future MuteAudioAllOutcomeCallable; + typedef std::function&)> MuteAudioAllAsyncHandler; + typedef Outcome UpdateTaskParamOutcome; + typedef std::future UpdateTaskParamOutcomeCallable; + typedef std::function&)> UpdateTaskParamAsyncHandler; + typedef Outcome DeleteTemplateOutcome; + typedef std::future DeleteTemplateOutcomeCallable; + typedef std::function&)> DeleteTemplateAsyncHandler; + typedef Outcome CreateTemplateOutcome; + typedef std::future CreateTemplateOutcomeCallable; + typedef std::function&)> CreateTemplateAsyncHandler; + typedef Outcome GetTemplateInfoOutcome; + typedef std::future GetTemplateInfoOutcomeCallable; + typedef std::function&)> GetTemplateInfoAsyncHandler; + typedef Outcome DeleteChannelOutcome; + typedef std::future DeleteChannelOutcomeCallable; + typedef std::function&)> DeleteChannelAsyncHandler; + typedef Outcome ModifyAppOutcome; + typedef std::future ModifyAppOutcomeCallable; + typedef std::function&)> ModifyAppAsyncHandler; + typedef Outcome RemoveParticipantsOutcome; + typedef std::future RemoveParticipantsOutcomeCallable; + typedef std::function&)> RemoveParticipantsAsyncHandler; + typedef Outcome GetAllTemplateOutcome; + typedef std::future GetAllTemplateOutcomeCallable; + typedef std::function&)> GetAllTemplateAsyncHandler; + typedef Outcome DescribeStatisOutcome; + typedef std::future DescribeStatisOutcomeCallable; + typedef std::function&)> DescribeStatisAsyncHandler; + typedef Outcome CreateChannelOutcome; + typedef std::future CreateChannelOutcomeCallable; + typedef std::function&)> CreateChannelAsyncHandler; + typedef Outcome StopTaskOutcome; + typedef std::future StopTaskOutcomeCallable; + typedef std::function&)> StopTaskAsyncHandler; + typedef Outcome GetTaskParamOutcome; + typedef std::future GetTaskParamOutcomeCallable; + typedef std::function&)> GetTaskParamAsyncHandler; + typedef Outcome UpdateChannelOutcome; + typedef std::future UpdateChannelOutcomeCallable; + typedef std::function&)> UpdateChannelAsyncHandler; + typedef Outcome StartTaskOutcome; + typedef std::future StartTaskOutcomeCallable; + typedef std::function&)> StartTaskAsyncHandler; typedef Outcome ModifyConferenceOutcome; typedef std::future ModifyConferenceOutcomeCallable; typedef std::function&)> ModifyConferenceAsyncHandler; @@ -89,9 +155,6 @@ namespace AlibabaCloud typedef Outcome DescribeRecordListOutcome; typedef std::future DescribeRecordListOutcomeCallable; typedef std::function&)> DescribeRecordListAsyncHandler; - typedef Outcome MuteAudioAllOutcome; - typedef std::future MuteAudioAllOutcomeCallable; - typedef std::function&)> MuteAudioAllAsyncHandler; typedef Outcome UnmuteAudioOutcome; typedef std::future UnmuteAudioOutcomeCallable; typedef std::function&)> UnmuteAudioAsyncHandler; @@ -104,24 +167,9 @@ namespace AlibabaCloud typedef Outcome CreateConferenceOutcome; typedef std::future CreateConferenceOutcomeCallable; typedef std::function&)> CreateConferenceAsyncHandler; - typedef Outcome DeleteChannelOutcome; - typedef std::future DeleteChannelOutcomeCallable; - typedef std::function&)> DeleteChannelAsyncHandler; - typedef Outcome ModifyAppOutcome; - typedef std::future ModifyAppOutcomeCallable; - typedef std::function&)> ModifyAppAsyncHandler; typedef Outcome DescribeRealTimeRecordDetailOutcome; typedef std::future DescribeRealTimeRecordDetailOutcomeCallable; typedef std::function&)> DescribeRealTimeRecordDetailAsyncHandler; - typedef Outcome RemoveParticipantsOutcome; - typedef std::future RemoveParticipantsOutcomeCallable; - typedef std::function&)> RemoveParticipantsAsyncHandler; - typedef Outcome DescribeStatisOutcome; - typedef std::future DescribeStatisOutcomeCallable; - typedef std::function&)> DescribeStatisAsyncHandler; - typedef Outcome CreateChannelOutcome; - typedef std::future CreateChannelOutcomeCallable; - typedef std::function&)> CreateChannelAsyncHandler; typedef Outcome DescribeRealTimeRecordListOutcome; typedef std::future DescribeRealTimeRecordListOutcomeCallable; typedef std::function&)> DescribeRealTimeRecordListAsyncHandler; @@ -134,9 +182,6 @@ namespace AlibabaCloud typedef Outcome DeleteConferenceOutcome; typedef std::future DeleteConferenceOutcomeCallable; typedef std::function&)> DeleteConferenceAsyncHandler; - typedef Outcome UpdateChannelOutcome; - typedef std::future UpdateChannelOutcomeCallable; - typedef std::function&)> UpdateChannelAsyncHandler; typedef Outcome UnmuteAudioAllOutcome; typedef std::future UnmuteAudioAllOutcomeCallable; typedef std::function&)> UnmuteAudioAllAsyncHandler; @@ -154,6 +199,54 @@ namespace AlibabaCloud DescribeAppsOutcome describeApps(const Model::DescribeAppsRequest &request)const; void describeAppsAsync(const Model::DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAppsOutcomeCallable describeAppsCallable(const Model::DescribeAppsRequest& request) const; + GetTaskStatusOutcome getTaskStatus(const Model::GetTaskStatusRequest &request)const; + void getTaskStatusAsync(const Model::GetTaskStatusRequest& request, const GetTaskStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskStatusOutcomeCallable getTaskStatusCallable(const Model::GetTaskStatusRequest& request) const; + MuteAudioAllOutcome muteAudioAll(const Model::MuteAudioAllRequest &request)const; + void muteAudioAllAsync(const Model::MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MuteAudioAllOutcomeCallable muteAudioAllCallable(const Model::MuteAudioAllRequest& request) const; + UpdateTaskParamOutcome updateTaskParam(const Model::UpdateTaskParamRequest &request)const; + void updateTaskParamAsync(const Model::UpdateTaskParamRequest& request, const UpdateTaskParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTaskParamOutcomeCallable updateTaskParamCallable(const Model::UpdateTaskParamRequest& request) const; + DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const; + void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const; + CreateTemplateOutcome createTemplate(const Model::CreateTemplateRequest &request)const; + void createTemplateAsync(const Model::CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTemplateOutcomeCallable createTemplateCallable(const Model::CreateTemplateRequest& request) const; + GetTemplateInfoOutcome getTemplateInfo(const Model::GetTemplateInfoRequest &request)const; + void getTemplateInfoAsync(const Model::GetTemplateInfoRequest& request, const GetTemplateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTemplateInfoOutcomeCallable getTemplateInfoCallable(const Model::GetTemplateInfoRequest& request) const; + DeleteChannelOutcome deleteChannel(const Model::DeleteChannelRequest &request)const; + void deleteChannelAsync(const Model::DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteChannelOutcomeCallable deleteChannelCallable(const Model::DeleteChannelRequest& request) const; + ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; + void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; + RemoveParticipantsOutcome removeParticipants(const Model::RemoveParticipantsRequest &request)const; + void removeParticipantsAsync(const Model::RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveParticipantsOutcomeCallable removeParticipantsCallable(const Model::RemoveParticipantsRequest& request) const; + GetAllTemplateOutcome getAllTemplate(const Model::GetAllTemplateRequest &request)const; + void getAllTemplateAsync(const Model::GetAllTemplateRequest& request, const GetAllTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllTemplateOutcomeCallable getAllTemplateCallable(const Model::GetAllTemplateRequest& request) const; + DescribeStatisOutcome describeStatis(const Model::DescribeStatisRequest &request)const; + void describeStatisAsync(const Model::DescribeStatisRequest& request, const DescribeStatisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStatisOutcomeCallable describeStatisCallable(const Model::DescribeStatisRequest& request) const; + CreateChannelOutcome createChannel(const Model::CreateChannelRequest &request)const; + void createChannelAsync(const Model::CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateChannelOutcomeCallable createChannelCallable(const Model::CreateChannelRequest& request) const; + StopTaskOutcome stopTask(const Model::StopTaskRequest &request)const; + void stopTaskAsync(const Model::StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopTaskOutcomeCallable stopTaskCallable(const Model::StopTaskRequest& request) const; + GetTaskParamOutcome getTaskParam(const Model::GetTaskParamRequest &request)const; + void getTaskParamAsync(const Model::GetTaskParamRequest& request, const GetTaskParamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskParamOutcomeCallable getTaskParamCallable(const Model::GetTaskParamRequest& request) const; + UpdateChannelOutcome updateChannel(const Model::UpdateChannelRequest &request)const; + void updateChannelAsync(const Model::UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateChannelOutcomeCallable updateChannelCallable(const Model::UpdateChannelRequest& request) const; + StartTaskOutcome startTask(const Model::StartTaskRequest &request)const; + void startTaskAsync(const Model::StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartTaskOutcomeCallable startTaskCallable(const Model::StartTaskRequest& request) const; ModifyConferenceOutcome modifyConference(const Model::ModifyConferenceRequest &request)const; void modifyConferenceAsync(const Model::ModifyConferenceRequest& request, const ModifyConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyConferenceOutcomeCallable modifyConferenceCallable(const Model::ModifyConferenceRequest& request) const; @@ -163,9 +256,6 @@ namespace AlibabaCloud DescribeRecordListOutcome describeRecordList(const Model::DescribeRecordListRequest &request)const; void describeRecordListAsync(const Model::DescribeRecordListRequest& request, const DescribeRecordListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRecordListOutcomeCallable describeRecordListCallable(const Model::DescribeRecordListRequest& request) const; - MuteAudioAllOutcome muteAudioAll(const Model::MuteAudioAllRequest &request)const; - void muteAudioAllAsync(const Model::MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MuteAudioAllOutcomeCallable muteAudioAllCallable(const Model::MuteAudioAllRequest& request) const; UnmuteAudioOutcome unmuteAudio(const Model::UnmuteAudioRequest &request)const; void unmuteAudioAsync(const Model::UnmuteAudioRequest& request, const UnmuteAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnmuteAudioOutcomeCallable unmuteAudioCallable(const Model::UnmuteAudioRequest& request) const; @@ -178,24 +268,9 @@ namespace AlibabaCloud CreateConferenceOutcome createConference(const Model::CreateConferenceRequest &request)const; void createConferenceAsync(const Model::CreateConferenceRequest& request, const CreateConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConferenceOutcomeCallable createConferenceCallable(const Model::CreateConferenceRequest& request) const; - DeleteChannelOutcome deleteChannel(const Model::DeleteChannelRequest &request)const; - void deleteChannelAsync(const Model::DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteChannelOutcomeCallable deleteChannelCallable(const Model::DeleteChannelRequest& request) const; - ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; - void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; DescribeRealTimeRecordDetailOutcome describeRealTimeRecordDetail(const Model::DescribeRealTimeRecordDetailRequest &request)const; void describeRealTimeRecordDetailAsync(const Model::DescribeRealTimeRecordDetailRequest& request, const DescribeRealTimeRecordDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRealTimeRecordDetailOutcomeCallable describeRealTimeRecordDetailCallable(const Model::DescribeRealTimeRecordDetailRequest& request) const; - RemoveParticipantsOutcome removeParticipants(const Model::RemoveParticipantsRequest &request)const; - void removeParticipantsAsync(const Model::RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveParticipantsOutcomeCallable removeParticipantsCallable(const Model::RemoveParticipantsRequest& request) const; - DescribeStatisOutcome describeStatis(const Model::DescribeStatisRequest &request)const; - void describeStatisAsync(const Model::DescribeStatisRequest& request, const DescribeStatisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStatisOutcomeCallable describeStatisCallable(const Model::DescribeStatisRequest& request) const; - CreateChannelOutcome createChannel(const Model::CreateChannelRequest &request)const; - void createChannelAsync(const Model::CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateChannelOutcomeCallable createChannelCallable(const Model::CreateChannelRequest& request) const; DescribeRealTimeRecordListOutcome describeRealTimeRecordList(const Model::DescribeRealTimeRecordListRequest &request)const; void describeRealTimeRecordListAsync(const Model::DescribeRealTimeRecordListRequest& request, const DescribeRealTimeRecordListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRealTimeRecordListOutcomeCallable describeRealTimeRecordListCallable(const Model::DescribeRealTimeRecordListRequest& request) const; @@ -208,9 +283,6 @@ namespace AlibabaCloud DeleteConferenceOutcome deleteConference(const Model::DeleteConferenceRequest &request)const; void deleteConferenceAsync(const Model::DeleteConferenceRequest& request, const DeleteConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConferenceOutcomeCallable deleteConferenceCallable(const Model::DeleteConferenceRequest& request) const; - UpdateChannelOutcome updateChannel(const Model::UpdateChannelRequest &request)const; - void updateChannelAsync(const Model::UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateChannelOutcomeCallable updateChannelCallable(const Model::UpdateChannelRequest& request) const; UnmuteAudioAllOutcome unmuteAudioAll(const Model::UnmuteAudioAllRequest &request)const; void unmuteAudioAllAsync(const Model::UnmuteAudioAllRequest& request, const UnmuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnmuteAudioAllOutcomeCallable unmuteAudioAllCallable(const Model::UnmuteAudioAllRequest& request) const; diff --git a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h index 1424fafa8..53295d789 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getProduct()const; void setProduct(const std::string& product); long getCallerParentId()const; @@ -82,6 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; + std::string popProduct_; std::string product_; long callerParentId_; bool proxy_original_security_transport_; diff --git a/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h b/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h index fa07563f8..a24c2f1ba 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h +++ b/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h @@ -69,8 +69,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -108,7 +106,6 @@ namespace AlibabaCloud long callerUid_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string callerBid_; long ownerId_; std::string version_; diff --git a/rtc/include/alibabacloud/rtc/model/CreateTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/CreateTemplateRequest.h new file mode 100644 index 000000000..15510c217 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/CreateTemplateRequest.h @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_CREATETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT CreateTemplateRequest : public RpcServiceRequest + { + struct LiveConfig + { + std::string domainName; + std::string appName; + }; + struct RecordConfig + { + std::string storageType; + int fileFormat; + std::string ossEndPoint; + std::string ossBucket; + int vodTransCodeGroupId; + }; + struct LayOut + { + std::string color; + int cutMode; + int layOutId; + }; + + public: + CreateTemplateRequest(); + ~CreateTemplateRequest(); + + int getServiceMode()const; + void setServiceMode(int serviceMode); + std::vector getLiveConfig()const; + void setLiveConfig(const std::vector& liveConfig); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + int getMediaConfig()const; + void setMediaConfig(int mediaConfig); + int getMaxMixStreamCount()const; + void setMaxMixStreamCount(int maxMixStreamCount); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::vector getRecordConfig()const; + void setRecordConfig(const std::vector& recordConfig); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getLayOut()const; + void setLayOut(const std::vector& layOut); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallBack()const; + void setCallBack(const std::string& callBack); + int getMixMode()const; + void setMixMode(int mixMode); + + private: + int serviceMode_; + std::vector liveConfig_; + long callerParentId_; + bool proxy_original_security_transport_; + int mediaConfig_; + int maxMixStreamCount_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::vector recordConfig_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::vector layOut_; + std::string requestId_; + std::string appId_; + std::string callBack_; + int mixMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_CREATETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateTemplateResult.h b/rtc/include/alibabacloud/rtc/model/CreateTemplateResult.h new file mode 100644 index 000000000..60325fe81 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/CreateTemplateResult.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_RTC_MODEL_CREATETEMPLATERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT CreateTemplateResult : public ServiceResult + { + public: + + + CreateTemplateResult(); + explicit CreateTemplateResult(const std::string &payload); + ~CreateTemplateResult(); + long getTemplateId()const; + + protected: + void parse(const std::string &payload); + private: + long templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_CREATETEMPLATERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h index 0336f8cc3..c53405f48 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getProduct()const; void setProduct(const std::string& product); long getCallerParentId()const; @@ -82,6 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; + std::string popProduct_; std::string product_; long callerParentId_; bool proxy_original_security_transport_; diff --git a/rtc/include/alibabacloud/rtc/model/DeleteTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteTemplateRequest.h new file mode 100644 index 000000000..fd374fd54 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DeleteTemplateRequest.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DELETETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DeleteTemplateRequest : public RpcServiceRequest + { + + public: + DeleteTemplateRequest(); + ~DeleteTemplateRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + long templateId_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DELETETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteTemplateResult.h b/rtc/include/alibabacloud/rtc/model/DeleteTemplateResult.h new file mode 100644 index 000000000..6f367f890 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DeleteTemplateResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_DELETETEMPLATERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DeleteTemplateResult : public ServiceResult + { + public: + + + DeleteTemplateResult(); + explicit DeleteTemplateResult(const std::string &payload); + ~DeleteTemplateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DELETETEMPLATERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h index 7657d9bba..0c9a4852a 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h @@ -67,8 +67,6 @@ namespace AlibabaCloud void setApp_ip(const std::string& app_ip); std::string getPopProduct()const; void setPopProduct(const std::string& popProduct); - std::string getProduct()const; - void setProduct(const std::string& product); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -105,7 +103,6 @@ namespace AlibabaCloud std::string order_; std::string app_ip_; std::string popProduct_; - std::string product_; std::string callerBid_; long ownerId_; std::string version_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h index a6caa99fb..39c6207bd 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -82,7 +82,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h index 8c4b86dc3..8fabc8ecc 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordDetailRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h index c11dfbbb1..a5fc8eaec 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRealTimeRecordListRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -82,7 +82,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string endTime_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h index d03153266..9daa8fdd7 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordDetailRequest.h @@ -61,8 +61,8 @@ namespace AlibabaCloud void setCallerUid(long callerUid); std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getEndTime()const; void setEndTime(const std::string& endTime); std::string getCallerBid()const; @@ -100,7 +100,7 @@ namespace AlibabaCloud std::string callerUidEmail_; long callerUid_; std::string app_ip_; - std::string product_; + std::string popProduct_; std::string endTime_; std::string callerBid_; long ownerId_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordListRequest.h index 068035b0e..49e4b6f7b 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordListRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordListRequest.h @@ -69,8 +69,8 @@ namespace AlibabaCloud void setCallerUid(long callerUid); std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getEndTime()const; void setEndTime(const std::string& endTime); std::string getCallerBid()const; @@ -112,7 +112,7 @@ namespace AlibabaCloud std::string callerUidEmail_; long callerUid_; std::string app_ip_; - std::string product_; + std::string popProduct_; std::string endTime_; std::string callerBid_; long ownerId_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeStatisRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeStatisRequest.h index 48b2d9084..d1bd6a530 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeStatisRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeStatisRequest.h @@ -67,8 +67,8 @@ namespace AlibabaCloud void setCallerUid(long callerUid); std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getEndTime()const; void setEndTime(const std::string& endTime); std::string getCallerBid()const; @@ -107,7 +107,7 @@ namespace AlibabaCloud std::string callerUidEmail_; long callerUid_; std::string app_ip_; - std::string product_; + std::string popProduct_; std::string endTime_; std::string callerBid_; long ownerId_; diff --git a/rtc/include/alibabacloud/rtc/model/GetAllTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/GetAllTemplateRequest.h new file mode 100644 index 000000000..29c162d4c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetAllTemplateRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_GETALLTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_GETALLTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetAllTemplateRequest : public RpcServiceRequest + { + + public: + GetAllTemplateRequest(); + ~GetAllTemplateRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETALLTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetAllTemplateResult.h b/rtc/include/alibabacloud/rtc/model/GetAllTemplateResult.h new file mode 100644 index 000000000..3d04ada44 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetAllTemplateResult.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_RTC_MODEL_GETALLTEMPLATERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_GETALLTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetAllTemplateResult : public ServiceResult + { + public: + + + GetAllTemplateResult(); + explicit GetAllTemplateResult(const std::string &payload); + ~GetAllTemplateResult(); + std::vector getTemplateIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector templateIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETALLTEMPLATERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTaskParamRequest.h b/rtc/include/alibabacloud/rtc/model/GetTaskParamRequest.h new file mode 100644 index 000000000..67acaeaad --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTaskParamRequest.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_GETTASKPARAMREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTASKPARAMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTaskParamRequest : public RpcServiceRequest + { + + public: + GetTaskParamRequest(); + ~GetTaskParamRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getTaskId()const; + void setTaskId(long taskId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long taskId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTASKPARAMREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTaskParamResult.h b/rtc/include/alibabacloud/rtc/model/GetTaskParamResult.h new file mode 100644 index 000000000..f3e4e7e0f --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTaskParamResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_GETTASKPARAMRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTASKPARAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTaskParamResult : public ServiceResult + { + public: + struct MixPaneItem + { + std::string userId; + std::string sourceType; + int paneId; + }; + + + GetTaskParamResult(); + explicit GetTaskParamResult(const std::string &payload); + ~GetTaskParamResult(); + std::vector getMixPane()const; + std::string getChannelId()const; + long getTemplateId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector mixPane_; + std::string channelId_; + long templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTASKPARAMRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTaskStatusRequest.h b/rtc/include/alibabacloud/rtc/model/GetTaskStatusRequest.h new file mode 100644 index 000000000..3b2cf6c0e --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTaskStatusRequest.h @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_GETTASKSTATUSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTASKSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTaskStatusRequest : public RpcServiceRequest + { + + public: + GetTaskStatusRequest(); + ~GetTaskStatusRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + long getTaskId()const; + void setTaskId(long taskId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string channelId_; + long taskId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTASKSTATUSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTaskStatusResult.h b/rtc/include/alibabacloud/rtc/model/GetTaskStatusResult.h new file mode 100644 index 000000000..232b981e3 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTaskStatusResult.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_RTC_MODEL_GETTASKSTATUSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTASKSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTaskStatusResult : public ServiceResult + { + public: + + + GetTaskStatusResult(); + explicit GetTaskStatusResult(const std::string &payload); + ~GetTaskStatusResult(); + int getStatus()const; + + protected: + void parse(const std::string &payload); + private: + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTASKSTATUSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTemplateInfoRequest.h b/rtc/include/alibabacloud/rtc/model/GetTemplateInfoRequest.h new file mode 100644 index 000000000..3c0728abf --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTemplateInfoRequest.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_GETTEMPLATEINFOREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTEMPLATEINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTemplateInfoRequest : public RpcServiceRequest + { + + public: + GetTemplateInfoRequest(); + ~GetTemplateInfoRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + long templateId_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTEMPLATEINFOREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetTemplateInfoResult.h b/rtc/include/alibabacloud/rtc/model/GetTemplateInfoResult.h new file mode 100644 index 000000000..f74c5f62d --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/GetTemplateInfoResult.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_RTC_MODEL_GETTEMPLATEINFORESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_GETTEMPLATEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT GetTemplateInfoResult : public ServiceResult + { + public: + struct LayOut + { + int layoutID; + std::string color; + int cutmode; + }; + struct RecordConfig + { + std::string storageType; + std::string ossEndpoint; + std::string ossBucket; + int fileFormat; + int vodTranscodeGroupId; + }; + struct LiveConfig + { + std::string domainName; + std::string appName; + }; + + + GetTemplateInfoResult(); + explicit GetTemplateInfoResult(const std::string &payload); + ~GetTemplateInfoResult(); + std::string getCallBack()const; + int getMixMode()const; + LayOut getLayOut()const; + int getMaxMixStreamCount()const; + LiveConfig getLiveConfig()const; + int getServiceMode()const; + int getMediaConfig()const; + RecordConfig getRecordConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string callBack_; + int mixMode_; + LayOut layOut_; + int maxMixStreamCount_; + LiveConfig liveConfig_; + int serviceMode_; + int mediaConfig_; + RecordConfig recordConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_GETTEMPLATEINFORESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h b/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h index d562da6b1..e648e7173 100644 --- a/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h +++ b/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -82,7 +82,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h b/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h index 68fb431ff..3a591f066 100644 --- a/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h +++ b/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h @@ -67,8 +67,8 @@ namespace AlibabaCloud void setCallerUid(long callerUid); std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::string getCallerBid()const; void setCallerBid(const std::string& callerBid); long getOwnerId()const; @@ -105,7 +105,7 @@ namespace AlibabaCloud std::string callerUidEmail_; long callerUid_; std::string app_ip_; - std::string product_; + std::string popProduct_; std::string callerBid_; long ownerId_; std::string version_; diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h b/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h index ec2de2d35..11b33e333 100644 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h +++ b/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h b/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h index 4baf5a1cb..619e31400 100644 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h +++ b/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::vector getParticipantIds()const; void setParticipantIds(const std::vector& participantIds); long getCallerParentId()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; std::vector participantIds_; long callerParentId_; bool proxy_original_security_transport_; diff --git a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h b/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h index a48a8e8a0..552636700 100644 --- a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h +++ b/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::vector getParticipantIds()const; void setParticipantIds(const std::vector& participantIds); long getCallerParentId()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; std::vector participantIds_; long callerParentId_; bool proxy_original_security_transport_; diff --git a/rtc/include/alibabacloud/rtc/model/StartAppRequest.h b/rtc/include/alibabacloud/rtc/model/StartAppRequest.h index 9da87928f..ecf57a98e 100644 --- a/rtc/include/alibabacloud/rtc/model/StartAppRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StartAppRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -80,7 +80,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/StartTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StartTaskRequest.h new file mode 100644 index 000000000..ee741d53c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/StartTaskRequest.h @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_STARTTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STARTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT StartTaskRequest : public RpcServiceRequest + { + struct MixPanes + { + int paneId; + std::string userId; + std::string sourceType; + }; + + public: + StartTaskRequest(); + ~StartTaskRequest(); + + std::vector getMixPanes()const; + void setMixPanes(const std::vector& mixPanes); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getIdempotentId()const; + void setIdempotentId(const std::string& idempotentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::vector mixPanes_; + long callerParentId_; + std::string idempotentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + long templateId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_STARTTASKREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/StartTaskResult.h b/rtc/include/alibabacloud/rtc/model/StartTaskResult.h new file mode 100644 index 000000000..9f2fe481d --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/StartTaskResult.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_RTC_MODEL_STARTTASKRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_STARTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT StartTaskResult : public ServiceResult + { + public: + + + StartTaskResult(); + explicit StartTaskResult(const std::string &payload); + ~StartTaskResult(); + long getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_STARTTASKRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/StopAppRequest.h b/rtc/include/alibabacloud/rtc/model/StopAppRequest.h index 6febf990f..8bf45d5aa 100644 --- a/rtc/include/alibabacloud/rtc/model/StopAppRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StopAppRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -80,7 +80,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/StopTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StopTaskRequest.h new file mode 100644 index 000000000..761a156f8 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/StopTaskRequest.h @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_STOPTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STOPTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT StopTaskRequest : public RpcServiceRequest + { + + public: + StopTaskRequest(); + ~StopTaskRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + long getTaskId()const; + void setTaskId(long taskId); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + std::string popProduct_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string version_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + std::string requestContent_; + std::string appId_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string channelId_; + long taskId_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_STOPTASKREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/StopTaskResult.h b/rtc/include/alibabacloud/rtc/model/StopTaskResult.h new file mode 100644 index 000000000..33a22d391 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/StopTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_STOPTASKRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_STOPTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT StopTaskResult : public ServiceResult + { + public: + + + StopTaskResult(); + explicit StopTaskResult(const std::string &payload); + ~StopTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_STOPTASKRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h index e3fbfa5c5..df7f9b183 100644 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; long callerParentId_; bool proxy_original_security_transport_; std::string callerBid_; diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h index dce5ba32c..f71e87c52 100644 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string getApp_ip()const; void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); std::vector getParticipantIds()const; void setParticipantIds(const std::vector& participantIds); long getCallerParentId()const; @@ -84,7 +84,7 @@ namespace AlibabaCloud private: std::string app_ip_; - std::string product_; + std::string popProduct_; std::vector participantIds_; long callerParentId_; bool proxy_original_security_transport_; diff --git a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h index 28c718e6f..e8697dbc4 100644 --- a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h @@ -35,77 +35,80 @@ namespace AlibabaCloud UpdateChannelRequest(); ~UpdateChannelRequest(); - std::string getApp_ip()const; - void setApp_ip(const std::string& app_ip); - std::string getProduct()const; - void setProduct(const std::string& product); long getCallerParentId()const; void setCallerParentId(long callerParentId); bool getProxy_original_security_transport()const; void setProxy_original_security_transport(bool proxy_original_security_transport); - std::string getCallerBid()const; - void setCallerBid(const std::string& callerBid); - long getOwnerId()const; - void setOwnerId(long ownerId); std::string getProxy_original_source_ip()const; void setProxy_original_source_ip(const std::string& proxy_original_source_ip); - std::string getVersion()const; - void setVersion(const std::string& version); - std::string getNonce()const; - void setNonce(const std::string& nonce); std::string getOwnerIdLoginEmail()const; void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); std::string getCallerType()const; void setCallerType(const std::string& callerType); - bool getProxy_trust_transport_info()const; - void setProxy_trust_transport_info(bool proxy_trust_transport_info); - bool getAk_mfa_present()const; - void setAk_mfa_present(bool ak_mfa_present); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); - bool getSecurity_transport()const; - void setSecurity_transport(bool security_transport); std::string getSecurityToken()const; void setSecurityToken(const std::string& securityToken); - std::string getRequestId()const; - void setRequestId(const std::string& requestId); std::string getRequestContent()const; void setRequestContent(const std::string& requestContent); - std::string getAppId()const; - void setAppId(const std::string& appId); std::string getCallerBidEmail()const; void setCallerBidEmail(const std::string& callerBidEmail); std::string getCallerUidEmail()const; void setCallerUidEmail(const std::string& callerUidEmail); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); long getCallerUid()const; void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVersion()const; + void setVersion(const std::string& version); + std::string getNonce()const; + void setNonce(const std::string& nonce); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: - std::string app_ip_; - std::string product_; long callerParentId_; bool proxy_original_security_transport_; - std::string callerBid_; - long ownerId_; std::string proxy_original_source_ip_; - std::string version_; - std::string nonce_; std::string ownerIdLoginEmail_; std::string callerType_; - bool proxy_trust_transport_info_; - bool ak_mfa_present_; std::string accessKeyId_; - bool security_transport_; std::string securityToken_; - std::string requestId_; std::string requestContent_; - std::string appId_; std::string callerBidEmail_; std::string callerUidEmail_; - std::string channelId_; long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string product_; + std::string callerBid_; + long ownerId_; + std::string version_; + std::string nonce_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string channelId_; }; } diff --git a/rtc/include/alibabacloud/rtc/model/UpdateTaskParamRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateTaskParamRequest.h new file mode 100644 index 000000000..82ec2a790 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/UpdateTaskParamRequest.h @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RTC_MODEL_UPDATETASKPARAMREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATETASKPARAMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT UpdateTaskParamRequest : public RpcServiceRequest + { + struct MixPanes + { + int paneId; + std::string userId; + std::string sourceType; + }; + + public: + UpdateTaskParamRequest(); + ~UpdateTaskParamRequest(); + + std::vector getMixPanes()const; + void setMixPanes(const std::vector& mixPanes); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getTaskId()const; + void setTaskId(long taskId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPopProduct()const; + void setPopProduct(const std::string& popProduct); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getVersion()const; + void setVersion(const std::string& version); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::vector mixPanes_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long taskId_; + long callerUid_; + std::string app_ip_; + std::string popProduct_; + std::string callerBid_; + long ownerId_; + long templateId_; + std::string version_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string appId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATETASKPARAMREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateTaskParamResult.h b/rtc/include/alibabacloud/rtc/model/UpdateTaskParamResult.h new file mode 100644 index 000000000..01a28a7c6 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/UpdateTaskParamResult.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_RTC_MODEL_UPDATETASKPARAMRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATETASKPARAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT UpdateTaskParamResult : public ServiceResult + { + public: + + + UpdateTaskParamResult(); + explicit UpdateTaskParamResult(const std::string &payload); + ~UpdateTaskParamResult(); + long getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATETASKPARAMRESULT_H_ \ No newline at end of file diff --git a/rtc/src/RtcClient.cc b/rtc/src/RtcClient.cc index 4852fd6e2..ba31eaaa6 100644 --- a/rtc/src/RtcClient.cc +++ b/rtc/src/RtcClient.cc @@ -87,6 +87,582 @@ RtcClient::DescribeAppsOutcomeCallable RtcClient::describeAppsCallable(const Des return task->get_future(); } +RtcClient::GetTaskStatusOutcome RtcClient::getTaskStatus(const GetTaskStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskStatusOutcome(GetTaskStatusResult(outcome.result())); + else + return GetTaskStatusOutcome(outcome.error()); +} + +void RtcClient::getTaskStatusAsync(const GetTaskStatusRequest& request, const GetTaskStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::GetTaskStatusOutcomeCallable RtcClient::getTaskStatusCallable(const GetTaskStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::MuteAudioAllOutcome RtcClient::muteAudioAll(const MuteAudioAllRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MuteAudioAllOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MuteAudioAllOutcome(MuteAudioAllResult(outcome.result())); + else + return MuteAudioAllOutcome(outcome.error()); +} + +void RtcClient::muteAudioAllAsync(const MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, muteAudioAll(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::MuteAudioAllOutcomeCallable RtcClient::muteAudioAllCallable(const MuteAudioAllRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->muteAudioAll(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::UpdateTaskParamOutcome RtcClient::updateTaskParam(const UpdateTaskParamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTaskParamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTaskParamOutcome(UpdateTaskParamResult(outcome.result())); + else + return UpdateTaskParamOutcome(outcome.error()); +} + +void RtcClient::updateTaskParamAsync(const UpdateTaskParamRequest& request, const UpdateTaskParamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTaskParam(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::UpdateTaskParamOutcomeCallable RtcClient::updateTaskParamCallable(const UpdateTaskParamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTaskParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DeleteTemplateOutcome RtcClient::deleteTemplate(const DeleteTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTemplateOutcome(DeleteTemplateResult(outcome.result())); + else + return DeleteTemplateOutcome(outcome.error()); +} + +void RtcClient::deleteTemplateAsync(const DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DeleteTemplateOutcomeCallable RtcClient::deleteTemplateCallable(const DeleteTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::CreateTemplateOutcome RtcClient::createTemplate(const CreateTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTemplateOutcome(CreateTemplateResult(outcome.result())); + else + return CreateTemplateOutcome(outcome.error()); +} + +void RtcClient::createTemplateAsync(const CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::CreateTemplateOutcomeCallable RtcClient::createTemplateCallable(const CreateTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::GetTemplateInfoOutcome RtcClient::getTemplateInfo(const GetTemplateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTemplateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTemplateInfoOutcome(GetTemplateInfoResult(outcome.result())); + else + return GetTemplateInfoOutcome(outcome.error()); +} + +void RtcClient::getTemplateInfoAsync(const GetTemplateInfoRequest& request, const GetTemplateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTemplateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::GetTemplateInfoOutcomeCallable RtcClient::getTemplateInfoCallable(const GetTemplateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTemplateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteChannelOutcome(DeleteChannelResult(outcome.result())); + else + return DeleteChannelOutcome(outcome.error()); +} + +void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAppOutcome(ModifyAppResult(outcome.result())); + else + return ModifyAppOutcome(outcome.error()); +} + +void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::RemoveParticipantsOutcome RtcClient::removeParticipants(const RemoveParticipantsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveParticipantsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveParticipantsOutcome(RemoveParticipantsResult(outcome.result())); + else + return RemoveParticipantsOutcome(outcome.error()); +} + +void RtcClient::removeParticipantsAsync(const RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeParticipants(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::RemoveParticipantsOutcomeCallable RtcClient::removeParticipantsCallable(const RemoveParticipantsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeParticipants(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::GetAllTemplateOutcome RtcClient::getAllTemplate(const GetAllTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllTemplateOutcome(GetAllTemplateResult(outcome.result())); + else + return GetAllTemplateOutcome(outcome.error()); +} + +void RtcClient::getAllTemplateAsync(const GetAllTemplateRequest& request, const GetAllTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::GetAllTemplateOutcomeCallable RtcClient::getAllTemplateCallable(const GetAllTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeStatisOutcome RtcClient::describeStatis(const DescribeStatisRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStatisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStatisOutcome(DescribeStatisResult(outcome.result())); + else + return DescribeStatisOutcome(outcome.error()); +} + +void RtcClient::describeStatisAsync(const DescribeStatisRequest& request, const DescribeStatisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStatis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeStatisOutcomeCallable RtcClient::describeStatisCallable(const DescribeStatisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStatis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::CreateChannelOutcome RtcClient::createChannel(const CreateChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateChannelOutcome(CreateChannelResult(outcome.result())); + else + return CreateChannelOutcome(outcome.error()); +} + +void RtcClient::createChannelAsync(const CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::CreateChannelOutcomeCallable RtcClient::createChannelCallable(const CreateChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::StopTaskOutcome RtcClient::stopTask(const StopTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopTaskOutcome(StopTaskResult(outcome.result())); + else + return StopTaskOutcome(outcome.error()); +} + +void RtcClient::stopTaskAsync(const StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::StopTaskOutcomeCallable RtcClient::stopTaskCallable(const StopTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::GetTaskParamOutcome RtcClient::getTaskParam(const GetTaskParamRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskParamOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskParamOutcome(GetTaskParamResult(outcome.result())); + else + return GetTaskParamOutcome(outcome.error()); +} + +void RtcClient::getTaskParamAsync(const GetTaskParamRequest& request, const GetTaskParamAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskParam(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::GetTaskParamOutcomeCallable RtcClient::getTaskParamCallable(const GetTaskParamRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskParam(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::UpdateChannelOutcome RtcClient::updateChannel(const UpdateChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateChannelOutcome(UpdateChannelResult(outcome.result())); + else + return UpdateChannelOutcome(outcome.error()); +} + +void RtcClient::updateChannelAsync(const UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::UpdateChannelOutcomeCallable RtcClient::updateChannelCallable(const UpdateChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::StartTaskOutcome RtcClient::startTask(const StartTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartTaskOutcome(StartTaskResult(outcome.result())); + else + return StartTaskOutcome(outcome.error()); +} + +void RtcClient::startTaskAsync(const StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::StartTaskOutcomeCallable RtcClient::startTaskCallable(const StartTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::ModifyConferenceOutcome RtcClient::modifyConference(const ModifyConferenceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,42 +771,6 @@ RtcClient::DescribeRecordListOutcomeCallable RtcClient::describeRecordListCallab return task->get_future(); } -RtcClient::MuteAudioAllOutcome RtcClient::muteAudioAll(const MuteAudioAllRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MuteAudioAllOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MuteAudioAllOutcome(MuteAudioAllResult(outcome.result())); - else - return MuteAudioAllOutcome(outcome.error()); -} - -void RtcClient::muteAudioAllAsync(const MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, muteAudioAll(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::MuteAudioAllOutcomeCallable RtcClient::muteAudioAllCallable(const MuteAudioAllRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->muteAudioAll(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::UnmuteAudioOutcome RtcClient::unmuteAudio(const UnmuteAudioRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,78 +915,6 @@ RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(c return task->get_future(); } -RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteChannelOutcome(DeleteChannelResult(outcome.result())); - else - return DeleteChannelOutcome(outcome.error()); -} - -void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAppOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAppOutcome(ModifyAppResult(outcome.result())); - else - return ModifyAppOutcome(outcome.error()); -} - -void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyApp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyApp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeRealTimeRecordDetailOutcome RtcClient::describeRealTimeRecordDetail(const DescribeRealTimeRecordDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,114 +951,6 @@ RtcClient::DescribeRealTimeRecordDetailOutcomeCallable RtcClient::describeRealTi return task->get_future(); } -RtcClient::RemoveParticipantsOutcome RtcClient::removeParticipants(const RemoveParticipantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveParticipantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveParticipantsOutcome(RemoveParticipantsResult(outcome.result())); - else - return RemoveParticipantsOutcome(outcome.error()); -} - -void RtcClient::removeParticipantsAsync(const RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeParticipants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::RemoveParticipantsOutcomeCallable RtcClient::removeParticipantsCallable(const RemoveParticipantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeParticipants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeStatisOutcome RtcClient::describeStatis(const DescribeStatisRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeStatisOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeStatisOutcome(DescribeStatisResult(outcome.result())); - else - return DescribeStatisOutcome(outcome.error()); -} - -void RtcClient::describeStatisAsync(const DescribeStatisRequest& request, const DescribeStatisAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeStatis(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeStatisOutcomeCallable RtcClient::describeStatisCallable(const DescribeStatisRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeStatis(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::CreateChannelOutcome RtcClient::createChannel(const CreateChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateChannelOutcome(CreateChannelResult(outcome.result())); - else - return CreateChannelOutcome(outcome.error()); -} - -void RtcClient::createChannelAsync(const CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::CreateChannelOutcomeCallable RtcClient::createChannelCallable(const CreateChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeRealTimeRecordListOutcome RtcClient::describeRealTimeRecordList(const DescribeRealTimeRecordListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,42 +1095,6 @@ RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(c return task->get_future(); } -RtcClient::UpdateChannelOutcome RtcClient::updateChannel(const UpdateChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateChannelOutcome(UpdateChannelResult(outcome.result())); - else - return UpdateChannelOutcome(outcome.error()); -} - -void RtcClient::updateChannelAsync(const UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::UpdateChannelOutcomeCallable RtcClient::updateChannelCallable(const UpdateChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::UnmuteAudioAllOutcome RtcClient::unmuteAudioAll(const UnmuteAudioAllRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/rtc/src/model/CreateChannelRequest.cc b/rtc/src/model/CreateChannelRequest.cc index fc18afe09..910bf6941 100644 --- a/rtc/src/model/CreateChannelRequest.cc +++ b/rtc/src/model/CreateChannelRequest.cc @@ -36,6 +36,17 @@ void CreateChannelRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } +std::string CreateChannelRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateChannelRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + std::string CreateChannelRequest::getProduct()const { return product_; diff --git a/rtc/src/model/CreateConferenceRequest.cc b/rtc/src/model/CreateConferenceRequest.cc index 80195137d..f85a95a89 100644 --- a/rtc/src/model/CreateConferenceRequest.cc +++ b/rtc/src/model/CreateConferenceRequest.cc @@ -212,17 +212,6 @@ void CreateConferenceRequest::setPopProduct(const std::string& popProduct) setParameter("PopProduct", popProduct); } -std::string CreateConferenceRequest::getProduct()const -{ - return product_; -} - -void CreateConferenceRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - std::string CreateConferenceRequest::getCallerBid()const { return callerBid_; diff --git a/rtc/src/model/CreateTemplateRequest.cc b/rtc/src/model/CreateTemplateRequest.cc new file mode 100644 index 000000000..e3cca6036 --- /dev/null +++ b/rtc/src/model/CreateTemplateRequest.cc @@ -0,0 +1,368 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::CreateTemplateRequest; + +CreateTemplateRequest::CreateTemplateRequest() : + RpcServiceRequest("rtc", "2018-01-11", "CreateTemplate") +{} + +CreateTemplateRequest::~CreateTemplateRequest() +{} + +int CreateTemplateRequest::getServiceMode()const +{ + return serviceMode_; +} + +void CreateTemplateRequest::setServiceMode(int serviceMode) +{ + serviceMode_ = serviceMode; + setParameter("ServiceMode", std::to_string(serviceMode)); +} + +std::vector CreateTemplateRequest::getLiveConfig()const +{ + return liveConfig_; +} + +void CreateTemplateRequest::setLiveConfig(const std::vector& liveConfig) +{ + liveConfig_ = liveConfig; + int i = 0; + for(int i = 0; i!= liveConfig.size(); i++) { + auto obj = liveConfig.at(i); + std::string str ="LiveConfig."+ std::to_string(i); + setParameter(str + ".DomainName", obj.domainName); + setParameter(str + ".AppName", obj.appName); + } +} + +long CreateTemplateRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateTemplateRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateTemplateRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +int CreateTemplateRequest::getMediaConfig()const +{ + return mediaConfig_; +} + +void CreateTemplateRequest::setMediaConfig(int mediaConfig) +{ + mediaConfig_ = mediaConfig; + setParameter("MediaConfig", std::to_string(mediaConfig)); +} + +int CreateTemplateRequest::getMaxMixStreamCount()const +{ + return maxMixStreamCount_; +} + +void CreateTemplateRequest::setMaxMixStreamCount(int maxMixStreamCount) +{ + maxMixStreamCount_ = maxMixStreamCount; + setParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount)); +} + +std::string CreateTemplateRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateTemplateRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateTemplateRequest::getCallerType()const +{ + return callerType_; +} + +void CreateTemplateRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::vector CreateTemplateRequest::getRecordConfig()const +{ + return recordConfig_; +} + +void CreateTemplateRequest::setRecordConfig(const std::vector& recordConfig) +{ + recordConfig_ = recordConfig; + int i = 0; + for(int i = 0; i!= recordConfig.size(); i++) { + auto obj = recordConfig.at(i); + std::string str ="RecordConfig."+ std::to_string(i); + setParameter(str + ".StorageType", obj.storageType); + setParameter(str + ".FileFormat", std::to_string(obj.fileFormat)); + setParameter(str + ".OssEndPoint", obj.ossEndPoint); + setParameter(str + ".OssBucket", obj.ossBucket); + setParameter(str + ".VodTransCodeGroupId", std::to_string(obj.vodTransCodeGroupId)); + } +} + +std::string CreateTemplateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTemplateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateTemplateRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateTemplateRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateTemplateRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateTemplateRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateTemplateRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateTemplateRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateTemplateRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateTemplateRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateTemplateRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateTemplateRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateTemplateRequest::getPopProduct()const +{ + return popProduct_; +} + +void CreateTemplateRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string CreateTemplateRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateTemplateRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateTemplateRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTemplateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTemplateRequest::getVersion()const +{ + return version_; +} + +void CreateTemplateRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool CreateTemplateRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CreateTemplateRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateTemplateRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CreateTemplateRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateTemplateRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::vector CreateTemplateRequest::getLayOut()const +{ + return layOut_; +} + +void CreateTemplateRequest::setLayOut(const std::vector& layOut) +{ + layOut_ = layOut; + int i = 0; + for(int i = 0; i!= layOut.size(); i++) { + auto obj = layOut.at(i); + std::string str ="LayOut."+ std::to_string(i); + setParameter(str + ".Color", obj.color); + setParameter(str + ".CutMode", std::to_string(obj.cutMode)); + setParameter(str + ".LayOutId", std::to_string(obj.layOutId)); + } +} + +std::string CreateTemplateRequest::getRequestId()const +{ + return requestId_; +} + +void CreateTemplateRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateTemplateRequest::getAppId()const +{ + return appId_; +} + +void CreateTemplateRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string CreateTemplateRequest::getCallBack()const +{ + return callBack_; +} + +void CreateTemplateRequest::setCallBack(const std::string& callBack) +{ + callBack_ = callBack; + setParameter("CallBack", callBack); +} + +int CreateTemplateRequest::getMixMode()const +{ + return mixMode_; +} + +void CreateTemplateRequest::setMixMode(int mixMode) +{ + mixMode_ = mixMode; + setParameter("MixMode", std::to_string(mixMode)); +} + diff --git a/rtc/src/model/CreateTemplateResult.cc b/rtc/src/model/CreateTemplateResult.cc new file mode 100644 index 000000000..263899ac2 --- /dev/null +++ b/rtc/src/model/CreateTemplateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +CreateTemplateResult::CreateTemplateResult() : + ServiceResult() +{} + +CreateTemplateResult::CreateTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTemplateResult::~CreateTemplateResult() +{} + +void CreateTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TemplateId"].isNull()) + templateId_ = std::stol(value["TemplateId"].asString()); + +} + +long CreateTemplateResult::getTemplateId()const +{ + return templateId_; +} + diff --git a/rtc/src/model/DeleteChannelRequest.cc b/rtc/src/model/DeleteChannelRequest.cc index 21045a1f3..c4b36505a 100644 --- a/rtc/src/model/DeleteChannelRequest.cc +++ b/rtc/src/model/DeleteChannelRequest.cc @@ -36,6 +36,17 @@ void DeleteChannelRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } +std::string DeleteChannelRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteChannelRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + std::string DeleteChannelRequest::getProduct()const { return product_; diff --git a/rtc/src/model/DeleteTemplateRequest.cc b/rtc/src/model/DeleteTemplateRequest.cc new file mode 100644 index 000000000..d566b5b80 --- /dev/null +++ b/rtc/src/model/DeleteTemplateRequest.cc @@ -0,0 +1,269 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::DeleteTemplateRequest; + +DeleteTemplateRequest::DeleteTemplateRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DeleteTemplate") +{} + +DeleteTemplateRequest::~DeleteTemplateRequest() +{} + +std::string DeleteTemplateRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteTemplateRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteTemplateRequest::getPopProduct()const +{ + return popProduct_; +} + +void DeleteTemplateRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long DeleteTemplateRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteTemplateRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteTemplateRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DeleteTemplateRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteTemplateRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteTemplateRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteTemplateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteTemplateRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +long DeleteTemplateRequest::getTemplateId()const +{ + return templateId_; +} + +void DeleteTemplateRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + +std::string DeleteTemplateRequest::getVersion()const +{ + return version_; +} + +void DeleteTemplateRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string DeleteTemplateRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteTemplateRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteTemplateRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool DeleteTemplateRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DeleteTemplateRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteTemplateRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string DeleteTemplateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteTemplateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool DeleteTemplateRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteTemplateRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DeleteTemplateRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteTemplateRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteTemplateRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteTemplateRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DeleteTemplateRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteTemplateRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteTemplateRequest::getAppId()const +{ + return appId_; +} + +void DeleteTemplateRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DeleteTemplateRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteTemplateRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteTemplateRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteTemplateRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/DeleteTemplateResult.cc b/rtc/src/model/DeleteTemplateResult.cc new file mode 100644 index 000000000..90e7b58ec --- /dev/null +++ b/rtc/src/model/DeleteTemplateResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DeleteTemplateResult::DeleteTemplateResult() : + ServiceResult() +{} + +DeleteTemplateResult::DeleteTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTemplateResult::~DeleteTemplateResult() +{} + +void DeleteTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rtc/src/model/DescribeAppsRequest.cc b/rtc/src/model/DescribeAppsRequest.cc index 98ee1eb09..75baa1f6a 100644 --- a/rtc/src/model/DescribeAppsRequest.cc +++ b/rtc/src/model/DescribeAppsRequest.cc @@ -201,17 +201,6 @@ void DescribeAppsRequest::setPopProduct(const std::string& popProduct) setParameter("PopProduct", popProduct); } -std::string DescribeAppsRequest::getProduct()const -{ - return product_; -} - -void DescribeAppsRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - std::string DescribeAppsRequest::getCallerBid()const { return callerBid_; diff --git a/rtc/src/model/DescribeConferenceAuthInfoRequest.cc b/rtc/src/model/DescribeConferenceAuthInfoRequest.cc index 07a24898b..127e9f822 100644 --- a/rtc/src/model/DescribeConferenceAuthInfoRequest.cc +++ b/rtc/src/model/DescribeConferenceAuthInfoRequest.cc @@ -36,15 +36,15 @@ void DescribeConferenceAuthInfoRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeConferenceAuthInfoRequest::getProduct()const +std::string DescribeConferenceAuthInfoRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeConferenceAuthInfoRequest::setProduct(const std::string& product) +void DescribeConferenceAuthInfoRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long DescribeConferenceAuthInfoRequest::getCallerParentId()const diff --git a/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc b/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc index ba211653c..b93eb04b6 100644 --- a/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc +++ b/rtc/src/model/DescribeRealTimeRecordDetailRequest.cc @@ -36,15 +36,15 @@ void DescribeRealTimeRecordDetailRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeRealTimeRecordDetailRequest::getProduct()const +std::string DescribeRealTimeRecordDetailRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeRealTimeRecordDetailRequest::setProduct(const std::string& product) +void DescribeRealTimeRecordDetailRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long DescribeRealTimeRecordDetailRequest::getCallerParentId()const diff --git a/rtc/src/model/DescribeRealTimeRecordListRequest.cc b/rtc/src/model/DescribeRealTimeRecordListRequest.cc index c4cf7fbb1..a177c444b 100644 --- a/rtc/src/model/DescribeRealTimeRecordListRequest.cc +++ b/rtc/src/model/DescribeRealTimeRecordListRequest.cc @@ -36,15 +36,15 @@ void DescribeRealTimeRecordListRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeRealTimeRecordListRequest::getProduct()const +std::string DescribeRealTimeRecordListRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeRealTimeRecordListRequest::setProduct(const std::string& product) +void DescribeRealTimeRecordListRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long DescribeRealTimeRecordListRequest::getCallerParentId()const diff --git a/rtc/src/model/DescribeRecordDetailRequest.cc b/rtc/src/model/DescribeRecordDetailRequest.cc index bc5242f60..c41e04ae6 100644 --- a/rtc/src/model/DescribeRecordDetailRequest.cc +++ b/rtc/src/model/DescribeRecordDetailRequest.cc @@ -168,15 +168,15 @@ void DescribeRecordDetailRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeRecordDetailRequest::getProduct()const +std::string DescribeRecordDetailRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeRecordDetailRequest::setProduct(const std::string& product) +void DescribeRecordDetailRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::string DescribeRecordDetailRequest::getEndTime()const diff --git a/rtc/src/model/DescribeRecordListRequest.cc b/rtc/src/model/DescribeRecordListRequest.cc index 5d0660737..fe2e62c3d 100644 --- a/rtc/src/model/DescribeRecordListRequest.cc +++ b/rtc/src/model/DescribeRecordListRequest.cc @@ -212,15 +212,15 @@ void DescribeRecordListRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeRecordListRequest::getProduct()const +std::string DescribeRecordListRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeRecordListRequest::setProduct(const std::string& product) +void DescribeRecordListRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::string DescribeRecordListRequest::getEndTime()const diff --git a/rtc/src/model/DescribeStatisRequest.cc b/rtc/src/model/DescribeStatisRequest.cc index b2b8471fd..14bc7036e 100644 --- a/rtc/src/model/DescribeStatisRequest.cc +++ b/rtc/src/model/DescribeStatisRequest.cc @@ -201,15 +201,15 @@ void DescribeStatisRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string DescribeStatisRequest::getProduct()const +std::string DescribeStatisRequest::getPopProduct()const { - return product_; + return popProduct_; } -void DescribeStatisRequest::setProduct(const std::string& product) +void DescribeStatisRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::string DescribeStatisRequest::getEndTime()const diff --git a/rtc/src/model/GetAllTemplateRequest.cc b/rtc/src/model/GetAllTemplateRequest.cc new file mode 100644 index 000000000..18e9ff291 --- /dev/null +++ b/rtc/src/model/GetAllTemplateRequest.cc @@ -0,0 +1,258 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::GetAllTemplateRequest; + +GetAllTemplateRequest::GetAllTemplateRequest() : + RpcServiceRequest("rtc", "2018-01-11", "GetAllTemplate") +{} + +GetAllTemplateRequest::~GetAllTemplateRequest() +{} + +std::string GetAllTemplateRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetAllTemplateRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string GetAllTemplateRequest::getPopProduct()const +{ + return popProduct_; +} + +void GetAllTemplateRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long GetAllTemplateRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetAllTemplateRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetAllTemplateRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetAllTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string GetAllTemplateRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetAllTemplateRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long GetAllTemplateRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetAllTemplateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetAllTemplateRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetAllTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string GetAllTemplateRequest::getVersion()const +{ + return version_; +} + +void GetAllTemplateRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string GetAllTemplateRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void GetAllTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string GetAllTemplateRequest::getCallerType()const +{ + return callerType_; +} + +void GetAllTemplateRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetAllTemplateRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetAllTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool GetAllTemplateRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetAllTemplateRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string GetAllTemplateRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAllTemplateRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool GetAllTemplateRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetAllTemplateRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetAllTemplateRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetAllTemplateRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GetAllTemplateRequest::getRequestId()const +{ + return requestId_; +} + +void GetAllTemplateRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string GetAllTemplateRequest::getRequestContent()const +{ + return requestContent_; +} + +void GetAllTemplateRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string GetAllTemplateRequest::getAppId()const +{ + return appId_; +} + +void GetAllTemplateRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string GetAllTemplateRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void GetAllTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string GetAllTemplateRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void GetAllTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long GetAllTemplateRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetAllTemplateRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/GetAllTemplateResult.cc b/rtc/src/model/GetAllTemplateResult.cc new file mode 100644 index 000000000..2e166aeb1 --- /dev/null +++ b/rtc/src/model/GetAllTemplateResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +GetAllTemplateResult::GetAllTemplateResult() : + ServiceResult() +{} + +GetAllTemplateResult::GetAllTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllTemplateResult::~GetAllTemplateResult() +{} + +void GetAllTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTemplateIds = value["TemplateIds"]["TemplateId"]; + for (const auto &item : allTemplateIds) + templateIds_.push_back(item.asString()); + +} + +std::vector GetAllTemplateResult::getTemplateIds()const +{ + return templateIds_; +} + diff --git a/rtc/src/model/GetTaskParamRequest.cc b/rtc/src/model/GetTaskParamRequest.cc new file mode 100644 index 000000000..d1623c849 --- /dev/null +++ b/rtc/src/model/GetTaskParamRequest.cc @@ -0,0 +1,269 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::GetTaskParamRequest; + +GetTaskParamRequest::GetTaskParamRequest() : + RpcServiceRequest("rtc", "2018-01-11", "GetTaskParam") +{} + +GetTaskParamRequest::~GetTaskParamRequest() +{} + +std::string GetTaskParamRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetTaskParamRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string GetTaskParamRequest::getPopProduct()const +{ + return popProduct_; +} + +void GetTaskParamRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long GetTaskParamRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetTaskParamRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetTaskParamRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string GetTaskParamRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetTaskParamRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long GetTaskParamRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetTaskParamRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetTaskParamRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string GetTaskParamRequest::getVersion()const +{ + return version_; +} + +void GetTaskParamRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string GetTaskParamRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void GetTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string GetTaskParamRequest::getCallerType()const +{ + return callerType_; +} + +void GetTaskParamRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetTaskParamRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool GetTaskParamRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetTaskParamRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string GetTaskParamRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTaskParamRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool GetTaskParamRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetTaskParamRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetTaskParamRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetTaskParamRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GetTaskParamRequest::getRequestId()const +{ + return requestId_; +} + +void GetTaskParamRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string GetTaskParamRequest::getRequestContent()const +{ + return requestContent_; +} + +void GetTaskParamRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string GetTaskParamRequest::getAppId()const +{ + return appId_; +} + +void GetTaskParamRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string GetTaskParamRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void GetTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string GetTaskParamRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void GetTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long GetTaskParamRequest::getTaskId()const +{ + return taskId_; +} + +void GetTaskParamRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setParameter("TaskId", std::to_string(taskId)); +} + +long GetTaskParamRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetTaskParamRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/GetTaskParamResult.cc b/rtc/src/model/GetTaskParamResult.cc new file mode 100644 index 000000000..c8eb8443f --- /dev/null +++ b/rtc/src/model/GetTaskParamResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +GetTaskParamResult::GetTaskParamResult() : + ServiceResult() +{} + +GetTaskParamResult::GetTaskParamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskParamResult::~GetTaskParamResult() +{} + +void GetTaskParamResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allMixPane = value["MixPane"]["MixPaneItem"]; + for (auto value : allMixPane) + { + MixPaneItem mixPaneObject; + if(!value["PaneId"].isNull()) + mixPaneObject.paneId = std::stoi(value["PaneId"].asString()); + if(!value["UserId"].isNull()) + mixPaneObject.userId = value["UserId"].asString(); + if(!value["SourceType"].isNull()) + mixPaneObject.sourceType = value["SourceType"].asString(); + mixPane_.push_back(mixPaneObject); + } + if(!value["ChannelId"].isNull()) + channelId_ = value["ChannelId"].asString(); + if(!value["TemplateId"].isNull()) + templateId_ = std::stol(value["TemplateId"].asString()); + +} + +std::vector GetTaskParamResult::getMixPane()const +{ + return mixPane_; +} + +std::string GetTaskParamResult::getChannelId()const +{ + return channelId_; +} + +long GetTaskParamResult::getTemplateId()const +{ + return templateId_; +} + diff --git a/rtc/src/model/GetTaskStatusRequest.cc b/rtc/src/model/GetTaskStatusRequest.cc new file mode 100644 index 000000000..59d41c10e --- /dev/null +++ b/rtc/src/model/GetTaskStatusRequest.cc @@ -0,0 +1,280 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::GetTaskStatusRequest; + +GetTaskStatusRequest::GetTaskStatusRequest() : + RpcServiceRequest("rtc", "2018-01-11", "GetTaskStatus") +{} + +GetTaskStatusRequest::~GetTaskStatusRequest() +{} + +std::string GetTaskStatusRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetTaskStatusRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string GetTaskStatusRequest::getPopProduct()const +{ + return popProduct_; +} + +void GetTaskStatusRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long GetTaskStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetTaskStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetTaskStatusRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string GetTaskStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetTaskStatusRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long GetTaskStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetTaskStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetTaskStatusRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string GetTaskStatusRequest::getVersion()const +{ + return version_; +} + +void GetTaskStatusRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string GetTaskStatusRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void GetTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string GetTaskStatusRequest::getCallerType()const +{ + return callerType_; +} + +void GetTaskStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetTaskStatusRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool GetTaskStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string GetTaskStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool GetTaskStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetTaskStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetTaskStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetTaskStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GetTaskStatusRequest::getRequestId()const +{ + return requestId_; +} + +void GetTaskStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string GetTaskStatusRequest::getRequestContent()const +{ + return requestContent_; +} + +void GetTaskStatusRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string GetTaskStatusRequest::getAppId()const +{ + return appId_; +} + +void GetTaskStatusRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string GetTaskStatusRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void GetTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string GetTaskStatusRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void GetTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string GetTaskStatusRequest::getChannelId()const +{ + return channelId_; +} + +void GetTaskStatusRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + +long GetTaskStatusRequest::getTaskId()const +{ + return taskId_; +} + +void GetTaskStatusRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setParameter("TaskId", std::to_string(taskId)); +} + +long GetTaskStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetTaskStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/GetTaskStatusResult.cc b/rtc/src/model/GetTaskStatusResult.cc new file mode 100644 index 000000000..38fb6459a --- /dev/null +++ b/rtc/src/model/GetTaskStatusResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +GetTaskStatusResult::GetTaskStatusResult() : + ServiceResult() +{} + +GetTaskStatusResult::GetTaskStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskStatusResult::~GetTaskStatusResult() +{} + +void GetTaskStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = std::stoi(value["Status"].asString()); + +} + +int GetTaskStatusResult::getStatus()const +{ + return status_; +} + diff --git a/rtc/src/model/GetTemplateInfoRequest.cc b/rtc/src/model/GetTemplateInfoRequest.cc new file mode 100644 index 000000000..3ecacfa5d --- /dev/null +++ b/rtc/src/model/GetTemplateInfoRequest.cc @@ -0,0 +1,269 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::GetTemplateInfoRequest; + +GetTemplateInfoRequest::GetTemplateInfoRequest() : + RpcServiceRequest("rtc", "2018-01-11", "GetTemplateInfo") +{} + +GetTemplateInfoRequest::~GetTemplateInfoRequest() +{} + +std::string GetTemplateInfoRequest::getApp_ip()const +{ + return app_ip_; +} + +void GetTemplateInfoRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string GetTemplateInfoRequest::getPopProduct()const +{ + return popProduct_; +} + +void GetTemplateInfoRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long GetTemplateInfoRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetTemplateInfoRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool GetTemplateInfoRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void GetTemplateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string GetTemplateInfoRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetTemplateInfoRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long GetTemplateInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetTemplateInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetTemplateInfoRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void GetTemplateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +long GetTemplateInfoRequest::getTemplateId()const +{ + return templateId_; +} + +void GetTemplateInfoRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + +std::string GetTemplateInfoRequest::getVersion()const +{ + return version_; +} + +void GetTemplateInfoRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string GetTemplateInfoRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void GetTemplateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string GetTemplateInfoRequest::getCallerType()const +{ + return callerType_; +} + +void GetTemplateInfoRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetTemplateInfoRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void GetTemplateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool GetTemplateInfoRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetTemplateInfoRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string GetTemplateInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTemplateInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool GetTemplateInfoRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetTemplateInfoRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetTemplateInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GetTemplateInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GetTemplateInfoRequest::getRequestId()const +{ + return requestId_; +} + +void GetTemplateInfoRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string GetTemplateInfoRequest::getRequestContent()const +{ + return requestContent_; +} + +void GetTemplateInfoRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string GetTemplateInfoRequest::getAppId()const +{ + return appId_; +} + +void GetTemplateInfoRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string GetTemplateInfoRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void GetTemplateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string GetTemplateInfoRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void GetTemplateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long GetTemplateInfoRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetTemplateInfoRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/GetTemplateInfoResult.cc b/rtc/src/model/GetTemplateInfoResult.cc new file mode 100644 index 000000000..8a51f4442 --- /dev/null +++ b/rtc/src/model/GetTemplateInfoResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +GetTemplateInfoResult::GetTemplateInfoResult() : + ServiceResult() +{} + +GetTemplateInfoResult::GetTemplateInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTemplateInfoResult::~GetTemplateInfoResult() +{} + +void GetTemplateInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto layOutNode = value["LayOut"]; + if(!layOutNode["Color"].isNull()) + layOut_.color = layOutNode["Color"].asString(); + if(!layOutNode["Cutmode"].isNull()) + layOut_.cutmode = std::stoi(layOutNode["Cutmode"].asString()); + if(!layOutNode["LayoutID"].isNull()) + layOut_.layoutID = std::stoi(layOutNode["LayoutID"].asString()); + auto recordConfigNode = value["RecordConfig"]; + if(!recordConfigNode["StorageType"].isNull()) + recordConfig_.storageType = recordConfigNode["StorageType"].asString(); + if(!recordConfigNode["FileFormat"].isNull()) + recordConfig_.fileFormat = std::stoi(recordConfigNode["FileFormat"].asString()); + if(!recordConfigNode["OssEndpoint"].isNull()) + recordConfig_.ossEndpoint = recordConfigNode["OssEndpoint"].asString(); + if(!recordConfigNode["OssBucket"].isNull()) + recordConfig_.ossBucket = recordConfigNode["OssBucket"].asString(); + if(!recordConfigNode["VodTranscodeGroupId"].isNull()) + recordConfig_.vodTranscodeGroupId = std::stoi(recordConfigNode["VodTranscodeGroupId"].asString()); + auto liveConfigNode = value["LiveConfig"]; + if(!liveConfigNode["DomainName"].isNull()) + liveConfig_.domainName = liveConfigNode["DomainName"].asString(); + if(!liveConfigNode["AppName"].isNull()) + liveConfig_.appName = liveConfigNode["AppName"].asString(); + if(!value["MixMode"].isNull()) + mixMode_ = std::stoi(value["MixMode"].asString()); + if(!value["ServiceMode"].isNull()) + serviceMode_ = std::stoi(value["ServiceMode"].asString()); + if(!value["CallBack"].isNull()) + callBack_ = value["CallBack"].asString(); + if(!value["MaxMixStreamCount"].isNull()) + maxMixStreamCount_ = std::stoi(value["MaxMixStreamCount"].asString()); + if(!value["MediaConfig"].isNull()) + mediaConfig_ = std::stoi(value["MediaConfig"].asString()); + +} + +std::string GetTemplateInfoResult::getCallBack()const +{ + return callBack_; +} + +int GetTemplateInfoResult::getMixMode()const +{ + return mixMode_; +} + +GetTemplateInfoResult::LayOut GetTemplateInfoResult::getLayOut()const +{ + return layOut_; +} + +int GetTemplateInfoResult::getMaxMixStreamCount()const +{ + return maxMixStreamCount_; +} + +GetTemplateInfoResult::LiveConfig GetTemplateInfoResult::getLiveConfig()const +{ + return liveConfig_; +} + +int GetTemplateInfoResult::getServiceMode()const +{ + return serviceMode_; +} + +int GetTemplateInfoResult::getMediaConfig()const +{ + return mediaConfig_; +} + +GetTemplateInfoResult::RecordConfig GetTemplateInfoResult::getRecordConfig()const +{ + return recordConfig_; +} + diff --git a/rtc/src/model/ModifyAppRequest.cc b/rtc/src/model/ModifyAppRequest.cc index d132cac93..c643d817a 100644 --- a/rtc/src/model/ModifyAppRequest.cc +++ b/rtc/src/model/ModifyAppRequest.cc @@ -36,15 +36,15 @@ void ModifyAppRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string ModifyAppRequest::getProduct()const +std::string ModifyAppRequest::getPopProduct()const { - return product_; + return popProduct_; } -void ModifyAppRequest::setProduct(const std::string& product) +void ModifyAppRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long ModifyAppRequest::getCallerParentId()const diff --git a/rtc/src/model/ModifyConferenceRequest.cc b/rtc/src/model/ModifyConferenceRequest.cc index 6b2ed0b7c..7bfe74d49 100644 --- a/rtc/src/model/ModifyConferenceRequest.cc +++ b/rtc/src/model/ModifyConferenceRequest.cc @@ -201,15 +201,15 @@ void ModifyConferenceRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string ModifyConferenceRequest::getProduct()const +std::string ModifyConferenceRequest::getPopProduct()const { - return product_; + return popProduct_; } -void ModifyConferenceRequest::setProduct(const std::string& product) +void ModifyConferenceRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::string ModifyConferenceRequest::getCallerBid()const diff --git a/rtc/src/model/MuteAudioAllRequest.cc b/rtc/src/model/MuteAudioAllRequest.cc index b8116f9de..e8c61c757 100644 --- a/rtc/src/model/MuteAudioAllRequest.cc +++ b/rtc/src/model/MuteAudioAllRequest.cc @@ -36,15 +36,15 @@ void MuteAudioAllRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string MuteAudioAllRequest::getProduct()const +std::string MuteAudioAllRequest::getPopProduct()const { - return product_; + return popProduct_; } -void MuteAudioAllRequest::setProduct(const std::string& product) +void MuteAudioAllRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long MuteAudioAllRequest::getCallerParentId()const diff --git a/rtc/src/model/MuteAudioRequest.cc b/rtc/src/model/MuteAudioRequest.cc index 06bf681af..9c9095a69 100644 --- a/rtc/src/model/MuteAudioRequest.cc +++ b/rtc/src/model/MuteAudioRequest.cc @@ -36,15 +36,15 @@ void MuteAudioRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string MuteAudioRequest::getProduct()const +std::string MuteAudioRequest::getPopProduct()const { - return product_; + return popProduct_; } -void MuteAudioRequest::setProduct(const std::string& product) +void MuteAudioRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::vector MuteAudioRequest::getParticipantIds()const diff --git a/rtc/src/model/RemoveParticipantsRequest.cc b/rtc/src/model/RemoveParticipantsRequest.cc index d895d5624..9c532a66e 100644 --- a/rtc/src/model/RemoveParticipantsRequest.cc +++ b/rtc/src/model/RemoveParticipantsRequest.cc @@ -36,15 +36,15 @@ void RemoveParticipantsRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string RemoveParticipantsRequest::getProduct()const +std::string RemoveParticipantsRequest::getPopProduct()const { - return product_; + return popProduct_; } -void RemoveParticipantsRequest::setProduct(const std::string& product) +void RemoveParticipantsRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::vector RemoveParticipantsRequest::getParticipantIds()const diff --git a/rtc/src/model/StartAppRequest.cc b/rtc/src/model/StartAppRequest.cc index b2d1a1a8b..292a390e1 100644 --- a/rtc/src/model/StartAppRequest.cc +++ b/rtc/src/model/StartAppRequest.cc @@ -36,15 +36,15 @@ void StartAppRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string StartAppRequest::getProduct()const +std::string StartAppRequest::getPopProduct()const { - return product_; + return popProduct_; } -void StartAppRequest::setProduct(const std::string& product) +void StartAppRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long StartAppRequest::getCallerParentId()const diff --git a/rtc/src/model/StartTaskRequest.cc b/rtc/src/model/StartTaskRequest.cc new file mode 100644 index 000000000..febbad7b8 --- /dev/null +++ b/rtc/src/model/StartTaskRequest.cc @@ -0,0 +1,309 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::StartTaskRequest; + +StartTaskRequest::StartTaskRequest() : + RpcServiceRequest("rtc", "2018-01-11", "StartTask") +{} + +StartTaskRequest::~StartTaskRequest() +{} + +std::vector StartTaskRequest::getMixPanes()const +{ + return mixPanes_; +} + +void StartTaskRequest::setMixPanes(const std::vector& mixPanes) +{ + mixPanes_ = mixPanes; + int i = 0; + for(int i = 0; i!= mixPanes.size(); i++) { + auto obj = mixPanes.at(i); + std::string str ="MixPanes."+ std::to_string(i); + setParameter(str + ".PaneId", std::to_string(obj.paneId)); + setParameter(str + ".UserId", obj.userId); + setParameter(str + ".SourceType", obj.sourceType); + } +} + +long StartTaskRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void StartTaskRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string StartTaskRequest::getIdempotentId()const +{ + return idempotentId_; +} + +void StartTaskRequest::setIdempotentId(const std::string& idempotentId) +{ + idempotentId_ = idempotentId; + setParameter("IdempotentId", idempotentId); +} + +bool StartTaskRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void StartTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string StartTaskRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void StartTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string StartTaskRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void StartTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string StartTaskRequest::getCallerType()const +{ + return callerType_; +} + +void StartTaskRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string StartTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string StartTaskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StartTaskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string StartTaskRequest::getRequestContent()const +{ + return requestContent_; +} + +void StartTaskRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string StartTaskRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void StartTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string StartTaskRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void StartTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long StartTaskRequest::getCallerUid()const +{ + return callerUid_; +} + +void StartTaskRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string StartTaskRequest::getApp_ip()const +{ + return app_ip_; +} + +void StartTaskRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string StartTaskRequest::getPopProduct()const +{ + return popProduct_; +} + +void StartTaskRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string StartTaskRequest::getCallerBid()const +{ + return callerBid_; +} + +void StartTaskRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long StartTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long StartTaskRequest::getTemplateId()const +{ + return templateId_; +} + +void StartTaskRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + +std::string StartTaskRequest::getVersion()const +{ + return version_; +} + +void StartTaskRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool StartTaskRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void StartTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool StartTaskRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void StartTaskRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool StartTaskRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void StartTaskRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string StartTaskRequest::getRequestId()const +{ + return requestId_; +} + +void StartTaskRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string StartTaskRequest::getAppId()const +{ + return appId_; +} + +void StartTaskRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string StartTaskRequest::getChannelId()const +{ + return channelId_; +} + +void StartTaskRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/StartTaskResult.cc b/rtc/src/model/StartTaskResult.cc new file mode 100644 index 000000000..f2ca3e44b --- /dev/null +++ b/rtc/src/model/StartTaskResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +StartTaskResult::StartTaskResult() : + ServiceResult() +{} + +StartTaskResult::StartTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartTaskResult::~StartTaskResult() +{} + +void StartTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long StartTaskResult::getTaskId()const +{ + return taskId_; +} + diff --git a/rtc/src/model/StopAppRequest.cc b/rtc/src/model/StopAppRequest.cc index 4b15903e8..75b90fb33 100644 --- a/rtc/src/model/StopAppRequest.cc +++ b/rtc/src/model/StopAppRequest.cc @@ -36,15 +36,15 @@ void StopAppRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string StopAppRequest::getProduct()const +std::string StopAppRequest::getPopProduct()const { - return product_; + return popProduct_; } -void StopAppRequest::setProduct(const std::string& product) +void StopAppRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long StopAppRequest::getCallerParentId()const diff --git a/rtc/src/model/StopTaskRequest.cc b/rtc/src/model/StopTaskRequest.cc new file mode 100644 index 000000000..197e44943 --- /dev/null +++ b/rtc/src/model/StopTaskRequest.cc @@ -0,0 +1,280 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::StopTaskRequest; + +StopTaskRequest::StopTaskRequest() : + RpcServiceRequest("rtc", "2018-01-11", "StopTask") +{} + +StopTaskRequest::~StopTaskRequest() +{} + +std::string StopTaskRequest::getApp_ip()const +{ + return app_ip_; +} + +void StopTaskRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string StopTaskRequest::getPopProduct()const +{ + return popProduct_; +} + +void StopTaskRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +long StopTaskRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void StopTaskRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool StopTaskRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void StopTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string StopTaskRequest::getCallerBid()const +{ + return callerBid_; +} + +void StopTaskRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long StopTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StopTaskRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void StopTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string StopTaskRequest::getVersion()const +{ + return version_; +} + +void StopTaskRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string StopTaskRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void StopTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string StopTaskRequest::getCallerType()const +{ + return callerType_; +} + +void StopTaskRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool StopTaskRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void StopTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool StopTaskRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void StopTaskRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string StopTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool StopTaskRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void StopTaskRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string StopTaskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StopTaskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string StopTaskRequest::getRequestId()const +{ + return requestId_; +} + +void StopTaskRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string StopTaskRequest::getRequestContent()const +{ + return requestContent_; +} + +void StopTaskRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string StopTaskRequest::getAppId()const +{ + return appId_; +} + +void StopTaskRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string StopTaskRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void StopTaskRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string StopTaskRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void StopTaskRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string StopTaskRequest::getChannelId()const +{ + return channelId_; +} + +void StopTaskRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + +long StopTaskRequest::getTaskId()const +{ + return taskId_; +} + +void StopTaskRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setParameter("TaskId", std::to_string(taskId)); +} + +long StopTaskRequest::getCallerUid()const +{ + return callerUid_; +} + +void StopTaskRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/rtc/src/model/StopTaskResult.cc b/rtc/src/model/StopTaskResult.cc new file mode 100644 index 000000000..28f654a72 --- /dev/null +++ b/rtc/src/model/StopTaskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +StopTaskResult::StopTaskResult() : + ServiceResult() +{} + +StopTaskResult::StopTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopTaskResult::~StopTaskResult() +{} + +void StopTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rtc/src/model/UnmuteAudioAllRequest.cc b/rtc/src/model/UnmuteAudioAllRequest.cc index 1ad39463d..7e59e9359 100644 --- a/rtc/src/model/UnmuteAudioAllRequest.cc +++ b/rtc/src/model/UnmuteAudioAllRequest.cc @@ -36,15 +36,15 @@ void UnmuteAudioAllRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string UnmuteAudioAllRequest::getProduct()const +std::string UnmuteAudioAllRequest::getPopProduct()const { - return product_; + return popProduct_; } -void UnmuteAudioAllRequest::setProduct(const std::string& product) +void UnmuteAudioAllRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } long UnmuteAudioAllRequest::getCallerParentId()const diff --git a/rtc/src/model/UnmuteAudioRequest.cc b/rtc/src/model/UnmuteAudioRequest.cc index a0ee50e2e..abc4c65d0 100644 --- a/rtc/src/model/UnmuteAudioRequest.cc +++ b/rtc/src/model/UnmuteAudioRequest.cc @@ -36,15 +36,15 @@ void UnmuteAudioRequest::setApp_ip(const std::string& app_ip) setParameter("App_ip", app_ip); } -std::string UnmuteAudioRequest::getProduct()const +std::string UnmuteAudioRequest::getPopProduct()const { - return product_; + return popProduct_; } -void UnmuteAudioRequest::setProduct(const std::string& product) +void UnmuteAudioRequest::setPopProduct(const std::string& popProduct) { - product_ = product; - setParameter("Product", product); + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); } std::vector UnmuteAudioRequest::getParticipantIds()const diff --git a/rtc/src/model/UpdateChannelRequest.cc b/rtc/src/model/UpdateChannelRequest.cc index 34b7ccc14..9ce649e6d 100644 --- a/rtc/src/model/UpdateChannelRequest.cc +++ b/rtc/src/model/UpdateChannelRequest.cc @@ -25,28 +25,6 @@ UpdateChannelRequest::UpdateChannelRequest() : UpdateChannelRequest::~UpdateChannelRequest() {} -std::string UpdateChannelRequest::getApp_ip()const -{ - return app_ip_; -} - -void UpdateChannelRequest::setApp_ip(const std::string& app_ip) -{ - app_ip_ = app_ip; - setParameter("App_ip", app_ip); -} - -std::string UpdateChannelRequest::getProduct()const -{ - return product_; -} - -void UpdateChannelRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); -} - long UpdateChannelRequest::getCallerParentId()const { return callerParentId_; @@ -69,28 +47,6 @@ void UpdateChannelRequest::setProxy_original_security_transport(bool proxy_origi setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); } -std::string UpdateChannelRequest::getCallerBid()const -{ - return callerBid_; -} - -void UpdateChannelRequest::setCallerBid(const std::string& callerBid) -{ - callerBid_ = callerBid; - setParameter("CallerBid", callerBid); -} - -long UpdateChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void UpdateChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - std::string UpdateChannelRequest::getProxy_original_source_ip()const { return proxy_original_source_ip_; @@ -102,28 +58,6 @@ void UpdateChannelRequest::setProxy_original_source_ip(const std::string& proxy_ setParameter("Proxy_original_source_ip", proxy_original_source_ip); } -std::string UpdateChannelRequest::getVersion()const -{ - return version_; -} - -void UpdateChannelRequest::setVersion(const std::string& version) -{ - version_ = version; - setParameter("Version", version); -} - -std::string UpdateChannelRequest::getNonce()const -{ - return nonce_; -} - -void UpdateChannelRequest::setNonce(const std::string& nonce) -{ - nonce_ = nonce; - setParameter("Nonce", nonce); -} - std::string UpdateChannelRequest::getOwnerIdLoginEmail()const { return ownerIdLoginEmail_; @@ -146,28 +80,6 @@ void UpdateChannelRequest::setCallerType(const std::string& callerType) setParameter("CallerType", callerType); } -bool UpdateChannelRequest::getProxy_trust_transport_info()const -{ - return proxy_trust_transport_info_; -} - -void UpdateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) -{ - proxy_trust_transport_info_ = proxy_trust_transport_info; - setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); -} - -bool UpdateChannelRequest::getAk_mfa_present()const -{ - return ak_mfa_present_; -} - -void UpdateChannelRequest::setAk_mfa_present(bool ak_mfa_present) -{ - ak_mfa_present_ = ak_mfa_present; - setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); -} - std::string UpdateChannelRequest::getAccessKeyId()const { return accessKeyId_; @@ -179,17 +91,6 @@ void UpdateChannelRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } -bool UpdateChannelRequest::getSecurity_transport()const -{ - return security_transport_; -} - -void UpdateChannelRequest::setSecurity_transport(bool security_transport) -{ - security_transport_ = security_transport; - setParameter("Security_transport", std::to_string(security_transport)); -} - std::string UpdateChannelRequest::getSecurityToken()const { return securityToken_; @@ -201,17 +102,6 @@ void UpdateChannelRequest::setSecurityToken(const std::string& securityToken) setParameter("SecurityToken", securityToken); } -std::string UpdateChannelRequest::getRequestId()const -{ - return requestId_; -} - -void UpdateChannelRequest::setRequestId(const std::string& requestId) -{ - requestId_ = requestId; - setParameter("RequestId", requestId); -} - std::string UpdateChannelRequest::getRequestContent()const { return requestContent_; @@ -223,17 +113,6 @@ void UpdateChannelRequest::setRequestContent(const std::string& requestContent) setParameter("RequestContent", requestContent); } -std::string UpdateChannelRequest::getAppId()const -{ - return appId_; -} - -void UpdateChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - std::string UpdateChannelRequest::getCallerBidEmail()const { return callerBidEmail_; @@ -256,17 +135,6 @@ void UpdateChannelRequest::setCallerUidEmail(const std::string& callerUidEmail) setParameter("CallerUidEmail", callerUidEmail); } -std::string UpdateChannelRequest::getChannelId()const -{ - return channelId_; -} - -void UpdateChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - long UpdateChannelRequest::getCallerUid()const { return callerUid_; @@ -278,3 +146,146 @@ void UpdateChannelRequest::setCallerUid(long callerUid) setParameter("CallerUid", std::to_string(callerUid)); } +std::string UpdateChannelRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateChannelRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string UpdateChannelRequest::getPopProduct()const +{ + return popProduct_; +} + +void UpdateChannelRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string UpdateChannelRequest::getProduct()const +{ + return product_; +} + +void UpdateChannelRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string UpdateChannelRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateChannelRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long UpdateChannelRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateChannelRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateChannelRequest::getVersion()const +{ + return version_; +} + +void UpdateChannelRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +std::string UpdateChannelRequest::getNonce()const +{ + return nonce_; +} + +void UpdateChannelRequest::setNonce(const std::string& nonce) +{ + nonce_ = nonce; + setParameter("Nonce", nonce); +} + +bool UpdateChannelRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool UpdateChannelRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateChannelRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool UpdateChannelRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateChannelRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string UpdateChannelRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateChannelRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string UpdateChannelRequest::getAppId()const +{ + return appId_; +} + +void UpdateChannelRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string UpdateChannelRequest::getChannelId()const +{ + return channelId_; +} + +void UpdateChannelRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/UpdateTaskParamRequest.cc b/rtc/src/model/UpdateTaskParamRequest.cc new file mode 100644 index 000000000..942945ce2 --- /dev/null +++ b/rtc/src/model/UpdateTaskParamRequest.cc @@ -0,0 +1,309 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc::Model::UpdateTaskParamRequest; + +UpdateTaskParamRequest::UpdateTaskParamRequest() : + RpcServiceRequest("rtc", "2018-01-11", "UpdateTaskParam") +{} + +UpdateTaskParamRequest::~UpdateTaskParamRequest() +{} + +std::vector UpdateTaskParamRequest::getMixPanes()const +{ + return mixPanes_; +} + +void UpdateTaskParamRequest::setMixPanes(const std::vector& mixPanes) +{ + mixPanes_ = mixPanes; + int i = 0; + for(int i = 0; i!= mixPanes.size(); i++) { + auto obj = mixPanes.at(i); + std::string str ="MixPanes."+ std::to_string(i); + setParameter(str + ".PaneId", std::to_string(obj.paneId)); + setParameter(str + ".UserId", obj.userId); + setParameter(str + ".SourceType", obj.sourceType); + } +} + +long UpdateTaskParamRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void UpdateTaskParamRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool UpdateTaskParamRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void UpdateTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string UpdateTaskParamRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void UpdateTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string UpdateTaskParamRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void UpdateTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string UpdateTaskParamRequest::getCallerType()const +{ + return callerType_; +} + +void UpdateTaskParamRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string UpdateTaskParamRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateTaskParamRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateTaskParamRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateTaskParamRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string UpdateTaskParamRequest::getRequestContent()const +{ + return requestContent_; +} + +void UpdateTaskParamRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string UpdateTaskParamRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void UpdateTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string UpdateTaskParamRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void UpdateTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long UpdateTaskParamRequest::getTaskId()const +{ + return taskId_; +} + +void UpdateTaskParamRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setParameter("TaskId", std::to_string(taskId)); +} + +long UpdateTaskParamRequest::getCallerUid()const +{ + return callerUid_; +} + +void UpdateTaskParamRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string UpdateTaskParamRequest::getApp_ip()const +{ + return app_ip_; +} + +void UpdateTaskParamRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string UpdateTaskParamRequest::getPopProduct()const +{ + return popProduct_; +} + +void UpdateTaskParamRequest::setPopProduct(const std::string& popProduct) +{ + popProduct_ = popProduct; + setParameter("PopProduct", popProduct); +} + +std::string UpdateTaskParamRequest::getCallerBid()const +{ + return callerBid_; +} + +void UpdateTaskParamRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long UpdateTaskParamRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateTaskParamRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long UpdateTaskParamRequest::getTemplateId()const +{ + return templateId_; +} + +void UpdateTaskParamRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", std::to_string(templateId)); +} + +std::string UpdateTaskParamRequest::getVersion()const +{ + return version_; +} + +void UpdateTaskParamRequest::setVersion(const std::string& version) +{ + version_ = version; + setParameter("Version", version); +} + +bool UpdateTaskParamRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void UpdateTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool UpdateTaskParamRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void UpdateTaskParamRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool UpdateTaskParamRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void UpdateTaskParamRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string UpdateTaskParamRequest::getRequestId()const +{ + return requestId_; +} + +void UpdateTaskParamRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string UpdateTaskParamRequest::getAppId()const +{ + return appId_; +} + +void UpdateTaskParamRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string UpdateTaskParamRequest::getChannelId()const +{ + return channelId_; +} + +void UpdateTaskParamRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/UpdateTaskParamResult.cc b/rtc/src/model/UpdateTaskParamResult.cc new file mode 100644 index 000000000..c60ee0af0 --- /dev/null +++ b/rtc/src/model/UpdateTaskParamResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +UpdateTaskParamResult::UpdateTaskParamResult() : + ServiceResult() +{} + +UpdateTaskParamResult::UpdateTaskParamResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTaskParamResult::~UpdateTaskParamResult() +{} + +void UpdateTaskParamResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long UpdateTaskParamResult::getTaskId()const +{ + return taskId_; +} +