From b04b7f603374b947b90d6737be67de171655ba69 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 18 Nov 2020 09:27:56 +0000 Subject: [PATCH] Generated 2018-01-11 for rtc. --- CHANGELOG | 3 + rtc/CMakeLists.txt | 48 +- rtc/include/alibabacloud/rtc/RtcClient.h | 96 ++-- .../rtc/model/AddRecordTemplateRequest.h | 40 +- .../rtc/model/DescribeRecordFilesRequest.h | 72 +++ .../rtc/model/DescribeRecordFilesResult.h | 66 +++ .../rtc/model/DescribeRecordTasksRequest.h | 75 +++ .../rtc/model/DescribeRecordTasksResult.h | 72 +++ ...st.h => DescribeRtcChannelDetailRequest.h} | 30 +- .../model/DescribeRtcChannelDetailResult.h | 70 +++ ...t.h => DescribeRtcChannelMetricsRequest.h} | 30 +- ...lt.h => DescribeRtcChannelMetricsResult.h} | 29 +- ...Request.h => DescribeRtcChannelsRequest.h} | 27 +- ...leResult.h => DescribeRtcChannelsResult.h} | 29 +- ...quest.h => DescribeRtcUserEventsRequest.h} | 36 +- ...Result.h => DescribeRtcUserEventsResult.h} | 24 +- .../rtc/model/EnableMAURuleRequest.h | 57 --- .../rtc/model/EnableMAURuleResult.h | 49 -- .../rtc/model/StartRecordTaskRequest.h | 22 + .../rtc/model/UpdateRecordTaskRequest.h | 98 ++++ ...URuleResult.h => UpdateRecordTaskResult.h} | 14 +- .../rtc/model/UpdateRecordTemplateRequest.h | 31 ++ rtc/src/RtcClient.cc | 432 ++++++++++-------- rtc/src/model/AddRecordTemplateRequest.cc | 75 ++- rtc/src/model/CreateMAURuleRequest.cc | 106 ----- rtc/src/model/CreateMAURuleResult.cc | 51 --- rtc/src/model/DeleteMAURuleRequest.cc | 73 --- rtc/src/model/DeleteMAURuleResult.cc | 44 -- rtc/src/model/DescribeMAURuleRequest.cc | 62 --- rtc/src/model/DescribeMAURuleResult.cc | 67 --- .../model/DescribeMPULayoutInfoListResult.cc | 32 +- rtc/src/model/DescribeRecordFilesRequest.cc | 130 ++++++ rtc/src/model/DescribeRecordFilesResult.cc | 85 ++++ rtc/src/model/DescribeRecordTasksRequest.cc | 141 ++++++ rtc/src/model/DescribeRecordTasksResult.cc | 96 ++++ .../model/DescribeRtcChannelDetailRequest.cc | 117 +++++ .../model/DescribeRtcChannelDetailResult.cc | 99 ++++ .../model/DescribeRtcChannelMetricsRequest.cc | 117 +++++ .../model/DescribeRtcChannelMetricsResult.cc | 62 +++ rtc/src/model/DescribeRtcChannelsRequest.cc | 117 +++++ rtc/src/model/DescribeRtcChannelsResult.cc | 84 ++++ rtc/src/model/DescribeRtcUserEventsRequest.cc | 106 +++++ rtc/src/model/DescribeRtcUserEventsResult.cc | 61 +++ rtc/src/model/DisableMAURuleRequest.cc | 73 --- rtc/src/model/EnableMAURuleRequest.cc | 73 --- rtc/src/model/EnableMAURuleResult.cc | 44 -- rtc/src/model/StartRecordTaskRequest.cc | 22 + rtc/src/model/UpdateRecordTaskRequest.cc | 147 ++++++ ...uleResult.cc => UpdateRecordTaskResult.cc} | 10 +- rtc/src/model/UpdateRecordTemplateRequest.cc | 54 +++ 50 files changed, 2549 insertions(+), 1049 deletions(-) create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRecordFilesResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRecordTasksResult.h rename rtc/include/alibabacloud/rtc/model/{DeleteMAURuleRequest.h => DescribeRtcChannelDetailRequest.h} (56%) create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h rename rtc/include/alibabacloud/rtc/model/{DisableMAURuleRequest.h => DescribeRtcChannelMetricsRequest.h} (54%) rename rtc/include/alibabacloud/rtc/model/{DescribeMAURuleResult.h => DescribeRtcChannelMetricsResult.h} (60%) rename rtc/include/alibabacloud/rtc/model/{DescribeMAURuleRequest.h => DescribeRtcChannelsRequest.h} (57%) rename rtc/include/alibabacloud/rtc/model/{DeleteMAURuleResult.h => DescribeRtcChannelsResult.h} (55%) rename rtc/include/alibabacloud/rtc/model/{CreateMAURuleRequest.h => DescribeRtcUserEventsRequest.h} (58%) rename rtc/include/alibabacloud/rtc/model/{CreateMAURuleResult.h => DescribeRtcUserEventsResult.h} (61%) delete mode 100644 rtc/include/alibabacloud/rtc/model/EnableMAURuleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/EnableMAURuleResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h rename rtc/include/alibabacloud/rtc/model/{DisableMAURuleResult.h => UpdateRecordTaskResult.h} (71%) delete mode 100644 rtc/src/model/CreateMAURuleRequest.cc delete mode 100644 rtc/src/model/CreateMAURuleResult.cc delete mode 100644 rtc/src/model/DeleteMAURuleRequest.cc delete mode 100644 rtc/src/model/DeleteMAURuleResult.cc delete mode 100644 rtc/src/model/DescribeMAURuleRequest.cc delete mode 100644 rtc/src/model/DescribeMAURuleResult.cc create mode 100644 rtc/src/model/DescribeRecordFilesRequest.cc create mode 100644 rtc/src/model/DescribeRecordFilesResult.cc create mode 100644 rtc/src/model/DescribeRecordTasksRequest.cc create mode 100644 rtc/src/model/DescribeRecordTasksResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelDetailRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelDetailResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelMetricsRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelMetricsResult.cc create mode 100644 rtc/src/model/DescribeRtcChannelsRequest.cc create mode 100644 rtc/src/model/DescribeRtcChannelsResult.cc create mode 100644 rtc/src/model/DescribeRtcUserEventsRequest.cc create mode 100644 rtc/src/model/DescribeRtcUserEventsResult.cc delete mode 100644 rtc/src/model/DisableMAURuleRequest.cc delete mode 100644 rtc/src/model/EnableMAURuleRequest.cc delete mode 100644 rtc/src/model/EnableMAURuleResult.cc create mode 100644 rtc/src/model/UpdateRecordTaskRequest.cc rename rtc/src/model/{DisableMAURuleResult.cc => UpdateRecordTaskResult.cc} (75%) diff --git a/CHANGELOG b/CHANGELOG index daf315773..6051d9fd3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-11-18 Version: patch +- Generated 2018-01-11 for `rtc`. + 2020-11-18 Version: patch - Supported webpage scan. diff --git a/rtc/CMakeLists.txt b/rtc/CMakeLists.txt index df0d464dd..fcaac96a8 100644 --- a/rtc/CMakeLists.txt +++ b/rtc/CMakeLists.txt @@ -27,8 +27,6 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/CreateChannelResult.h include/alibabacloud/rtc/model/CreateConferenceRequest.h include/alibabacloud/rtc/model/CreateConferenceResult.h - include/alibabacloud/rtc/model/CreateMAURuleRequest.h - include/alibabacloud/rtc/model/CreateMAURuleResult.h include/alibabacloud/rtc/model/CreateMPULayoutRequest.h include/alibabacloud/rtc/model/CreateMPULayoutResult.h include/alibabacloud/rtc/model/CreateMPURuleRequest.h @@ -39,8 +37,6 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/DeleteChannelResult.h include/alibabacloud/rtc/model/DeleteConferenceRequest.h include/alibabacloud/rtc/model/DeleteConferenceResult.h - include/alibabacloud/rtc/model/DeleteMAURuleRequest.h - include/alibabacloud/rtc/model/DeleteMAURuleResult.h include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h include/alibabacloud/rtc/model/DeleteMPULayoutResult.h include/alibabacloud/rtc/model/DeleteMPURuleRequest.h @@ -55,8 +51,6 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/DescribeChannelUsersResult.h include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h - include/alibabacloud/rtc/model/DescribeMAURuleRequest.h - include/alibabacloud/rtc/model/DescribeMAURuleResult.h include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h @@ -67,16 +61,26 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/DescribeMPURuleResult.h include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h + include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h + include/alibabacloud/rtc/model/DescribeRecordFilesResult.h + include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h + include/alibabacloud/rtc/model/DescribeRecordTasksResult.h include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h + include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h + include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h @@ -87,16 +91,14 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h + include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h + include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h include/alibabacloud/rtc/model/DescribeRtcUserListResult.h include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h include/alibabacloud/rtc/model/DescribeUserInfoInChannelResult.h - include/alibabacloud/rtc/model/DisableMAURuleRequest.h - include/alibabacloud/rtc/model/DisableMAURuleResult.h include/alibabacloud/rtc/model/DisableMPURuleRequest.h include/alibabacloud/rtc/model/DisableMPURuleResult.h - include/alibabacloud/rtc/model/EnableMAURuleRequest.h - include/alibabacloud/rtc/model/EnableMAURuleResult.h include/alibabacloud/rtc/model/EnableMPURuleRequest.h include/alibabacloud/rtc/model/EnableMPURuleResult.h include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h @@ -137,6 +139,8 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/UpdateChannelResult.h include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h include/alibabacloud/rtc/model/UpdateMPULayoutResult.h + include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h + include/alibabacloud/rtc/model/UpdateRecordTaskResult.h include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h include/alibabacloud/rtc/model/UpdateRecordTemplateResult.h ) @@ -148,8 +152,6 @@ set(rtc_src src/model/CreateChannelResult.cc src/model/CreateConferenceRequest.cc src/model/CreateConferenceResult.cc - src/model/CreateMAURuleRequest.cc - src/model/CreateMAURuleResult.cc src/model/CreateMPULayoutRequest.cc src/model/CreateMPULayoutResult.cc src/model/CreateMPURuleRequest.cc @@ -160,8 +162,6 @@ set(rtc_src src/model/DeleteChannelResult.cc src/model/DeleteConferenceRequest.cc src/model/DeleteConferenceResult.cc - src/model/DeleteMAURuleRequest.cc - src/model/DeleteMAURuleResult.cc src/model/DeleteMPULayoutRequest.cc src/model/DeleteMPULayoutResult.cc src/model/DeleteMPURuleRequest.cc @@ -176,8 +176,6 @@ set(rtc_src src/model/DescribeChannelUsersResult.cc src/model/DescribeConferenceAuthInfoRequest.cc src/model/DescribeConferenceAuthInfoResult.cc - src/model/DescribeMAURuleRequest.cc - src/model/DescribeMAURuleResult.cc src/model/DescribeMPULayoutInfoRequest.cc src/model/DescribeMPULayoutInfoResult.cc src/model/DescribeMPULayoutInfoListRequest.cc @@ -188,16 +186,26 @@ set(rtc_src src/model/DescribeMPURuleResult.cc src/model/DescribeRTCAppKeyRequest.cc src/model/DescribeRTCAppKeyResult.cc + src/model/DescribeRecordFilesRequest.cc + src/model/DescribeRecordFilesResult.cc + src/model/DescribeRecordTasksRequest.cc + src/model/DescribeRecordTasksResult.cc src/model/DescribeRecordTemplatesRequest.cc src/model/DescribeRecordTemplatesResult.cc src/model/DescribeRtcChannelCntDataRequest.cc src/model/DescribeRtcChannelCntDataResult.cc + src/model/DescribeRtcChannelDetailRequest.cc + src/model/DescribeRtcChannelDetailResult.cc src/model/DescribeRtcChannelListRequest.cc src/model/DescribeRtcChannelListResult.cc src/model/DescribeRtcChannelMetricRequest.cc src/model/DescribeRtcChannelMetricResult.cc + src/model/DescribeRtcChannelMetricsRequest.cc + src/model/DescribeRtcChannelMetricsResult.cc src/model/DescribeRtcChannelUserListRequest.cc src/model/DescribeRtcChannelUserListResult.cc + src/model/DescribeRtcChannelsRequest.cc + src/model/DescribeRtcChannelsResult.cc src/model/DescribeRtcDurationDataRequest.cc src/model/DescribeRtcDurationDataResult.cc src/model/DescribeRtcPeakChannelCntDataRequest.cc @@ -208,16 +216,14 @@ set(rtc_src src/model/DescribeRtcQualityMetricResult.cc src/model/DescribeRtcUserCntDataRequest.cc src/model/DescribeRtcUserCntDataResult.cc + src/model/DescribeRtcUserEventsRequest.cc + src/model/DescribeRtcUserEventsResult.cc src/model/DescribeRtcUserListRequest.cc src/model/DescribeRtcUserListResult.cc src/model/DescribeUserInfoInChannelRequest.cc src/model/DescribeUserInfoInChannelResult.cc - src/model/DisableMAURuleRequest.cc - src/model/DisableMAURuleResult.cc src/model/DisableMPURuleRequest.cc src/model/DisableMPURuleResult.cc - src/model/EnableMAURuleRequest.cc - src/model/EnableMAURuleResult.cc src/model/EnableMPURuleRequest.cc src/model/EnableMPURuleResult.cc src/model/GetMPUTaskStatusRequest.cc @@ -258,6 +264,8 @@ set(rtc_src src/model/UpdateChannelResult.cc src/model/UpdateMPULayoutRequest.cc src/model/UpdateMPULayoutResult.cc + src/model/UpdateRecordTaskRequest.cc + src/model/UpdateRecordTaskResult.cc src/model/UpdateRecordTemplateRequest.cc src/model/UpdateRecordTemplateResult.cc ) diff --git a/rtc/include/alibabacloud/rtc/RtcClient.h b/rtc/include/alibabacloud/rtc/RtcClient.h index 1f23c91f2..6a07106b0 100644 --- a/rtc/include/alibabacloud/rtc/RtcClient.h +++ b/rtc/include/alibabacloud/rtc/RtcClient.h @@ -28,8 +28,6 @@ #include "model/CreateChannelResult.h" #include "model/CreateConferenceRequest.h" #include "model/CreateConferenceResult.h" -#include "model/CreateMAURuleRequest.h" -#include "model/CreateMAURuleResult.h" #include "model/CreateMPULayoutRequest.h" #include "model/CreateMPULayoutResult.h" #include "model/CreateMPURuleRequest.h" @@ -40,8 +38,6 @@ #include "model/DeleteChannelResult.h" #include "model/DeleteConferenceRequest.h" #include "model/DeleteConferenceResult.h" -#include "model/DeleteMAURuleRequest.h" -#include "model/DeleteMAURuleResult.h" #include "model/DeleteMPULayoutRequest.h" #include "model/DeleteMPULayoutResult.h" #include "model/DeleteMPURuleRequest.h" @@ -56,8 +52,6 @@ #include "model/DescribeChannelUsersResult.h" #include "model/DescribeConferenceAuthInfoRequest.h" #include "model/DescribeConferenceAuthInfoResult.h" -#include "model/DescribeMAURuleRequest.h" -#include "model/DescribeMAURuleResult.h" #include "model/DescribeMPULayoutInfoRequest.h" #include "model/DescribeMPULayoutInfoResult.h" #include "model/DescribeMPULayoutInfoListRequest.h" @@ -68,16 +62,26 @@ #include "model/DescribeMPURuleResult.h" #include "model/DescribeRTCAppKeyRequest.h" #include "model/DescribeRTCAppKeyResult.h" +#include "model/DescribeRecordFilesRequest.h" +#include "model/DescribeRecordFilesResult.h" +#include "model/DescribeRecordTasksRequest.h" +#include "model/DescribeRecordTasksResult.h" #include "model/DescribeRecordTemplatesRequest.h" #include "model/DescribeRecordTemplatesResult.h" #include "model/DescribeRtcChannelCntDataRequest.h" #include "model/DescribeRtcChannelCntDataResult.h" +#include "model/DescribeRtcChannelDetailRequest.h" +#include "model/DescribeRtcChannelDetailResult.h" #include "model/DescribeRtcChannelListRequest.h" #include "model/DescribeRtcChannelListResult.h" #include "model/DescribeRtcChannelMetricRequest.h" #include "model/DescribeRtcChannelMetricResult.h" +#include "model/DescribeRtcChannelMetricsRequest.h" +#include "model/DescribeRtcChannelMetricsResult.h" #include "model/DescribeRtcChannelUserListRequest.h" #include "model/DescribeRtcChannelUserListResult.h" +#include "model/DescribeRtcChannelsRequest.h" +#include "model/DescribeRtcChannelsResult.h" #include "model/DescribeRtcDurationDataRequest.h" #include "model/DescribeRtcDurationDataResult.h" #include "model/DescribeRtcPeakChannelCntDataRequest.h" @@ -88,16 +92,14 @@ #include "model/DescribeRtcQualityMetricResult.h" #include "model/DescribeRtcUserCntDataRequest.h" #include "model/DescribeRtcUserCntDataResult.h" +#include "model/DescribeRtcUserEventsRequest.h" +#include "model/DescribeRtcUserEventsResult.h" #include "model/DescribeRtcUserListRequest.h" #include "model/DescribeRtcUserListResult.h" #include "model/DescribeUserInfoInChannelRequest.h" #include "model/DescribeUserInfoInChannelResult.h" -#include "model/DisableMAURuleRequest.h" -#include "model/DisableMAURuleResult.h" #include "model/DisableMPURuleRequest.h" #include "model/DisableMPURuleResult.h" -#include "model/EnableMAURuleRequest.h" -#include "model/EnableMAURuleResult.h" #include "model/EnableMPURuleRequest.h" #include "model/EnableMPURuleResult.h" #include "model/GetMPUTaskStatusRequest.h" @@ -138,6 +140,8 @@ #include "model/UpdateChannelResult.h" #include "model/UpdateMPULayoutRequest.h" #include "model/UpdateMPULayoutResult.h" +#include "model/UpdateRecordTaskRequest.h" +#include "model/UpdateRecordTaskResult.h" #include "model/UpdateRecordTemplateRequest.h" #include "model/UpdateRecordTemplateResult.h" @@ -158,9 +162,6 @@ namespace AlibabaCloud typedef Outcome CreateConferenceOutcome; typedef std::future CreateConferenceOutcomeCallable; typedef std::function&)> CreateConferenceAsyncHandler; - typedef Outcome CreateMAURuleOutcome; - typedef std::future CreateMAURuleOutcomeCallable; - typedef std::function&)> CreateMAURuleAsyncHandler; typedef Outcome CreateMPULayoutOutcome; typedef std::future CreateMPULayoutOutcomeCallable; typedef std::function&)> CreateMPULayoutAsyncHandler; @@ -176,9 +177,6 @@ namespace AlibabaCloud typedef Outcome DeleteConferenceOutcome; typedef std::future DeleteConferenceOutcomeCallable; typedef std::function&)> DeleteConferenceAsyncHandler; - typedef Outcome DeleteMAURuleOutcome; - typedef std::future DeleteMAURuleOutcomeCallable; - typedef std::function&)> DeleteMAURuleAsyncHandler; typedef Outcome DeleteMPULayoutOutcome; typedef std::future DeleteMPULayoutOutcomeCallable; typedef std::function&)> DeleteMPULayoutAsyncHandler; @@ -200,9 +198,6 @@ namespace AlibabaCloud typedef Outcome DescribeConferenceAuthInfoOutcome; typedef std::future DescribeConferenceAuthInfoOutcomeCallable; typedef std::function&)> DescribeConferenceAuthInfoAsyncHandler; - typedef Outcome DescribeMAURuleOutcome; - typedef std::future DescribeMAURuleOutcomeCallable; - typedef std::function&)> DescribeMAURuleAsyncHandler; typedef Outcome DescribeMPULayoutInfoOutcome; typedef std::future DescribeMPULayoutInfoOutcomeCallable; typedef std::function&)> DescribeMPULayoutInfoAsyncHandler; @@ -218,21 +213,36 @@ namespace AlibabaCloud typedef Outcome DescribeRTCAppKeyOutcome; typedef std::future DescribeRTCAppKeyOutcomeCallable; typedef std::function&)> DescribeRTCAppKeyAsyncHandler; + typedef Outcome DescribeRecordFilesOutcome; + typedef std::future DescribeRecordFilesOutcomeCallable; + typedef std::function&)> DescribeRecordFilesAsyncHandler; + typedef Outcome DescribeRecordTasksOutcome; + typedef std::future DescribeRecordTasksOutcomeCallable; + typedef std::function&)> DescribeRecordTasksAsyncHandler; typedef Outcome DescribeRecordTemplatesOutcome; typedef std::future DescribeRecordTemplatesOutcomeCallable; typedef std::function&)> DescribeRecordTemplatesAsyncHandler; typedef Outcome DescribeRtcChannelCntDataOutcome; typedef std::future DescribeRtcChannelCntDataOutcomeCallable; typedef std::function&)> DescribeRtcChannelCntDataAsyncHandler; + typedef Outcome DescribeRtcChannelDetailOutcome; + typedef std::future DescribeRtcChannelDetailOutcomeCallable; + typedef std::function&)> DescribeRtcChannelDetailAsyncHandler; typedef Outcome DescribeRtcChannelListOutcome; typedef std::future DescribeRtcChannelListOutcomeCallable; typedef std::function&)> DescribeRtcChannelListAsyncHandler; typedef Outcome DescribeRtcChannelMetricOutcome; typedef std::future DescribeRtcChannelMetricOutcomeCallable; typedef std::function&)> DescribeRtcChannelMetricAsyncHandler; + typedef Outcome DescribeRtcChannelMetricsOutcome; + typedef std::future DescribeRtcChannelMetricsOutcomeCallable; + typedef std::function&)> DescribeRtcChannelMetricsAsyncHandler; typedef Outcome DescribeRtcChannelUserListOutcome; typedef std::future DescribeRtcChannelUserListOutcomeCallable; typedef std::function&)> DescribeRtcChannelUserListAsyncHandler; + typedef Outcome DescribeRtcChannelsOutcome; + typedef std::future DescribeRtcChannelsOutcomeCallable; + typedef std::function&)> DescribeRtcChannelsAsyncHandler; typedef Outcome DescribeRtcDurationDataOutcome; typedef std::future DescribeRtcDurationDataOutcomeCallable; typedef std::function&)> DescribeRtcDurationDataAsyncHandler; @@ -248,21 +258,18 @@ namespace AlibabaCloud typedef Outcome DescribeRtcUserCntDataOutcome; typedef std::future DescribeRtcUserCntDataOutcomeCallable; typedef std::function&)> DescribeRtcUserCntDataAsyncHandler; + typedef Outcome DescribeRtcUserEventsOutcome; + typedef std::future DescribeRtcUserEventsOutcomeCallable; + typedef std::function&)> DescribeRtcUserEventsAsyncHandler; typedef Outcome DescribeRtcUserListOutcome; typedef std::future DescribeRtcUserListOutcomeCallable; typedef std::function&)> DescribeRtcUserListAsyncHandler; typedef Outcome DescribeUserInfoInChannelOutcome; typedef std::future DescribeUserInfoInChannelOutcomeCallable; typedef std::function&)> DescribeUserInfoInChannelAsyncHandler; - typedef Outcome DisableMAURuleOutcome; - typedef std::future DisableMAURuleOutcomeCallable; - typedef std::function&)> DisableMAURuleAsyncHandler; typedef Outcome DisableMPURuleOutcome; typedef std::future DisableMPURuleOutcomeCallable; typedef std::function&)> DisableMPURuleAsyncHandler; - typedef Outcome EnableMAURuleOutcome; - typedef std::future EnableMAURuleOutcomeCallable; - typedef std::function&)> EnableMAURuleAsyncHandler; typedef Outcome EnableMPURuleOutcome; typedef std::future EnableMPURuleOutcomeCallable; typedef std::function&)> EnableMPURuleAsyncHandler; @@ -323,6 +330,9 @@ namespace AlibabaCloud typedef Outcome UpdateMPULayoutOutcome; typedef std::future UpdateMPULayoutOutcomeCallable; typedef std::function&)> UpdateMPULayoutAsyncHandler; + typedef Outcome UpdateRecordTaskOutcome; + typedef std::future UpdateRecordTaskOutcomeCallable; + typedef std::function&)> UpdateRecordTaskAsyncHandler; typedef Outcome UpdateRecordTemplateOutcome; typedef std::future UpdateRecordTemplateOutcomeCallable; typedef std::function&)> UpdateRecordTemplateAsyncHandler; @@ -340,9 +350,6 @@ 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; - CreateMAURuleOutcome createMAURule(const Model::CreateMAURuleRequest &request)const; - void createMAURuleAsync(const Model::CreateMAURuleRequest& request, const CreateMAURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMAURuleOutcomeCallable createMAURuleCallable(const Model::CreateMAURuleRequest& request) const; CreateMPULayoutOutcome createMPULayout(const Model::CreateMPULayoutRequest &request)const; void createMPULayoutAsync(const Model::CreateMPULayoutRequest& request, const CreateMPULayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMPULayoutOutcomeCallable createMPULayoutCallable(const Model::CreateMPULayoutRequest& request) const; @@ -358,9 +365,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; - DeleteMAURuleOutcome deleteMAURule(const Model::DeleteMAURuleRequest &request)const; - void deleteMAURuleAsync(const Model::DeleteMAURuleRequest& request, const DeleteMAURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMAURuleOutcomeCallable deleteMAURuleCallable(const Model::DeleteMAURuleRequest& request) const; DeleteMPULayoutOutcome deleteMPULayout(const Model::DeleteMPULayoutRequest &request)const; void deleteMPULayoutAsync(const Model::DeleteMPULayoutRequest& request, const DeleteMPULayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMPULayoutOutcomeCallable deleteMPULayoutCallable(const Model::DeleteMPULayoutRequest& request) const; @@ -382,9 +386,6 @@ namespace AlibabaCloud DescribeConferenceAuthInfoOutcome describeConferenceAuthInfo(const Model::DescribeConferenceAuthInfoRequest &request)const; void describeConferenceAuthInfoAsync(const Model::DescribeConferenceAuthInfoRequest& request, const DescribeConferenceAuthInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConferenceAuthInfoOutcomeCallable describeConferenceAuthInfoCallable(const Model::DescribeConferenceAuthInfoRequest& request) const; - DescribeMAURuleOutcome describeMAURule(const Model::DescribeMAURuleRequest &request)const; - void describeMAURuleAsync(const Model::DescribeMAURuleRequest& request, const DescribeMAURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMAURuleOutcomeCallable describeMAURuleCallable(const Model::DescribeMAURuleRequest& request) const; DescribeMPULayoutInfoOutcome describeMPULayoutInfo(const Model::DescribeMPULayoutInfoRequest &request)const; void describeMPULayoutInfoAsync(const Model::DescribeMPULayoutInfoRequest& request, const DescribeMPULayoutInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMPULayoutInfoOutcomeCallable describeMPULayoutInfoCallable(const Model::DescribeMPULayoutInfoRequest& request) const; @@ -400,21 +401,36 @@ namespace AlibabaCloud DescribeRTCAppKeyOutcome describeRTCAppKey(const Model::DescribeRTCAppKeyRequest &request)const; void describeRTCAppKeyAsync(const Model::DescribeRTCAppKeyRequest& request, const DescribeRTCAppKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRTCAppKeyOutcomeCallable describeRTCAppKeyCallable(const Model::DescribeRTCAppKeyRequest& request) const; + DescribeRecordFilesOutcome describeRecordFiles(const Model::DescribeRecordFilesRequest &request)const; + void describeRecordFilesAsync(const Model::DescribeRecordFilesRequest& request, const DescribeRecordFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordFilesOutcomeCallable describeRecordFilesCallable(const Model::DescribeRecordFilesRequest& request) const; + DescribeRecordTasksOutcome describeRecordTasks(const Model::DescribeRecordTasksRequest &request)const; + void describeRecordTasksAsync(const Model::DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordTasksOutcomeCallable describeRecordTasksCallable(const Model::DescribeRecordTasksRequest& request) const; DescribeRecordTemplatesOutcome describeRecordTemplates(const Model::DescribeRecordTemplatesRequest &request)const; void describeRecordTemplatesAsync(const Model::DescribeRecordTemplatesRequest& request, const DescribeRecordTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRecordTemplatesOutcomeCallable describeRecordTemplatesCallable(const Model::DescribeRecordTemplatesRequest& request) const; DescribeRtcChannelCntDataOutcome describeRtcChannelCntData(const Model::DescribeRtcChannelCntDataRequest &request)const; void describeRtcChannelCntDataAsync(const Model::DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcChannelCntDataOutcomeCallable describeRtcChannelCntDataCallable(const Model::DescribeRtcChannelCntDataRequest& request) const; + DescribeRtcChannelDetailOutcome describeRtcChannelDetail(const Model::DescribeRtcChannelDetailRequest &request)const; + void describeRtcChannelDetailAsync(const Model::DescribeRtcChannelDetailRequest& request, const DescribeRtcChannelDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelDetailOutcomeCallable describeRtcChannelDetailCallable(const Model::DescribeRtcChannelDetailRequest& request) const; DescribeRtcChannelListOutcome describeRtcChannelList(const Model::DescribeRtcChannelListRequest &request)const; void describeRtcChannelListAsync(const Model::DescribeRtcChannelListRequest& request, const DescribeRtcChannelListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcChannelListOutcomeCallable describeRtcChannelListCallable(const Model::DescribeRtcChannelListRequest& request) const; DescribeRtcChannelMetricOutcome describeRtcChannelMetric(const Model::DescribeRtcChannelMetricRequest &request)const; void describeRtcChannelMetricAsync(const Model::DescribeRtcChannelMetricRequest& request, const DescribeRtcChannelMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcChannelMetricOutcomeCallable describeRtcChannelMetricCallable(const Model::DescribeRtcChannelMetricRequest& request) const; + DescribeRtcChannelMetricsOutcome describeRtcChannelMetrics(const Model::DescribeRtcChannelMetricsRequest &request)const; + void describeRtcChannelMetricsAsync(const Model::DescribeRtcChannelMetricsRequest& request, const DescribeRtcChannelMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelMetricsOutcomeCallable describeRtcChannelMetricsCallable(const Model::DescribeRtcChannelMetricsRequest& request) const; DescribeRtcChannelUserListOutcome describeRtcChannelUserList(const Model::DescribeRtcChannelUserListRequest &request)const; void describeRtcChannelUserListAsync(const Model::DescribeRtcChannelUserListRequest& request, const DescribeRtcChannelUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcChannelUserListOutcomeCallable describeRtcChannelUserListCallable(const Model::DescribeRtcChannelUserListRequest& request) const; + DescribeRtcChannelsOutcome describeRtcChannels(const Model::DescribeRtcChannelsRequest &request)const; + void describeRtcChannelsAsync(const Model::DescribeRtcChannelsRequest& request, const DescribeRtcChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcChannelsOutcomeCallable describeRtcChannelsCallable(const Model::DescribeRtcChannelsRequest& request) const; DescribeRtcDurationDataOutcome describeRtcDurationData(const Model::DescribeRtcDurationDataRequest &request)const; void describeRtcDurationDataAsync(const Model::DescribeRtcDurationDataRequest& request, const DescribeRtcDurationDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcDurationDataOutcomeCallable describeRtcDurationDataCallable(const Model::DescribeRtcDurationDataRequest& request) const; @@ -430,21 +446,18 @@ namespace AlibabaCloud DescribeRtcUserCntDataOutcome describeRtcUserCntData(const Model::DescribeRtcUserCntDataRequest &request)const; void describeRtcUserCntDataAsync(const Model::DescribeRtcUserCntDataRequest& request, const DescribeRtcUserCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcUserCntDataOutcomeCallable describeRtcUserCntDataCallable(const Model::DescribeRtcUserCntDataRequest& request) const; + DescribeRtcUserEventsOutcome describeRtcUserEvents(const Model::DescribeRtcUserEventsRequest &request)const; + void describeRtcUserEventsAsync(const Model::DescribeRtcUserEventsRequest& request, const DescribeRtcUserEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRtcUserEventsOutcomeCallable describeRtcUserEventsCallable(const Model::DescribeRtcUserEventsRequest& request) const; DescribeRtcUserListOutcome describeRtcUserList(const Model::DescribeRtcUserListRequest &request)const; void describeRtcUserListAsync(const Model::DescribeRtcUserListRequest& request, const DescribeRtcUserListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRtcUserListOutcomeCallable describeRtcUserListCallable(const Model::DescribeRtcUserListRequest& request) const; DescribeUserInfoInChannelOutcome describeUserInfoInChannel(const Model::DescribeUserInfoInChannelRequest &request)const; void describeUserInfoInChannelAsync(const Model::DescribeUserInfoInChannelRequest& request, const DescribeUserInfoInChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserInfoInChannelOutcomeCallable describeUserInfoInChannelCallable(const Model::DescribeUserInfoInChannelRequest& request) const; - DisableMAURuleOutcome disableMAURule(const Model::DisableMAURuleRequest &request)const; - void disableMAURuleAsync(const Model::DisableMAURuleRequest& request, const DisableMAURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableMAURuleOutcomeCallable disableMAURuleCallable(const Model::DisableMAURuleRequest& request) const; DisableMPURuleOutcome disableMPURule(const Model::DisableMPURuleRequest &request)const; void disableMPURuleAsync(const Model::DisableMPURuleRequest& request, const DisableMPURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableMPURuleOutcomeCallable disableMPURuleCallable(const Model::DisableMPURuleRequest& request) const; - EnableMAURuleOutcome enableMAURule(const Model::EnableMAURuleRequest &request)const; - void enableMAURuleAsync(const Model::EnableMAURuleRequest& request, const EnableMAURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableMAURuleOutcomeCallable enableMAURuleCallable(const Model::EnableMAURuleRequest& request) const; EnableMPURuleOutcome enableMPURule(const Model::EnableMPURuleRequest &request)const; void enableMPURuleAsync(const Model::EnableMPURuleRequest& request, const EnableMPURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableMPURuleOutcomeCallable enableMPURuleCallable(const Model::EnableMPURuleRequest& request) const; @@ -505,6 +518,9 @@ namespace AlibabaCloud UpdateMPULayoutOutcome updateMPULayout(const Model::UpdateMPULayoutRequest &request)const; void updateMPULayoutAsync(const Model::UpdateMPULayoutRequest& request, const UpdateMPULayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMPULayoutOutcomeCallable updateMPULayoutCallable(const Model::UpdateMPULayoutRequest& request) const; + UpdateRecordTaskOutcome updateRecordTask(const Model::UpdateRecordTaskRequest &request)const; + void updateRecordTaskAsync(const Model::UpdateRecordTaskRequest& request, const UpdateRecordTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRecordTaskOutcomeCallable updateRecordTaskCallable(const Model::UpdateRecordTaskRequest& request) const; UpdateRecordTemplateOutcome updateRecordTemplate(const Model::UpdateRecordTemplateRequest &request)const; void updateRecordTemplateAsync(const Model::UpdateRecordTemplateRequest& request, const UpdateRecordTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateRecordTemplateOutcomeCallable updateRecordTemplateCallable(const Model::UpdateRecordTemplateRequest& request) const; diff --git a/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h index e6c627e7f..20068ecb6 100644 --- a/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h +++ b/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h @@ -30,6 +30,28 @@ namespace AlibabaCloud { class ALIBABACLOUD_RTC_EXPORT AddRecordTemplateRequest : public RpcServiceRequest { + public: + struct Watermarks + { + std::string url; + float alpha; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; + struct Backgrounds + { + std::string url; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; public: AddRecordTemplateRequest(); @@ -49,14 +71,22 @@ namespace AlibabaCloud void setShowLog(const std::string& showLog); std::string getOssBucket()const; void setOssBucket(const std::string& ossBucket); - std::string getMnsQueue()const; - void setMnsQueue(const std::string& mnsQueue); + int getDelayStopTime()const; + void setDelayStopTime(int delayStopTime); int getFileSplitInterval()const; void setFileSplitInterval(int fileSplitInterval); + std::string getMnsQueue()const; + void setMnsQueue(const std::string& mnsQueue); + std::string getHttpCallbackUrl()const; + void setHttpCallbackUrl(const std::string& httpCallbackUrl); + std::vector getWatermarks()const; + void setWatermarks(const std::vector& watermarks); long getOwnerId()const; void setOwnerId(long ownerId); std::string getAppId()const; void setAppId(const std::string& appId); + std::vector getBackgrounds()const; + void setBackgrounds(const std::vector& backgrounds); std::string getName()const; void setName(const std::string& name); int getMediaEncode()const; @@ -70,10 +100,14 @@ namespace AlibabaCloud std::vector layoutIds_; std::string showLog_; std::string ossBucket_; - std::string mnsQueue_; + int delayStopTime_; int fileSplitInterval_; + std::string mnsQueue_; + std::string httpCallbackUrl_; + std::vector watermarks_; long ownerId_; std::string appId_; + std::vector backgrounds_; std::string name_; int mediaEncode_; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h new file mode 100644 index 000000000..c04b26c96 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRecordFilesRequest : public RpcServiceRequest + { + + public: + DescribeRecordFilesRequest(); + ~DescribeRecordFilesRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNum()const; + void setPageNum(int pageNum); + std::vector getTaskIds()const; + void setTaskIds(const std::vector& taskIds); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string startTime_; + int pageNum_; + std::vector taskIds_; + int pageSize_; + std::string showLog_; + std::string endTime_; + long ownerId_; + std::string appId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesResult.h new file mode 100644 index 000000000..9eb07b76c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRecordFilesResult : public ServiceResult + { + public: + struct RecordFile + { + std::string taskId; + std::string appId; + std::string createTime; + std::string startTime; + float duration; + std::string channelId; + std::string url; + std::string stopTime; + }; + + + DescribeRecordFilesResult(); + explicit DescribeRecordFilesResult(const std::string &payload); + ~DescribeRecordFilesResult(); + long getTotalNum()const; + long getTotalPage()const; + std::vector getRecordFiles()const; + + protected: + void parse(const std::string &payload); + private: + long totalNum_; + long totalPage_; + std::vector recordFiles_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h new file mode 100644 index 000000000..844f3f78c --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksRequest : public RpcServiceRequest + { + + public: + DescribeRecordTasksRequest(); + ~DescribeRecordTasksRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::vector getTaskIds()const; + void setTaskIds(const std::vector& taskIds); + int getPageNum()const; + void setPageNum(int pageNum); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string startTime_; + std::vector taskIds_; + int pageNum_; + int pageSize_; + std::string showLog_; + std::string endTime_; + long ownerId_; + std::string appId_; + std::string channelId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksResult.h new file mode 100644 index 000000000..260138dc5 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksResult : public ServiceResult + { + public: + struct RecordTask + { + struct UserPanesItem + { + std::string userId; + int paneId; + std::string source; + }; + int status; + std::vector userPanes; + std::string taskId; + std::string appId; + std::vector subSpecUsers; + std::string createTime; + std::string channelId; + std::string templateId; + }; + + + DescribeRecordTasksResult(); + explicit DescribeRecordTasksResult(const std::string &payload); + ~DescribeRecordTasksResult(); + std::vector getRecordTasks()const; + long getTotalNum()const; + long getTotalPage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector recordTasks_; + long totalNum_; + long totalPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteMAURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h similarity index 56% rename from rtc/include/alibabacloud/rtc/model/DeleteMAURuleRequest.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h index 997e6fb4b..6681cd183 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteMAURuleRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_ #include #include @@ -28,30 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DeleteMAURuleRequest : public RpcServiceRequest + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelDetailRequest : public RpcServiceRequest { public: - DeleteMAURuleRequest(); - ~DeleteMAURuleRequest(); + DescribeRtcChannelDetailRequest(); + ~DescribeRtcChannelDetailRequest(); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageSize()const; + void setPageSize(int pageSize); std::string getShowLog()const; void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); long getOwnerId()const; void setOwnerId(long ownerId); + int getPageNo()const; + void setPageNo(int pageNo); std::string getAppId()const; void setAppId(const std::string& appId); - long getRuleId()const; - void setRuleId(long ruleId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: + std::string startTime_; + int pageSize_; std::string showLog_; + std::string endTime_; long ownerId_; + int pageNo_; std::string appId_; - long ruleId_; + std::string channelId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h new file mode 100644 index 000000000..057499872 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelDetailResult : public ServiceResult + { + public: + struct Detail + { + std::string uid; + std::string deviceType; + std::string leaveTime; + std::string platform; + std::string oS; + std::string sdkVersion; + std::string joinTime; + std::string sid; + }; + + + DescribeRtcChannelDetailResult(); + explicit DescribeRtcChannelDetailResult(const std::string &payload); + ~DescribeRtcChannelDetailResult(); + long getPageSize()const; + long getTotalCnt()const; + std::vector getChannelInfo()const; + long getPageNo()const; + std::string getChannelId()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long totalCnt_; + std::vector channelInfo_; + long pageNo_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DisableMAURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h similarity index 54% rename from rtc/include/alibabacloud/rtc/model/DisableMAURuleRequest.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h index a59e3f4b2..1f60480f5 100644 --- a/rtc/include/alibabacloud/rtc/model/DisableMAURuleRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_ #include #include @@ -28,30 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DisableMAURuleRequest : public RpcServiceRequest + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsRequest : public RpcServiceRequest { public: - DisableMAURuleRequest(); - ~DisableMAURuleRequest(); + DescribeRtcChannelMetricsRequest(); + ~DescribeRtcChannelMetricsRequest(); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getSubUid()const; + void setSubUid(const std::string& subUid); + std::string getPubUid()const; + void setPubUid(const std::string& pubUid); std::string getShowLog()const; void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); long getOwnerId()const; void setOwnerId(long ownerId); std::string getAppId()const; void setAppId(const std::string& appId); - long getRuleId()const; - void setRuleId(long ruleId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: + std::string startTime_; + std::string subUid_; + std::string pubUid_; std::string showLog_; + std::string endTime_; long ownerId_; std::string appId_; - long ruleId_; + std::string channelId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMAURuleResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h similarity index 60% rename from rtc/include/alibabacloud/rtc/model/DescribeMAURuleResult.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h index 5ff1c016d..3c5d07b93 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMAURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_ #include #include @@ -29,32 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsResult : public ServiceResult { public: - struct Rule + struct Metric { - std::string channelPrefix; - int isEnable; - std::string callBack; - long ruleId; - std::string useridPrefix; - long templateId; + std::string uid; + std::string mid; + std::vector kVs; }; - DescribeMAURuleResult(); - explicit DescribeMAURuleResult(const std::string &payload); - ~DescribeMAURuleResult(); - std::vector getRules()const; + DescribeRtcChannelMetricsResult(); + explicit DescribeRtcChannelMetricsResult(const std::string &payload); + ~DescribeRtcChannelMetricsResult(); + std::vector getMetrics()const; protected: void parse(const std::string &payload); private: - std::vector rules_; + std::vector metrics_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMAURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h similarity index 57% rename from rtc/include/alibabacloud/rtc/model/DescribeMAURuleRequest.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h index 2ca876700..e4caebc95 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMAURuleRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_ #include #include @@ -28,27 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleRequest : public RpcServiceRequest + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsRequest : public RpcServiceRequest { public: - DescribeMAURuleRequest(); - ~DescribeMAURuleRequest(); + DescribeRtcChannelsRequest(); + ~DescribeRtcChannelsRequest(); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageSize()const; + void setPageSize(int pageSize); std::string getShowLog()const; void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); long getOwnerId()const; void setOwnerId(long ownerId); + int getPageNo()const; + void setPageNo(int pageNo); std::string getAppId()const; void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: + std::string startTime_; + int pageSize_; std::string showLog_; + std::string endTime_; long ownerId_; + int pageNo_; std::string appId_; + std::string channelId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteMAURuleResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h similarity index 55% rename from rtc/include/alibabacloud/rtc/model/DeleteMAURuleResult.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h index f8b96f55b..30e7a0690 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteMAURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_ #include #include @@ -29,21 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DeleteMAURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsResult : public ServiceResult { public: + struct Channel + { + bool finished; + std::string endTime; + std::string startTime; + std::string channelId; + }; - DeleteMAURuleResult(); - explicit DeleteMAURuleResult(const std::string &payload); - ~DeleteMAURuleResult(); + DescribeRtcChannelsResult(); + explicit DescribeRtcChannelsResult(const std::string &payload); + ~DescribeRtcChannelsResult(); + long getPageSize()const; + long getTotalCnt()const; + long getPageNo()const; + std::vector getChannels()const; protected: void parse(const std::string &payload); private: + long pageSize_; + long totalCnt_; + long pageNo_; + std::vector channels_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateMAURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h similarity index 58% rename from rtc/include/alibabacloud/rtc/model/CreateMAURuleRequest.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h index e7c7bdeb1..2ce538dcb 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateMAURuleRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_ #include #include @@ -28,39 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT CreateMAURuleRequest : public RpcServiceRequest + class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsRequest : public RpcServiceRequest { public: - CreateMAURuleRequest(); - ~CreateMAURuleRequest(); + DescribeRtcUserEventsRequest(); + ~DescribeRtcUserEventsRequest(); - std::string getUseridPrefix()const; - void setUseridPrefix(const std::string& useridPrefix); - std::string getChannelPrefix()const; - void setChannelPrefix(const std::string& channelPrefix); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getUid()const; + void setUid(const std::string& uid); std::string getShowLog()const; void setShowLog(const std::string& showLog); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); long getOwnerId()const; void setOwnerId(long ownerId); - long getMauTemplateId()const; - void setMauTemplateId(long mauTemplateId); std::string getAppId()const; void setAppId(const std::string& appId); - std::string getCallBack()const; - void setCallBack(const std::string& callBack); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); private: - std::string useridPrefix_; - std::string channelPrefix_; + std::string startTime_; + std::string uid_; std::string showLog_; + std::string endTime_; long ownerId_; - long mauTemplateId_; std::string appId_; - std::string callBack_; + std::string channelId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateMAURuleResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h similarity index 61% rename from rtc/include/alibabacloud/rtc/model/CreateMAURuleResult.h rename to rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h index 727dc6239..046c3ee1c 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateMAURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_ #include #include @@ -29,23 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT CreateMAURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsResult : public ServiceResult { public: + struct Event + { + std::string category; + long eventTime; + std::string eventId; + }; - CreateMAURuleResult(); - explicit CreateMAURuleResult(const std::string &payload); - ~CreateMAURuleResult(); - long getRuleId()const; + DescribeRtcUserEventsResult(); + explicit DescribeRtcUserEventsResult(const std::string &payload); + ~DescribeRtcUserEventsResult(); + std::vector getEvents()const; protected: void parse(const std::string &payload); private: - long ruleId_; + std::vector events_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/EnableMAURuleRequest.h b/rtc/include/alibabacloud/rtc/model/EnableMAURuleRequest.h deleted file mode 100644 index d42cc8d47..000000000 --- a/rtc/include/alibabacloud/rtc/model/EnableMAURuleRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR 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_ENABLEMAURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT EnableMAURuleRequest : public RpcServiceRequest - { - - public: - EnableMAURuleRequest(); - ~EnableMAURuleRequest(); - - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAppId()const; - void setAppId(const std::string& appId); - long getRuleId()const; - void setRuleId(long ruleId); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - long ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/EnableMAURuleResult.h b/rtc/include/alibabacloud/rtc/model/EnableMAURuleResult.h deleted file mode 100644 index e1bb557fa..000000000 --- a/rtc/include/alibabacloud/rtc/model/EnableMAURuleResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR 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_ENABLEMAURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT EnableMAURuleResult : public ServiceResult - { - public: - - - EnableMAURuleResult(); - explicit EnableMAURuleResult(const std::string &payload); - ~EnableMAURuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h index 9c2400e70..fddb7c2a7 100644 --- a/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h @@ -36,6 +36,28 @@ namespace AlibabaCloud int paneId; std::string userId; std::string sourceType; + struct Images + { + std::string url; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; + std::vector images; + struct Texts + { + std::string text; + float x; + float y; + int fontType; + int fontSize; + int fontColor; + int zOrder; + }; + std::vector texts; }; public: diff --git a/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h new file mode 100644 index 000000000..a257938eb --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_UPDATERECORDTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT UpdateRecordTaskRequest : public RpcServiceRequest + { + public: + struct UserPanes + { + int paneId; + std::string userId; + std::string sourceType; + struct Images + { + std::string url; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; + std::vector images; + struct Texts + { + std::string text; + float x; + float y; + int fontType; + int fontSize; + int fontColor; + int zOrder; + }; + std::vector texts; + }; + + public: + UpdateRecordTaskRequest(); + ~UpdateRecordTaskRequest(); + + std::vector getUserPanes()const; + void setUserPanes(const std::vector& userPanes); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); + std::vector getSubSpecUsers()const; + void setSubSpecUsers(const std::vector& subSpecUsers); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::vector userPanes_; + std::string taskId_; + std::string showLog_; + long ownerId_; + std::string templateId_; + std::vector subSpecUsers_; + std::string appId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DisableMAURuleResult.h b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskResult.h similarity index 71% rename from rtc/include/alibabacloud/rtc/model/DisableMAURuleResult.h rename to rtc/include/alibabacloud/rtc/model/UpdateRecordTaskResult.h index 7a628fcda..f07187060 100644 --- a/rtc/include/alibabacloud/rtc/model/DisableMAURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DisableMAURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT UpdateRecordTaskResult : public ServiceResult { public: - DisableMAURuleResult(); - explicit DisableMAURuleResult(const std::string &payload); - ~DisableMAURuleResult(); + UpdateRecordTaskResult(); + explicit UpdateRecordTaskResult(const std::string &payload); + ~UpdateRecordTaskResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h index 570bc65e5..79dfd72dc 100644 --- a/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h @@ -30,6 +30,28 @@ namespace AlibabaCloud { class ALIBABACLOUD_RTC_EXPORT UpdateRecordTemplateRequest : public RpcServiceRequest { + public: + struct Watermarks + { + std::string url; + float alpha; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; + struct Backgrounds + { + std::string url; + int display; + float x; + float y; + float width; + float height; + int zOrder; + }; public: UpdateRecordTemplateRequest(); @@ -53,12 +75,18 @@ namespace AlibabaCloud void setMnsQueue(const std::string& mnsQueue); int getFileSplitInterval()const; void setFileSplitInterval(int fileSplitInterval); + std::string getHttpCallbackUrl()const; + void setHttpCallbackUrl(const std::string& httpCallbackUrl); + std::vector getWatermarks()const; + void setWatermarks(const std::vector& watermarks); long getOwnerId()const; void setOwnerId(long ownerId); std::string getTemplateId()const; void setTemplateId(const std::string& templateId); std::string getAppId()const; void setAppId(const std::string& appId); + std::vector getBackgrounds()const; + void setBackgrounds(const std::vector& backgrounds); std::string getName()const; void setName(const std::string& name); int getMediaEncode()const; @@ -74,9 +102,12 @@ namespace AlibabaCloud std::string ossBucket_; std::string mnsQueue_; int fileSplitInterval_; + std::string httpCallbackUrl_; + std::vector watermarks_; long ownerId_; std::string templateId_; std::string appId_; + std::vector backgrounds_; std::string name_; int mediaEncode_; diff --git a/rtc/src/RtcClient.cc b/rtc/src/RtcClient.cc index 424541c85..74f1be501 100644 --- a/rtc/src/RtcClient.cc +++ b/rtc/src/RtcClient.cc @@ -159,42 +159,6 @@ RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(c return task->get_future(); } -RtcClient::CreateMAURuleOutcome RtcClient::createMAURule(const CreateMAURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMAURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMAURuleOutcome(CreateMAURuleResult(outcome.result())); - else - return CreateMAURuleOutcome(outcome.error()); -} - -void RtcClient::createMAURuleAsync(const CreateMAURuleRequest& request, const CreateMAURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMAURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::CreateMAURuleOutcomeCallable RtcClient::createMAURuleCallable(const CreateMAURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMAURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::CreateMPULayoutOutcome RtcClient::createMPULayout(const CreateMPULayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,42 +339,6 @@ RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(c return task->get_future(); } -RtcClient::DeleteMAURuleOutcome RtcClient::deleteMAURule(const DeleteMAURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMAURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMAURuleOutcome(DeleteMAURuleResult(outcome.result())); - else - return DeleteMAURuleOutcome(outcome.error()); -} - -void RtcClient::deleteMAURuleAsync(const DeleteMAURuleRequest& request, const DeleteMAURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMAURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DeleteMAURuleOutcomeCallable RtcClient::deleteMAURuleCallable(const DeleteMAURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMAURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DeleteMPULayoutOutcome RtcClient::deleteMPULayout(const DeleteMPULayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,42 +591,6 @@ RtcClient::DescribeConferenceAuthInfoOutcomeCallable RtcClient::describeConferen return task->get_future(); } -RtcClient::DescribeMAURuleOutcome RtcClient::describeMAURule(const DescribeMAURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMAURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMAURuleOutcome(DescribeMAURuleResult(outcome.result())); - else - return DescribeMAURuleOutcome(outcome.error()); -} - -void RtcClient::describeMAURuleAsync(const DescribeMAURuleRequest& request, const DescribeMAURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMAURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeMAURuleOutcomeCallable RtcClient::describeMAURuleCallable(const DescribeMAURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMAURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeMPULayoutInfoOutcome RtcClient::describeMPULayoutInfo(const DescribeMPULayoutInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +771,78 @@ RtcClient::DescribeRTCAppKeyOutcomeCallable RtcClient::describeRTCAppKeyCallable return task->get_future(); } +RtcClient::DescribeRecordFilesOutcome RtcClient::describeRecordFiles(const DescribeRecordFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordFilesOutcome(DescribeRecordFilesResult(outcome.result())); + else + return DescribeRecordFilesOutcome(outcome.error()); +} + +void RtcClient::describeRecordFilesAsync(const DescribeRecordFilesRequest& request, const DescribeRecordFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRecordFilesOutcomeCallable RtcClient::describeRecordFilesCallable(const DescribeRecordFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RtcClient::DescribeRecordTasksOutcome RtcClient::describeRecordTasks(const DescribeRecordTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordTasksOutcome(DescribeRecordTasksResult(outcome.result())); + else + return DescribeRecordTasksOutcome(outcome.error()); +} + +void RtcClient::describeRecordTasksAsync(const DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRecordTasksOutcomeCallable RtcClient::describeRecordTasksCallable(const DescribeRecordTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRecordTemplatesOutcome RtcClient::describeRecordTemplates(const DescribeRecordTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +915,42 @@ RtcClient::DescribeRtcChannelCntDataOutcomeCallable RtcClient::describeRtcChanne return task->get_future(); } +RtcClient::DescribeRtcChannelDetailOutcome RtcClient::describeRtcChannelDetail(const DescribeRtcChannelDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelDetailOutcome(DescribeRtcChannelDetailResult(outcome.result())); + else + return DescribeRtcChannelDetailOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelDetailAsync(const DescribeRtcChannelDetailRequest& request, const DescribeRtcChannelDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelDetailOutcomeCallable RtcClient::describeRtcChannelDetailCallable(const DescribeRtcChannelDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRtcChannelListOutcome RtcClient::describeRtcChannelList(const DescribeRtcChannelListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1023,42 @@ RtcClient::DescribeRtcChannelMetricOutcomeCallable RtcClient::describeRtcChannel return task->get_future(); } +RtcClient::DescribeRtcChannelMetricsOutcome RtcClient::describeRtcChannelMetrics(const DescribeRtcChannelMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelMetricsOutcome(DescribeRtcChannelMetricsResult(outcome.result())); + else + return DescribeRtcChannelMetricsOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelMetricsAsync(const DescribeRtcChannelMetricsRequest& request, const DescribeRtcChannelMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannelMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelMetricsOutcomeCallable RtcClient::describeRtcChannelMetricsCallable(const DescribeRtcChannelMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannelMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRtcChannelUserListOutcome RtcClient::describeRtcChannelUserList(const DescribeRtcChannelUserListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1095,42 @@ RtcClient::DescribeRtcChannelUserListOutcomeCallable RtcClient::describeRtcChann return task->get_future(); } +RtcClient::DescribeRtcChannelsOutcome RtcClient::describeRtcChannels(const DescribeRtcChannelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcChannelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcChannelsOutcome(DescribeRtcChannelsResult(outcome.result())); + else + return DescribeRtcChannelsOutcome(outcome.error()); +} + +void RtcClient::describeRtcChannelsAsync(const DescribeRtcChannelsRequest& request, const DescribeRtcChannelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcChannels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcChannelsOutcomeCallable RtcClient::describeRtcChannelsCallable(const DescribeRtcChannelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcChannels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRtcDurationDataOutcome RtcClient::describeRtcDurationData(const DescribeRtcDurationDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1311,42 @@ RtcClient::DescribeRtcUserCntDataOutcomeCallable RtcClient::describeRtcUserCntDa return task->get_future(); } +RtcClient::DescribeRtcUserEventsOutcome RtcClient::describeRtcUserEvents(const DescribeRtcUserEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRtcUserEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRtcUserEventsOutcome(DescribeRtcUserEventsResult(outcome.result())); + else + return DescribeRtcUserEventsOutcome(outcome.error()); +} + +void RtcClient::describeRtcUserEventsAsync(const DescribeRtcUserEventsRequest& request, const DescribeRtcUserEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRtcUserEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::DescribeRtcUserEventsOutcomeCallable RtcClient::describeRtcUserEventsCallable(const DescribeRtcUserEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRtcUserEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::DescribeRtcUserListOutcome RtcClient::describeRtcUserList(const DescribeRtcUserListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,42 +1419,6 @@ RtcClient::DescribeUserInfoInChannelOutcomeCallable RtcClient::describeUserInfoI return task->get_future(); } -RtcClient::DisableMAURuleOutcome RtcClient::disableMAURule(const DisableMAURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisableMAURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisableMAURuleOutcome(DisableMAURuleResult(outcome.result())); - else - return DisableMAURuleOutcome(outcome.error()); -} - -void RtcClient::disableMAURuleAsync(const DisableMAURuleRequest& request, const DisableMAURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disableMAURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DisableMAURuleOutcomeCallable RtcClient::disableMAURuleCallable(const DisableMAURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disableMAURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DisableMPURuleOutcome RtcClient::disableMPURule(const DisableMPURuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,42 +1455,6 @@ RtcClient::DisableMPURuleOutcomeCallable RtcClient::disableMPURuleCallable(const return task->get_future(); } -RtcClient::EnableMAURuleOutcome RtcClient::enableMAURule(const EnableMAURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EnableMAURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EnableMAURuleOutcome(EnableMAURuleResult(outcome.result())); - else - return EnableMAURuleOutcome(outcome.error()); -} - -void RtcClient::enableMAURuleAsync(const EnableMAURuleRequest& request, const EnableMAURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, enableMAURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::EnableMAURuleOutcomeCallable RtcClient::enableMAURuleCallable(const EnableMAURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->enableMAURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::EnableMPURuleOutcome RtcClient::enableMPURule(const EnableMPURuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2175,42 @@ RtcClient::UpdateMPULayoutOutcomeCallable RtcClient::updateMPULayoutCallable(con return task->get_future(); } +RtcClient::UpdateRecordTaskOutcome RtcClient::updateRecordTask(const UpdateRecordTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRecordTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRecordTaskOutcome(UpdateRecordTaskResult(outcome.result())); + else + return UpdateRecordTaskOutcome(outcome.error()); +} + +void RtcClient::updateRecordTaskAsync(const UpdateRecordTaskRequest& request, const UpdateRecordTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRecordTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RtcClient::UpdateRecordTaskOutcomeCallable RtcClient::updateRecordTaskCallable(const UpdateRecordTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRecordTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + RtcClient::UpdateRecordTemplateOutcome RtcClient::updateRecordTemplate(const UpdateRecordTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/rtc/src/model/AddRecordTemplateRequest.cc b/rtc/src/model/AddRecordTemplateRequest.cc index 94402ecc6..b832f1bef 100644 --- a/rtc/src/model/AddRecordTemplateRequest.cc +++ b/rtc/src/model/AddRecordTemplateRequest.cc @@ -108,15 +108,15 @@ void AddRecordTemplateRequest::setOssBucket(const std::string& ossBucket) setParameter("OssBucket", ossBucket); } -std::string AddRecordTemplateRequest::getMnsQueue()const +int AddRecordTemplateRequest::getDelayStopTime()const { - return mnsQueue_; + return delayStopTime_; } -void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue) +void AddRecordTemplateRequest::setDelayStopTime(int delayStopTime) { - mnsQueue_ = mnsQueue; - setParameter("MnsQueue", mnsQueue); + delayStopTime_ = delayStopTime; + setParameter("DelayStopTime", std::to_string(delayStopTime)); } int AddRecordTemplateRequest::getFileSplitInterval()const @@ -130,6 +130,50 @@ void AddRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) setParameter("FileSplitInterval", std::to_string(fileSplitInterval)); } +std::string AddRecordTemplateRequest::getMnsQueue()const +{ + return mnsQueue_; +} + +void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue) +{ + mnsQueue_ = mnsQueue; + setParameter("MnsQueue", mnsQueue); +} + +std::string AddRecordTemplateRequest::getHttpCallbackUrl()const +{ + return httpCallbackUrl_; +} + +void AddRecordTemplateRequest::setHttpCallbackUrl(const std::string& httpCallbackUrl) +{ + httpCallbackUrl_ = httpCallbackUrl; + setParameter("HttpCallbackUrl", httpCallbackUrl); +} + +std::vector AddRecordTemplateRequest::getWatermarks()const +{ + return watermarks_; +} + +void AddRecordTemplateRequest::setWatermarks(const std::vector& watermarks) +{ + watermarks_ = watermarks; + for(int dep1 = 0; dep1!= watermarks.size(); dep1++) { + auto watermarksObj = watermarks.at(dep1); + std::string watermarksObjStr = "Watermarks." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + } +} + long AddRecordTemplateRequest::getOwnerId()const { return ownerId_; @@ -152,6 +196,27 @@ void AddRecordTemplateRequest::setAppId(const std::string& appId) setParameter("AppId", appId); } +std::vector AddRecordTemplateRequest::getBackgrounds()const +{ + return backgrounds_; +} + +void AddRecordTemplateRequest::setBackgrounds(const std::vector& backgrounds) +{ + backgrounds_ = backgrounds; + for(int dep1 = 0; dep1!= backgrounds.size(); dep1++) { + auto backgroundsObj = backgrounds.at(dep1); + std::string backgroundsObjStr = "Backgrounds." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + } +} + std::string AddRecordTemplateRequest::getName()const { return name_; diff --git a/rtc/src/model/CreateMAURuleRequest.cc b/rtc/src/model/CreateMAURuleRequest.cc deleted file mode 100644 index 397dac130..000000000 --- a/rtc/src/model/CreateMAURuleRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::CreateMAURuleRequest; - -CreateMAURuleRequest::CreateMAURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateMAURule") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMAURuleRequest::~CreateMAURuleRequest() -{} - -std::string CreateMAURuleRequest::getUseridPrefix()const -{ - return useridPrefix_; -} - -void CreateMAURuleRequest::setUseridPrefix(const std::string& useridPrefix) -{ - useridPrefix_ = useridPrefix; - setParameter("UseridPrefix", useridPrefix); -} - -std::string CreateMAURuleRequest::getChannelPrefix()const -{ - return channelPrefix_; -} - -void CreateMAURuleRequest::setChannelPrefix(const std::string& channelPrefix) -{ - channelPrefix_ = channelPrefix; - setParameter("ChannelPrefix", channelPrefix); -} - -std::string CreateMAURuleRequest::getShowLog()const -{ - return showLog_; -} - -void CreateMAURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long CreateMAURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateMAURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -long CreateMAURuleRequest::getMauTemplateId()const -{ - return mauTemplateId_; -} - -void CreateMAURuleRequest::setMauTemplateId(long mauTemplateId) -{ - mauTemplateId_ = mauTemplateId; - setParameter("MauTemplateId", std::to_string(mauTemplateId)); -} - -std::string CreateMAURuleRequest::getAppId()const -{ - return appId_; -} - -void CreateMAURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string CreateMAURuleRequest::getCallBack()const -{ - return callBack_; -} - -void CreateMAURuleRequest::setCallBack(const std::string& callBack) -{ - callBack_ = callBack; - setParameter("CallBack", callBack); -} - diff --git a/rtc/src/model/CreateMAURuleResult.cc b/rtc/src/model/CreateMAURuleResult.cc deleted file mode 100644 index 40dd50ddc..000000000 --- a/rtc/src/model/CreateMAURuleResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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; - -CreateMAURuleResult::CreateMAURuleResult() : - ServiceResult() -{} - -CreateMAURuleResult::CreateMAURuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMAURuleResult::~CreateMAURuleResult() -{} - -void CreateMAURuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["RuleId"].isNull()) - ruleId_ = std::stol(value["RuleId"].asString()); - -} - -long CreateMAURuleResult::getRuleId()const -{ - return ruleId_; -} - diff --git a/rtc/src/model/DeleteMAURuleRequest.cc b/rtc/src/model/DeleteMAURuleRequest.cc deleted file mode 100644 index e165cf282..000000000 --- a/rtc/src/model/DeleteMAURuleRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::DeleteMAURuleRequest; - -DeleteMAURuleRequest::DeleteMAURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteMAURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMAURuleRequest::~DeleteMAURuleRequest() -{} - -std::string DeleteMAURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteMAURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DeleteMAURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteMAURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteMAURuleRequest::getAppId()const -{ - return appId_; -} - -void DeleteMAURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long DeleteMAURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void DeleteMAURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/DeleteMAURuleResult.cc b/rtc/src/model/DeleteMAURuleResult.cc deleted file mode 100644 index 082e4ee2d..000000000 --- a/rtc/src/model/DeleteMAURuleResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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; - -DeleteMAURuleResult::DeleteMAURuleResult() : - ServiceResult() -{} - -DeleteMAURuleResult::DeleteMAURuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMAURuleResult::~DeleteMAURuleResult() -{} - -void DeleteMAURuleResult::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/DescribeMAURuleRequest.cc b/rtc/src/model/DescribeMAURuleRequest.cc deleted file mode 100644 index b0ef39750..000000000 --- a/rtc/src/model/DescribeMAURuleRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::DescribeMAURuleRequest; - -DescribeMAURuleRequest::DescribeMAURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeMAURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMAURuleRequest::~DescribeMAURuleRequest() -{} - -std::string DescribeMAURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeMAURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeMAURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeMAURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeMAURuleRequest::getAppId()const -{ - return appId_; -} - -void DescribeMAURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeMAURuleResult.cc b/rtc/src/model/DescribeMAURuleResult.cc deleted file mode 100644 index 8f8a68fc9..000000000 --- a/rtc/src/model/DescribeMAURuleResult.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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; - -DescribeMAURuleResult::DescribeMAURuleResult() : - ServiceResult() -{} - -DescribeMAURuleResult::DescribeMAURuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMAURuleResult::~DescribeMAURuleResult() -{} - -void DescribeMAURuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allRulesNode = value["Rules"]["Rule"]; - for (auto valueRulesRule : allRulesNode) - { - Rule rulesObject; - if(!valueRulesRule["RuleId"].isNull()) - rulesObject.ruleId = std::stol(valueRulesRule["RuleId"].asString()); - if(!valueRulesRule["ChannelPrefix"].isNull()) - rulesObject.channelPrefix = valueRulesRule["ChannelPrefix"].asString(); - if(!valueRulesRule["UseridPrefix"].isNull()) - rulesObject.useridPrefix = valueRulesRule["UseridPrefix"].asString(); - if(!valueRulesRule["TemplateId"].isNull()) - rulesObject.templateId = std::stol(valueRulesRule["TemplateId"].asString()); - if(!valueRulesRule["CallBack"].isNull()) - rulesObject.callBack = valueRulesRule["CallBack"].asString(); - if(!valueRulesRule["IsEnable"].isNull()) - rulesObject.isEnable = std::stoi(valueRulesRule["IsEnable"].asString()); - rules_.push_back(rulesObject); - } - -} - -std::vector DescribeMAURuleResult::getRules()const -{ - return rules_; -} - diff --git a/rtc/src/model/DescribeMPULayoutInfoListResult.cc b/rtc/src/model/DescribeMPULayoutInfoListResult.cc index e2829d5d1..7997ee3a0 100644 --- a/rtc/src/model/DescribeMPULayoutInfoListResult.cc +++ b/rtc/src/model/DescribeMPULayoutInfoListResult.cc @@ -49,24 +49,24 @@ void DescribeMPULayoutInfoListResult::parse(const std::string &payload) layoutsObject.name = valueLayoutsLayout["Name"].asString(); if(!valueLayoutsLayout["AudioMixCount"].isNull()) layoutsObject.audioMixCount = std::stoi(valueLayoutsLayout["AudioMixCount"].asString()); - auto allPanesNode = allLayoutsNode["Panes"]["PanesItem"]; - for (auto allLayoutsNodePanesPanesItem : allPanesNode) + auto allPanesNode = valueLayoutsLayout["Panes"]["PanesItem"]; + for (auto valueLayoutsLayoutPanesPanesItem : allPanesNode) { Layout::PanesItem panesObject; - if(!allLayoutsNodePanesPanesItem["PaneId"].isNull()) - panesObject.paneId = std::stoi(allLayoutsNodePanesPanesItem["PaneId"].asString()); - if(!allLayoutsNodePanesPanesItem["MajorPane"].isNull()) - panesObject.majorPane = std::stoi(allLayoutsNodePanesPanesItem["MajorPane"].asString()); - if(!allLayoutsNodePanesPanesItem["X"].isNull()) - panesObject.x = std::stof(allLayoutsNodePanesPanesItem["X"].asString()); - if(!allLayoutsNodePanesPanesItem["Y"].isNull()) - panesObject.y = std::stof(allLayoutsNodePanesPanesItem["Y"].asString()); - if(!allLayoutsNodePanesPanesItem["Width"].isNull()) - panesObject.width = std::stof(allLayoutsNodePanesPanesItem["Width"].asString()); - if(!allLayoutsNodePanesPanesItem["Height"].isNull()) - panesObject.height = std::stof(allLayoutsNodePanesPanesItem["Height"].asString()); - if(!allLayoutsNodePanesPanesItem["ZOrder"].isNull()) - panesObject.zOrder = std::stoi(allLayoutsNodePanesPanesItem["ZOrder"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["PaneId"].isNull()) + panesObject.paneId = std::stoi(valueLayoutsLayoutPanesPanesItem["PaneId"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["MajorPane"].isNull()) + panesObject.majorPane = std::stoi(valueLayoutsLayoutPanesPanesItem["MajorPane"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["X"].isNull()) + panesObject.x = std::stof(valueLayoutsLayoutPanesPanesItem["X"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["Y"].isNull()) + panesObject.y = std::stof(valueLayoutsLayoutPanesPanesItem["Y"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["Width"].isNull()) + panesObject.width = std::stof(valueLayoutsLayoutPanesPanesItem["Width"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["Height"].isNull()) + panesObject.height = std::stof(valueLayoutsLayoutPanesPanesItem["Height"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["ZOrder"].isNull()) + panesObject.zOrder = std::stoi(valueLayoutsLayoutPanesPanesItem["ZOrder"].asString()); layoutsObject.panes.push_back(panesObject); } layouts_.push_back(layoutsObject); diff --git a/rtc/src/model/DescribeRecordFilesRequest.cc b/rtc/src/model/DescribeRecordFilesRequest.cc new file mode 100644 index 000000000..5126940e4 --- /dev/null +++ b/rtc/src/model/DescribeRecordFilesRequest.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::DescribeRecordFilesRequest; + +DescribeRecordFilesRequest::DescribeRecordFilesRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordFiles") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRecordFilesRequest::~DescribeRecordFilesRequest() +{} + +std::string DescribeRecordFilesRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRecordFilesRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int DescribeRecordFilesRequest::getPageNum()const +{ + return pageNum_; +} + +void DescribeRecordFilesRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +std::vector DescribeRecordFilesRequest::getTaskIds()const +{ + return taskIds_; +} + +void DescribeRecordFilesRequest::setTaskIds(const std::vector& taskIds) +{ + taskIds_ = taskIds; + for(int dep1 = 0; dep1!= taskIds.size(); dep1++) { + setParameter("TaskIds."+ std::to_string(dep1), taskIds.at(dep1)); + } +} + +int DescribeRecordFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRecordFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRecordFilesRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRecordFilesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRecordFilesRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRecordFilesRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRecordFilesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRecordFilesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRecordFilesRequest::getAppId()const +{ + return appId_; +} + +void DescribeRecordFilesRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRecordFilesRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRecordFilesRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeRecordFilesResult.cc b/rtc/src/model/DescribeRecordFilesResult.cc new file mode 100644 index 000000000..6d58d4f1a --- /dev/null +++ b/rtc/src/model/DescribeRecordFilesResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRecordFilesResult::DescribeRecordFilesResult() : + ServiceResult() +{} + +DescribeRecordFilesResult::DescribeRecordFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecordFilesResult::~DescribeRecordFilesResult() +{} + +void DescribeRecordFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordFilesNode = value["RecordFiles"]["RecordFile"]; + for (auto valueRecordFilesRecordFile : allRecordFilesNode) + { + RecordFile recordFilesObject; + if(!valueRecordFilesRecordFile["CreateTime"].isNull()) + recordFilesObject.createTime = valueRecordFilesRecordFile["CreateTime"].asString(); + if(!valueRecordFilesRecordFile["AppId"].isNull()) + recordFilesObject.appId = valueRecordFilesRecordFile["AppId"].asString(); + if(!valueRecordFilesRecordFile["ChannelId"].isNull()) + recordFilesObject.channelId = valueRecordFilesRecordFile["ChannelId"].asString(); + if(!valueRecordFilesRecordFile["TaskId"].isNull()) + recordFilesObject.taskId = valueRecordFilesRecordFile["TaskId"].asString(); + if(!valueRecordFilesRecordFile["StartTime"].isNull()) + recordFilesObject.startTime = valueRecordFilesRecordFile["StartTime"].asString(); + if(!valueRecordFilesRecordFile["StopTime"].isNull()) + recordFilesObject.stopTime = valueRecordFilesRecordFile["StopTime"].asString(); + if(!valueRecordFilesRecordFile["Url"].isNull()) + recordFilesObject.url = valueRecordFilesRecordFile["Url"].asString(); + if(!valueRecordFilesRecordFile["Duration"].isNull()) + recordFilesObject.duration = std::stof(valueRecordFilesRecordFile["Duration"].asString()); + recordFiles_.push_back(recordFilesObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stol(value["TotalPage"].asString()); + +} + +long DescribeRecordFilesResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeRecordFilesResult::getTotalPage()const +{ + return totalPage_; +} + +std::vector DescribeRecordFilesResult::getRecordFiles()const +{ + return recordFiles_; +} + diff --git a/rtc/src/model/DescribeRecordTasksRequest.cc b/rtc/src/model/DescribeRecordTasksRequest.cc new file mode 100644 index 000000000..ff64f2c35 --- /dev/null +++ b/rtc/src/model/DescribeRecordTasksRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::DescribeRecordTasksRequest; + +DescribeRecordTasksRequest::DescribeRecordTasksRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTasks") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRecordTasksRequest::~DescribeRecordTasksRequest() +{} + +std::string DescribeRecordTasksRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRecordTasksRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::vector DescribeRecordTasksRequest::getTaskIds()const +{ + return taskIds_; +} + +void DescribeRecordTasksRequest::setTaskIds(const std::vector& taskIds) +{ + taskIds_ = taskIds; + for(int dep1 = 0; dep1!= taskIds.size(); dep1++) { + setParameter("TaskIds."+ std::to_string(dep1), taskIds.at(dep1)); + } +} + +int DescribeRecordTasksRequest::getPageNum()const +{ + return pageNum_; +} + +void DescribeRecordTasksRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +int DescribeRecordTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRecordTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRecordTasksRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRecordTasksRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRecordTasksRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRecordTasksRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRecordTasksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRecordTasksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRecordTasksRequest::getAppId()const +{ + return appId_; +} + +void DescribeRecordTasksRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRecordTasksRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRecordTasksRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + +std::string DescribeRecordTasksRequest::getStatus()const +{ + return status_; +} + +void DescribeRecordTasksRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/rtc/src/model/DescribeRecordTasksResult.cc b/rtc/src/model/DescribeRecordTasksResult.cc new file mode 100644 index 000000000..9b9174379 --- /dev/null +++ b/rtc/src/model/DescribeRecordTasksResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribeRecordTasksResult::DescribeRecordTasksResult() : + ServiceResult() +{} + +DescribeRecordTasksResult::DescribeRecordTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecordTasksResult::~DescribeRecordTasksResult() +{} + +void DescribeRecordTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordTasksNode = value["RecordTasks"]["RecordTask"]; + for (auto valueRecordTasksRecordTask : allRecordTasksNode) + { + RecordTask recordTasksObject; + if(!valueRecordTasksRecordTask["CreateTime"].isNull()) + recordTasksObject.createTime = valueRecordTasksRecordTask["CreateTime"].asString(); + if(!valueRecordTasksRecordTask["AppId"].isNull()) + recordTasksObject.appId = valueRecordTasksRecordTask["AppId"].asString(); + if(!valueRecordTasksRecordTask["ChannelId"].isNull()) + recordTasksObject.channelId = valueRecordTasksRecordTask["ChannelId"].asString(); + if(!valueRecordTasksRecordTask["TaskId"].isNull()) + recordTasksObject.taskId = valueRecordTasksRecordTask["TaskId"].asString(); + if(!valueRecordTasksRecordTask["TemplateId"].isNull()) + recordTasksObject.templateId = valueRecordTasksRecordTask["TemplateId"].asString(); + if(!valueRecordTasksRecordTask["Status"].isNull()) + recordTasksObject.status = std::stoi(valueRecordTasksRecordTask["Status"].asString()); + auto allUserPanesNode = valueRecordTasksRecordTask["UserPanes"]["UserPanesItem"]; + for (auto valueRecordTasksRecordTaskUserPanesUserPanesItem : allUserPanesNode) + { + RecordTask::UserPanesItem userPanesObject; + if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].isNull()) + userPanesObject.paneId = std::stoi(valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].asString()); + if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].isNull()) + userPanesObject.userId = valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].asString(); + if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].isNull()) + userPanesObject.source = valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].asString(); + recordTasksObject.userPanes.push_back(userPanesObject); + } + auto allSubSpecUsers = value["SubSpecUsers"]["SubSpecUser"]; + for (auto value : allSubSpecUsers) + recordTasksObject.subSpecUsers.push_back(value.asString()); + recordTasks_.push_back(recordTasksObject); + } + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stol(value["TotalPage"].asString()); + +} + +std::vector DescribeRecordTasksResult::getRecordTasks()const +{ + return recordTasks_; +} + +long DescribeRecordTasksResult::getTotalNum()const +{ + return totalNum_; +} + +long DescribeRecordTasksResult::getTotalPage()const +{ + return totalPage_; +} + diff --git a/rtc/src/model/DescribeRtcChannelDetailRequest.cc b/rtc/src/model/DescribeRtcChannelDetailRequest.cc new file mode 100644 index 000000000..de552e6c3 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelDetailRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRtcChannelDetailRequest; + +DescribeRtcChannelDetailRequest::DescribeRtcChannelDetailRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRtcChannelDetailRequest::~DescribeRtcChannelDetailRequest() +{} + +std::string DescribeRtcChannelDetailRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcChannelDetailRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int DescribeRtcChannelDetailRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRtcChannelDetailRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRtcChannelDetailRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRtcChannelDetailRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRtcChannelDetailRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcChannelDetailRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRtcChannelDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRtcChannelDetailRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeRtcChannelDetailRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeRtcChannelDetailRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelDetailRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRtcChannelDetailRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelDetailRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeRtcChannelDetailResult.cc b/rtc/src/model/DescribeRtcChannelDetailResult.cc new file mode 100644 index 000000000..1c952b5a0 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelDetailResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelDetailResult::DescribeRtcChannelDetailResult() : + ServiceResult() +{} + +DescribeRtcChannelDetailResult::DescribeRtcChannelDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelDetailResult::~DescribeRtcChannelDetailResult() +{} + +void DescribeRtcChannelDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allChannelInfoNode = value["ChannelInfo"]["Detail"]; + for (auto valueChannelInfoDetail : allChannelInfoNode) + { + Detail channelInfoObject; + if(!valueChannelInfoDetail["Sid"].isNull()) + channelInfoObject.sid = valueChannelInfoDetail["Sid"].asString(); + if(!valueChannelInfoDetail["Uid"].isNull()) + channelInfoObject.uid = valueChannelInfoDetail["Uid"].asString(); + if(!valueChannelInfoDetail["JoinTime"].isNull()) + channelInfoObject.joinTime = valueChannelInfoDetail["JoinTime"].asString(); + if(!valueChannelInfoDetail["LeaveTime"].isNull()) + channelInfoObject.leaveTime = valueChannelInfoDetail["LeaveTime"].asString(); + if(!valueChannelInfoDetail["SdkVersion"].isNull()) + channelInfoObject.sdkVersion = valueChannelInfoDetail["SdkVersion"].asString(); + if(!valueChannelInfoDetail["Platform"].isNull()) + channelInfoObject.platform = valueChannelInfoDetail["Platform"].asString(); + if(!valueChannelInfoDetail["OS"].isNull()) + channelInfoObject.oS = valueChannelInfoDetail["OS"].asString(); + if(!valueChannelInfoDetail["DeviceType"].isNull()) + channelInfoObject.deviceType = valueChannelInfoDetail["DeviceType"].asString(); + channelInfo_.push_back(channelInfoObject); + } + if(!value["ChannelId"].isNull()) + channelId_ = value["ChannelId"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stol(value["PageNo"].asString()); + if(!value["TotalCnt"].isNull()) + totalCnt_ = std::stol(value["TotalCnt"].asString()); + +} + +long DescribeRtcChannelDetailResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeRtcChannelDetailResult::getTotalCnt()const +{ + return totalCnt_; +} + +std::vector DescribeRtcChannelDetailResult::getChannelInfo()const +{ + return channelInfo_; +} + +long DescribeRtcChannelDetailResult::getPageNo()const +{ + return pageNo_; +} + +std::string DescribeRtcChannelDetailResult::getChannelId()const +{ + return channelId_; +} + diff --git a/rtc/src/model/DescribeRtcChannelMetricsRequest.cc b/rtc/src/model/DescribeRtcChannelMetricsRequest.cc new file mode 100644 index 000000000..eb5f9c94d --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelMetricsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRtcChannelMetricsRequest; + +DescribeRtcChannelMetricsRequest::DescribeRtcChannelMetricsRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelMetrics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRtcChannelMetricsRequest::~DescribeRtcChannelMetricsRequest() +{} + +std::string DescribeRtcChannelMetricsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcChannelMetricsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeRtcChannelMetricsRequest::getSubUid()const +{ + return subUid_; +} + +void DescribeRtcChannelMetricsRequest::setSubUid(const std::string& subUid) +{ + subUid_ = subUid; + setParameter("SubUid", subUid); +} + +std::string DescribeRtcChannelMetricsRequest::getPubUid()const +{ + return pubUid_; +} + +void DescribeRtcChannelMetricsRequest::setPubUid(const std::string& pubUid) +{ + pubUid_ = pubUid; + setParameter("PubUid", pubUid); +} + +std::string DescribeRtcChannelMetricsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRtcChannelMetricsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRtcChannelMetricsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcChannelMetricsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRtcChannelMetricsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelMetricsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcChannelMetricsRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelMetricsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRtcChannelMetricsRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelMetricsRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeRtcChannelMetricsResult.cc b/rtc/src/model/DescribeRtcChannelMetricsResult.cc new file mode 100644 index 000000000..2b6e1b1e1 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelMetricsResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelMetricsResult::DescribeRtcChannelMetricsResult() : + ServiceResult() +{} + +DescribeRtcChannelMetricsResult::DescribeRtcChannelMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelMetricsResult::~DescribeRtcChannelMetricsResult() +{} + +void DescribeRtcChannelMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricsNode = value["Metrics"]["Metric"]; + for (auto valueMetricsMetric : allMetricsNode) + { + Metric metricsObject; + if(!valueMetricsMetric["Uid"].isNull()) + metricsObject.uid = valueMetricsMetric["Uid"].asString(); + if(!valueMetricsMetric["Mid"].isNull()) + metricsObject.mid = valueMetricsMetric["Mid"].asString(); + auto allKVs = value["KVs"]["KV"]; + for (auto value : allKVs) + metricsObject.kVs.push_back(value.asString()); + metrics_.push_back(metricsObject); + } + +} + +std::vector DescribeRtcChannelMetricsResult::getMetrics()const +{ + return metrics_; +} + diff --git a/rtc/src/model/DescribeRtcChannelsRequest.cc b/rtc/src/model/DescribeRtcChannelsRequest.cc new file mode 100644 index 000000000..e0b2651c6 --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRtcChannelsRequest; + +DescribeRtcChannelsRequest::DescribeRtcChannelsRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannels") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRtcChannelsRequest::~DescribeRtcChannelsRequest() +{} + +std::string DescribeRtcChannelsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcChannelsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int DescribeRtcChannelsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRtcChannelsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRtcChannelsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRtcChannelsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRtcChannelsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcChannelsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRtcChannelsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcChannelsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRtcChannelsRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeRtcChannelsRequest::setPageNo(int pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + +std::string DescribeRtcChannelsRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcChannelsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRtcChannelsRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcChannelsRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeRtcChannelsResult.cc b/rtc/src/model/DescribeRtcChannelsResult.cc new file mode 100644 index 000000000..bd2d143fb --- /dev/null +++ b/rtc/src/model/DescribeRtcChannelsResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcChannelsResult::DescribeRtcChannelsResult() : + ServiceResult() +{} + +DescribeRtcChannelsResult::DescribeRtcChannelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcChannelsResult::~DescribeRtcChannelsResult() +{} + +void DescribeRtcChannelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allChannelsNode = value["Channels"]["Channel"]; + for (auto valueChannelsChannel : allChannelsNode) + { + Channel channelsObject; + if(!valueChannelsChannel["ChannelId"].isNull()) + channelsObject.channelId = valueChannelsChannel["ChannelId"].asString(); + if(!valueChannelsChannel["StartTime"].isNull()) + channelsObject.startTime = valueChannelsChannel["StartTime"].asString(); + if(!valueChannelsChannel["EndTime"].isNull()) + channelsObject.endTime = valueChannelsChannel["EndTime"].asString(); + if(!valueChannelsChannel["Finished"].isNull()) + channelsObject.finished = valueChannelsChannel["Finished"].asString() == "true"; + channels_.push_back(channelsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNo"].isNull()) + pageNo_ = std::stol(value["PageNo"].asString()); + if(!value["TotalCnt"].isNull()) + totalCnt_ = std::stol(value["TotalCnt"].asString()); + +} + +long DescribeRtcChannelsResult::getPageSize()const +{ + return pageSize_; +} + +long DescribeRtcChannelsResult::getTotalCnt()const +{ + return totalCnt_; +} + +long DescribeRtcChannelsResult::getPageNo()const +{ + return pageNo_; +} + +std::vector DescribeRtcChannelsResult::getChannels()const +{ + return channels_; +} + diff --git a/rtc/src/model/DescribeRtcUserEventsRequest.cc b/rtc/src/model/DescribeRtcUserEventsRequest.cc new file mode 100644 index 000000000..bf153ab2d --- /dev/null +++ b/rtc/src/model/DescribeRtcUserEventsRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRtcUserEventsRequest; + +DescribeRtcUserEventsRequest::DescribeRtcUserEventsRequest() : + RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcUserEvents") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRtcUserEventsRequest::~DescribeRtcUserEventsRequest() +{} + +std::string DescribeRtcUserEventsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRtcUserEventsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeRtcUserEventsRequest::getUid()const +{ + return uid_; +} + +void DescribeRtcUserEventsRequest::setUid(const std::string& uid) +{ + uid_ = uid; + setParameter("Uid", uid); +} + +std::string DescribeRtcUserEventsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRtcUserEventsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeRtcUserEventsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRtcUserEventsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeRtcUserEventsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRtcUserEventsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRtcUserEventsRequest::getAppId()const +{ + return appId_; +} + +void DescribeRtcUserEventsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeRtcUserEventsRequest::getChannelId()const +{ + return channelId_; +} + +void DescribeRtcUserEventsRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DescribeRtcUserEventsResult.cc b/rtc/src/model/DescribeRtcUserEventsResult.cc new file mode 100644 index 000000000..9647195e8 --- /dev/null +++ b/rtc/src/model/DescribeRtcUserEventsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Rtc; +using namespace AlibabaCloud::Rtc::Model; + +DescribeRtcUserEventsResult::DescribeRtcUserEventsResult() : + ServiceResult() +{} + +DescribeRtcUserEventsResult::DescribeRtcUserEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRtcUserEventsResult::~DescribeRtcUserEventsResult() +{} + +void DescribeRtcUserEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEventsNode = value["Events"]["Event"]; + for (auto valueEventsEvent : allEventsNode) + { + Event eventsObject; + if(!valueEventsEvent["EventId"].isNull()) + eventsObject.eventId = valueEventsEvent["EventId"].asString(); + if(!valueEventsEvent["EventTime"].isNull()) + eventsObject.eventTime = std::stol(valueEventsEvent["EventTime"].asString()); + if(!valueEventsEvent["Category"].isNull()) + eventsObject.category = valueEventsEvent["Category"].asString(); + events_.push_back(eventsObject); + } + +} + +std::vector DescribeRtcUserEventsResult::getEvents()const +{ + return events_; +} + diff --git a/rtc/src/model/DisableMAURuleRequest.cc b/rtc/src/model/DisableMAURuleRequest.cc deleted file mode 100644 index c87fb07ac..000000000 --- a/rtc/src/model/DisableMAURuleRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::DisableMAURuleRequest; - -DisableMAURuleRequest::DisableMAURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DisableMAURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableMAURuleRequest::~DisableMAURuleRequest() -{} - -std::string DisableMAURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DisableMAURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DisableMAURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DisableMAURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DisableMAURuleRequest::getAppId()const -{ - return appId_; -} - -void DisableMAURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long DisableMAURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void DisableMAURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/EnableMAURuleRequest.cc b/rtc/src/model/EnableMAURuleRequest.cc deleted file mode 100644 index 1e571b3a5..000000000 --- a/rtc/src/model/EnableMAURuleRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::EnableMAURuleRequest; - -EnableMAURuleRequest::EnableMAURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "EnableMAURule") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableMAURuleRequest::~EnableMAURuleRequest() -{} - -std::string EnableMAURuleRequest::getShowLog()const -{ - return showLog_; -} - -void EnableMAURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long EnableMAURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void EnableMAURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string EnableMAURuleRequest::getAppId()const -{ - return appId_; -} - -void EnableMAURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long EnableMAURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void EnableMAURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/EnableMAURuleResult.cc b/rtc/src/model/EnableMAURuleResult.cc deleted file mode 100644 index 80b7a63e8..000000000 --- a/rtc/src/model/EnableMAURuleResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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; - -EnableMAURuleResult::EnableMAURuleResult() : - ServiceResult() -{} - -EnableMAURuleResult::EnableMAURuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EnableMAURuleResult::~EnableMAURuleResult() -{} - -void EnableMAURuleResult::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/StartRecordTaskRequest.cc b/rtc/src/model/StartRecordTaskRequest.cc index 2931eadab..41ed8e5ca 100644 --- a/rtc/src/model/StartRecordTaskRequest.cc +++ b/rtc/src/model/StartRecordTaskRequest.cc @@ -41,6 +41,28 @@ void StartRecordTaskRequest::setUserPanes(const std::vector& userPane setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + for(int dep2 = 0; dep2!= userPanesObj.images.size(); dep2++) { + auto imagesObj = userPanesObj.images.at(dep2); + std::string imagesObjStr = userPanesObjStr + "Images." + std::to_string(dep2 + 1); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + } + for(int dep2 = 0; dep2!= userPanesObj.texts.size(); dep2++) { + auto textsObj = userPanesObj.texts.at(dep2); + std::string textsObjStr = userPanesObjStr + "Texts." + std::to_string(dep2 + 1); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + } } } diff --git a/rtc/src/model/UpdateRecordTaskRequest.cc b/rtc/src/model/UpdateRecordTaskRequest.cc new file mode 100644 index 000000000..0c1937b18 --- /dev/null +++ b/rtc/src/model/UpdateRecordTaskRequest.cc @@ -0,0 +1,147 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UpdateRecordTaskRequest; + +UpdateRecordTaskRequest::UpdateRecordTaskRequest() : + RpcServiceRequest("rtc", "2018-01-11", "UpdateRecordTask") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateRecordTaskRequest::~UpdateRecordTaskRequest() +{} + +std::vector UpdateRecordTaskRequest::getUserPanes()const +{ + return userPanes_; +} + +void UpdateRecordTaskRequest::setUserPanes(const std::vector& userPanes) +{ + userPanes_ = userPanes; + for(int dep1 = 0; dep1!= userPanes.size(); dep1++) { + auto userPanesObj = userPanes.at(dep1); + std::string userPanesObjStr = "UserPanes." + std::to_string(dep1 + 1); + setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); + setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); + setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + for(int dep2 = 0; dep2!= userPanesObj.images.size(); dep2++) { + auto imagesObj = userPanesObj.images.at(dep2); + std::string imagesObjStr = userPanesObjStr + "Images." + std::to_string(dep2 + 1); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + } + for(int dep2 = 0; dep2!= userPanesObj.texts.size(); dep2++) { + auto textsObj = userPanesObj.texts.at(dep2); + std::string textsObjStr = userPanesObjStr + "Texts." + std::to_string(dep2 + 1); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + } + } +} + +std::string UpdateRecordTaskRequest::getTaskId()const +{ + return taskId_; +} + +void UpdateRecordTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string UpdateRecordTaskRequest::getShowLog()const +{ + return showLog_; +} + +void UpdateRecordTaskRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long UpdateRecordTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateRecordTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateRecordTaskRequest::getTemplateId()const +{ + return templateId_; +} + +void UpdateRecordTaskRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", templateId); +} + +std::vector UpdateRecordTaskRequest::getSubSpecUsers()const +{ + return subSpecUsers_; +} + +void UpdateRecordTaskRequest::setSubSpecUsers(const std::vector& subSpecUsers) +{ + subSpecUsers_ = subSpecUsers; + for(int dep1 = 0; dep1!= subSpecUsers.size(); dep1++) { + setParameter("SubSpecUsers."+ std::to_string(dep1), subSpecUsers.at(dep1)); + } +} + +std::string UpdateRecordTaskRequest::getAppId()const +{ + return appId_; +} + +void UpdateRecordTaskRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string UpdateRecordTaskRequest::getChannelId()const +{ + return channelId_; +} + +void UpdateRecordTaskRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setParameter("ChannelId", channelId); +} + diff --git a/rtc/src/model/DisableMAURuleResult.cc b/rtc/src/model/UpdateRecordTaskResult.cc similarity index 75% rename from rtc/src/model/DisableMAURuleResult.cc rename to rtc/src/model/UpdateRecordTaskResult.cc index 6e7fa8daf..5bac982c6 100644 --- a/rtc/src/model/DisableMAURuleResult.cc +++ b/rtc/src/model/UpdateRecordTaskResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DisableMAURuleResult::DisableMAURuleResult() : +UpdateRecordTaskResult::UpdateRecordTaskResult() : ServiceResult() {} -DisableMAURuleResult::DisableMAURuleResult(const std::string &payload) : +UpdateRecordTaskResult::UpdateRecordTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableMAURuleResult::~DisableMAURuleResult() +UpdateRecordTaskResult::~UpdateRecordTaskResult() {} -void DisableMAURuleResult::parse(const std::string &payload) +void UpdateRecordTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/UpdateRecordTemplateRequest.cc b/rtc/src/model/UpdateRecordTemplateRequest.cc index bc8a7312e..f04ba6d46 100644 --- a/rtc/src/model/UpdateRecordTemplateRequest.cc +++ b/rtc/src/model/UpdateRecordTemplateRequest.cc @@ -130,6 +130,39 @@ void UpdateRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) setParameter("FileSplitInterval", std::to_string(fileSplitInterval)); } +std::string UpdateRecordTemplateRequest::getHttpCallbackUrl()const +{ + return httpCallbackUrl_; +} + +void UpdateRecordTemplateRequest::setHttpCallbackUrl(const std::string& httpCallbackUrl) +{ + httpCallbackUrl_ = httpCallbackUrl; + setParameter("HttpCallbackUrl", httpCallbackUrl); +} + +std::vector UpdateRecordTemplateRequest::getWatermarks()const +{ + return watermarks_; +} + +void UpdateRecordTemplateRequest::setWatermarks(const std::vector& watermarks) +{ + watermarks_ = watermarks; + for(int dep1 = 0; dep1!= watermarks.size(); dep1++) { + auto watermarksObj = watermarks.at(dep1); + std::string watermarksObjStr = "Watermarks." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + } +} + long UpdateRecordTemplateRequest::getOwnerId()const { return ownerId_; @@ -163,6 +196,27 @@ void UpdateRecordTemplateRequest::setAppId(const std::string& appId) setParameter("AppId", appId); } +std::vector UpdateRecordTemplateRequest::getBackgrounds()const +{ + return backgrounds_; +} + +void UpdateRecordTemplateRequest::setBackgrounds(const std::vector& backgrounds) +{ + backgrounds_ = backgrounds; + for(int dep1 = 0; dep1!= backgrounds.size(); dep1++) { + auto backgroundsObj = backgrounds.at(dep1); + std::string backgroundsObjStr = "Backgrounds." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + } +} + std::string UpdateRecordTemplateRequest::getName()const { return name_;