From 1c7304d44cc0f5dd983d2ce5737d48d6b6c723fe Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 23 Nov 2021 12:38:57 +0000 Subject: [PATCH] Delete some abandoned interface in SDK. --- CHANGELOG | 5 + VERSION | 2 +- rtc/CMakeLists.txt | 208 +-- rtc/include/alibabacloud/rtc/RtcClient.h | 416 +---- .../rtc/model/AddRecordTemplateRequest.h | 219 +-- .../model/CreateAutoLiveStreamRuleRequest.h | 66 + ...ult.h => CreateAutoLiveStreamRuleResult.h} | 14 +- .../rtc/model/CreateChannelRequest.h | 57 - .../rtc/model/CreateChannelResult.h | 55 - .../rtc/model/CreateConferenceRequest.h | 69 - .../rtc/model/CreateConferenceResult.h | 59 - .../rtc/model/CreateEventSubscribeRequest.h | 63 + ...cResult.h => CreateEventSubscribeResult.h} | 16 +- .../rtc/model/CreateMPULayoutRequest.h | 118 +- .../rtc/model/CreateMPURuleRequest.h | 78 - .../rtc/model/CreateRecordIndexFileRequest.h | 69 + ...Result.h => CreateRecordIndexFileResult.h} | 24 +- .../CreateServiceLinkedRoleForRtcRequest.h | 51 - .../model/DeleteAutoLiveStreamRuleRequest.h | 51 + ...ult.h => DeleteAutoLiveStreamRuleResult.h} | 14 +- .../rtc/model/DeleteChannelRequest.h | 57 - .../rtc/model/DeleteConferenceRequest.h | 57 - .../rtc/model/DeleteEventSubscribeRequest.h | 51 + ...eResult.h => DeleteEventSubscribeResult.h} | 14 +- .../rtc/model/DeleteMPULayoutRequest.h | 86 +- .../rtc/model/DeleteMPURuleRequest.h | 57 - .../rtc/model/DeleteRecordTemplateRequest.h | 86 +- .../rtc/model/DescribeAppsRequest.h | 66 - .../rtc/model/DescribeAppsResult.h | 65 - .../model/DescribeAutoLiveStreamRuleRequest.h | 48 + ...t.h => DescribeAutoLiveStreamRuleResult.h} | 25 +- .../DescribeChannelParticipantsRequest.h | 104 +- .../rtc/model/DescribeChannelUsersRequest.h | 86 +- .../rtc/model/DescribeChannelUsersResult.h | 4 +- .../model/DescribeConferenceAuthInfoRequest.h | 57 - .../model/DescribeConferenceAuthInfoResult.h | 59 - .../model/DescribeMPULayoutInfoListRequest.h | 104 +- .../model/DescribeMPULayoutInfoListResult.h | 2 +- .../rtc/model/DescribeMPULayoutInfoRequest.h | 57 - .../rtc/model/DescribeMPULayoutInfoResult.h | 68 - .../rtc/model/DescribeMPULayoutListRequest.h | 54 - .../rtc/model/DescribeMPURuleRequest.h | 54 - .../rtc/model/DescribeRTCAppKeyRequest.h | 54 - .../rtc/model/DescribeRTCAppKeyResult.h | 51 - .../rtc/model/DescribeRecordFilesRequest.h | 116 +- .../rtc/model/DescribeRecordTasksRequest.h | 122 +- .../model/DescribeRecordTemplatesRequest.h | 98 +- .../rtc/model/DescribeRecordTemplatesResult.h | 40 +- .../model/DescribeRtcChannelCntDataRequest.h | 66 - .../model/DescribeRtcChannelCntDataResult.h | 56 - .../model/DescribeRtcChannelDetailRequest.h | 69 - .../model/DescribeRtcChannelDetailResult.h | 70 - .../rtc/model/DescribeRtcChannelListRequest.h | 75 - .../rtc/model/DescribeRtcChannelListResult.h | 65 - .../model/DescribeRtcChannelMetricRequest.h | 60 - .../model/DescribeRtcChannelMetricResult.h | 86 -- .../model/DescribeRtcChannelMetricsRequest.h | 69 - .../model/DescribeRtcChannelMetricsResult.h | 57 - .../model/DescribeRtcChannelUserListRequest.h | 66 - .../model/DescribeRtcChannelUserListResult.h | 75 - .../rtc/model/DescribeRtcChannelsRequest.h | 69 - .../rtc/model/DescribeRtcChannelsResult.h | 64 - .../model/DescribeRtcDurationDataRequest.h | 66 - .../rtc/model/DescribeRtcDurationDataResult.h | 61 - .../DescribeRtcPeakChannelCntDataRequest.h | 66 - .../DescribeRtcPeakChannelCntDataResult.h | 57 - .../model/DescribeRtcPeakUserCntDataRequest.h | 66 - .../model/DescribeRtcPeakUserCntDataResult.h | 57 - .../model/DescribeRtcQualityMetricRequest.h | 69 - .../model/DescribeRtcQualityMetricResult.h | 170 --- .../rtc/model/DescribeRtcScaleDetailRequest.h | 60 - .../rtc/model/DescribeRtcScaleDetailResult.h | 57 - .../rtc/model/DescribeRtcScaleRequest.h | 60 - .../rtc/model/DescribeRtcScaleResult.h | 60 - .../rtc/model/DescribeRtcUserCntDataRequest.h | 66 - .../rtc/model/DescribeRtcUserCntDataResult.h | 56 - .../rtc/model/DescribeRtcUserEventsRequest.h | 66 - .../rtc/model/DescribeRtcUserEventsResult.h | 57 - .../rtc/model/DescribeRtcUserListRequest.h | 69 - .../rtc/model/DescribeRtcUserListResult.h | 55 - .../model/DescribeUserInfoInChannelRequest.h | 92 +- .../model/DisableAutoLiveStreamRuleRequest.h | 51 + .../model/DisableAutoLiveStreamRuleResult.h | 49 + .../rtc/model/DisableMPURuleRequest.h | 57 - .../rtc/model/DisableMPURuleResult.h | 49 - .../model/EnableAutoLiveStreamRuleRequest.h | 51 + .../model/EnableAutoLiveStreamRuleResult.h | 49 + .../rtc/model/EnableMPURuleRequest.h | 57 - .../rtc/model/EnableMPURuleResult.h | 49 - .../rtc/model/GetMPUTaskStatusRequest.h | 86 +- .../alibabacloud/rtc/model/ModifyAppRequest.h | 57 - .../alibabacloud/rtc/model/ModifyAppResult.h | 49 - .../rtc/model/ModifyConferenceRequest.h | 69 - .../rtc/model/ModifyMPULayoutRequest.h | 124 +- .../rtc/model/MuteAudioAllRequest.h | 60 - .../rtc/model/MuteAudioAllResult.h | 59 - .../alibabacloud/rtc/model/MuteAudioRequest.h | 60 - .../alibabacloud/rtc/model/MuteAudioResult.h | 59 - .../rtc/model/ReceiveNotifyRequest.h | 66 - .../rtc/model/ReceiveNotifyResult.h | 51 - .../rtc/model/RemoveParticipantsRequest.h | 60 - .../rtc/model/RemoveParticipantsResult.h | 59 - .../rtc/model/RemoveTerminalsRequest.h | 92 +- .../rtc/model/SetChannelPropertyRequest.h | 72 - .../rtc/model/SetChannelPropertyResult.h | 49 - .../rtc/model/StartMPUTaskRequest.h | 350 +++-- .../rtc/model/StartRecordTaskRequest.h | 203 +-- .../rtc/model/StopChannelUserPublishRequest.h | 92 +- .../rtc/model/StopMPUTaskRequest.h | 86 +- .../rtc/model/StopRecordTaskRequest.h | 86 +- .../rtc/model/UnmuteAudioAllRequest.h | 60 - .../rtc/model/UnmuteAudioAllResult.h | 59 - .../rtc/model/UnmuteAudioRequest.h | 60 - .../rtc/model/UnmuteAudioResult.h | 59 - .../model/UpdateAutoLiveStreamRuleRequest.h | 69 + ...ult.h => UpdateAutoLiveStreamRuleResult.h} | 18 +- .../rtc/model/UpdateChannelRequest.h | 60 - .../rtc/model/UpdateChannelResult.h | 53 - .../rtc/model/UpdateMPULayoutRequest.h | 137 -- .../rtc/model/UpdateMPULayoutResult.h | 49 - .../rtc/model/UpdateMPUTaskRequest.h | 172 +++ ...eMPURuleResult.h => UpdateMPUTaskResult.h} | 14 +- .../rtc/model/UpdateRecordTaskRequest.h | 185 +-- .../rtc/model/UpdateRecordTemplateRequest.h | 222 +-- rtc/src/RtcClient.cc | 1338 ++--------------- rtc/src/model/AddRecordTemplateRequest.cc | 309 ++-- .../model/CreateAutoLiveStreamRuleRequest.cc | 106 ++ ...t.cc => CreateAutoLiveStreamRuleResult.cc} | 12 +- rtc/src/model/CreateChannelRequest.cc | 73 - rtc/src/model/CreateChannelResult.cc | 65 - rtc/src/model/CreateConferenceRequest.cc | 117 -- rtc/src/model/CreateConferenceResult.cc | 63 - rtc/src/model/CreateEventSubscribeRequest.cc | 97 ++ ...esult.cc => CreateEventSubscribeResult.cc} | 18 +- rtc/src/model/CreateMPULayoutRequest.cc | 126 +- rtc/src/model/CreateMPURuleRequest.cc | 152 -- rtc/src/model/CreateRecordIndexFileRequest.cc | 117 ++ ...sult.cc => CreateRecordIndexFileResult.cc} | 40 +- .../CreateServiceLinkedRoleForRtcRequest.cc | 51 - .../CreateServiceLinkedRoleForRtcResult.cc | 44 - .../model/DeleteAutoLiveStreamRuleRequest.cc | 63 + ...t.cc => DeleteAutoLiveStreamRuleResult.cc} | 10 +- rtc/src/model/DeleteChannelRequest.cc | 73 - rtc/src/model/DeleteConferenceRequest.cc | 73 - rtc/src/model/DeleteEventSubscribeRequest.cc | 63 + ...esult.cc => DeleteEventSubscribeResult.cc} | 10 +- rtc/src/model/DeleteMPULayoutRequest.cc | 82 +- rtc/src/model/DeleteMPURuleRequest.cc | 73 - rtc/src/model/DeleteRecordTemplateRequest.cc | 82 +- rtc/src/model/DescribeAppsRequest.cc | 106 -- rtc/src/model/DescribeAppsResult.cc | 84 -- .../DescribeAutoLiveStreamRuleRequest.cc | 54 + ...cc => DescribeAutoLiveStreamRuleResult.cc} | 41 +- .../DescribeChannelParticipantsRequest.cc | 118 +- .../DescribeChannelParticipantsResult.cc | 4 +- rtc/src/model/DescribeChannelUsersRequest.cc | 82 +- rtc/src/model/DescribeChannelUsersResult.cc | 26 +- .../DescribeConferenceAuthInfoRequest.cc | 73 - .../model/DescribeConferenceAuthInfoResult.cc | 63 - .../model/DescribeMPULayoutInfoListRequest.cc | 118 +- .../model/DescribeMPULayoutInfoListResult.cc | 16 +- rtc/src/model/DescribeMPULayoutInfoRequest.cc | 73 - rtc/src/model/DescribeMPULayoutInfoResult.cc | 76 - rtc/src/model/DescribeMPULayoutListRequest.cc | 62 - rtc/src/model/DescribeMPURuleRequest.cc | 62 - rtc/src/model/DescribeRTCAppKeyRequest.cc | 62 - rtc/src/model/DescribeRecordFilesRequest.cc | 143 +- rtc/src/model/DescribeRecordFilesResult.cc | 16 +- rtc/src/model/DescribeRecordTasksRequest.cc | 155 +- rtc/src/model/DescribeRecordTasksResult.cc | 12 +- .../model/DescribeRecordTemplatesRequest.cc | 107 +- .../model/DescribeRecordTemplatesResult.cc | 106 +- .../model/DescribeRtcChannelCntDataRequest.cc | 106 -- .../model/DescribeRtcChannelCntDataResult.cc | 59 - .../model/DescribeRtcChannelDetailRequest.cc | 117 -- .../model/DescribeRtcChannelDetailResult.cc | 99 -- .../model/DescribeRtcChannelListRequest.cc | 139 -- rtc/src/model/DescribeRtcChannelListResult.cc | 87 -- .../model/DescribeRtcChannelMetricRequest.cc | 84 -- .../model/DescribeRtcChannelMetricResult.cc | 86 -- .../model/DescribeRtcChannelMetricsRequest.cc | 117 -- .../model/DescribeRtcChannelMetricsResult.cc | 62 - .../DescribeRtcChannelUserListRequest.cc | 106 -- .../model/DescribeRtcChannelUserListResult.cc | 106 -- rtc/src/model/DescribeRtcChannelsRequest.cc | 117 -- rtc/src/model/DescribeRtcChannelsResult.cc | 84 -- .../model/DescribeRtcDurationDataRequest.cc | 106 -- .../model/DescribeRtcDurationDataResult.cc | 69 - .../DescribeRtcPeakChannelCntDataRequest.cc | 106 -- .../DescribeRtcPeakChannelCntDataResult.cc | 61 - .../DescribeRtcPeakUserCntDataRequest.cc | 106 -- .../model/DescribeRtcPeakUserCntDataResult.cc | 61 - .../model/DescribeRtcQualityMetricRequest.cc | 117 -- .../model/DescribeRtcQualityMetricResult.cc | 190 --- .../model/DescribeRtcScaleDetailRequest.cc | 84 -- rtc/src/model/DescribeRtcScaleDetailResult.cc | 61 - rtc/src/model/DescribeRtcScaleRequest.cc | 84 -- rtc/src/model/DescribeRtcScaleResult.cc | 67 - .../model/DescribeRtcUserCntDataRequest.cc | 106 -- rtc/src/model/DescribeRtcUserCntDataResult.cc | 59 - rtc/src/model/DescribeRtcUserEventsRequest.cc | 106 -- rtc/src/model/DescribeRtcUserEventsResult.cc | 61 - rtc/src/model/DescribeRtcUserListRequest.cc | 117 -- rtc/src/model/DescribeRtcUserListResult.cc | 57 - .../model/DescribeUserInfoInChannelRequest.cc | 94 +- .../model/DescribeUserInfoInChannelResult.cc | 8 +- .../model/DisableAutoLiveStreamRuleRequest.cc | 63 + ....cc => DisableAutoLiveStreamRuleResult.cc} | 10 +- rtc/src/model/DisableMPURuleRequest.cc | 73 - .../model/EnableAutoLiveStreamRuleRequest.cc | 63 + ...t.cc => EnableAutoLiveStreamRuleResult.cc} | 10 +- rtc/src/model/EnableMPURuleRequest.cc | 73 - rtc/src/model/GetMPUTaskStatusRequest.cc | 82 +- rtc/src/model/ModifyAppRequest.cc | 73 - rtc/src/model/ModifyAppResult.cc | 44 - rtc/src/model/ModifyConferenceRequest.cc | 117 -- rtc/src/model/ModifyMPULayoutRequest.cc | 138 +- rtc/src/model/MuteAudioAllRequest.cc | 84 -- rtc/src/model/MuteAudioAllResult.cc | 68 - rtc/src/model/MuteAudioRequest.cc | 86 -- rtc/src/model/MuteAudioResult.cc | 68 - rtc/src/model/ReceiveNotifyRequest.cc | 106 -- rtc/src/model/ReceiveNotifyResult.cc | 51 - rtc/src/model/RemoveParticipantsRequest.cc | 86 -- rtc/src/model/RemoveParticipantsResult.cc | 68 - rtc/src/model/RemoveTerminalsRequest.cc | 95 +- rtc/src/model/RemoveTerminalsResult.cc | 4 +- rtc/src/model/SetChannelPropertyRequest.cc | 128 -- rtc/src/model/SetChannelPropertyResult.cc | 44 - rtc/src/model/StartMPUTaskRequest.cc | 512 ++++--- rtc/src/model/StartRecordTaskRequest.cc | 297 ++-- .../model/StopChannelUserPublishRequest.cc | 94 +- rtc/src/model/StopMPUTaskRequest.cc | 82 +- rtc/src/model/StopRecordTaskRequest.cc | 82 +- rtc/src/model/UnmuteAudioAllRequest.cc | 84 -- rtc/src/model/UnmuteAudioAllResult.cc | 68 - rtc/src/model/UnmuteAudioRequest.cc | 86 -- rtc/src/model/UnmuteAudioResult.cc | 68 - .../model/UpdateAutoLiveStreamRuleRequest.cc | 115 ++ ...t.cc => UpdateAutoLiveStreamRuleResult.cc} | 18 +- rtc/src/model/UpdateChannelRequest.cc | 84 -- rtc/src/model/UpdateChannelResult.cc | 58 - rtc/src/model/UpdateMPULayoutRequest.cc | 210 --- rtc/src/model/UpdateMPULayoutResult.cc | 44 - rtc/src/model/UpdateMPUTaskRequest.cc | 299 ++++ ...PURuleResult.cc => UpdateMPUTaskResult.cc} | 10 +- rtc/src/model/UpdateRecordTaskRequest.cc | 243 +-- rtc/src/model/UpdateRecordTemplateRequest.cc | 318 ++-- 248 files changed, 5381 insertions(+), 16201 deletions(-) create mode 100644 rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleRequest.h rename rtc/include/alibabacloud/rtc/model/{CreateMPURuleResult.h => CreateAutoLiveStreamRuleResult.h} (69%) delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateChannelResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateConferenceResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/CreateEventSubscribeRequest.h rename rtc/include/alibabacloud/rtc/model/{CreateServiceLinkedRoleForRtcResult.h => CreateEventSubscribeResult.h} (66%) delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateMPURuleRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h rename rtc/include/alibabacloud/rtc/model/{DescribeMPULayoutListResult.h => CreateRecordIndexFileResult.h} (62%) delete mode 100644 rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h rename rtc/include/alibabacloud/rtc/model/{DeleteChannelResult.h => DeleteAutoLiveStreamRuleResult.h} (68%) delete mode 100644 rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DeleteConferenceRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h rename rtc/include/alibabacloud/rtc/model/{DeleteConferenceResult.h => DeleteEventSubscribeResult.h} (69%) delete mode 100644 rtc/include/alibabacloud/rtc/model/DeleteMPURuleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeAppsResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleRequest.h rename rtc/include/alibabacloud/rtc/model/{DescribeMPURuleResult.h => DescribeAutoLiveStreamRuleResult.h} (64%) delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeMPURuleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcScaleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcScaleResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DescribeRtcUserListResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DisableMPURuleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/DisableMPURuleResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleRequest.h create mode 100644 rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/EnableMPURuleRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/EnableMPURuleResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/ModifyAppResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/MuteAudioAllResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/MuteAudioResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/ReceiveNotifyRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/ReceiveNotifyResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/RemoveParticipantsResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/SetChannelPropertyRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/SetChannelPropertyResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UnmuteAudioAllResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UnmuteAudioResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleRequest.h rename rtc/include/alibabacloud/rtc/model/{ModifyConferenceResult.h => UpdateAutoLiveStreamRuleResult.h} (66%) delete mode 100644 rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UpdateChannelResult.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h delete mode 100644 rtc/include/alibabacloud/rtc/model/UpdateMPULayoutResult.h create mode 100644 rtc/include/alibabacloud/rtc/model/UpdateMPUTaskRequest.h rename rtc/include/alibabacloud/rtc/model/{DeleteMPURuleResult.h => UpdateMPUTaskResult.h} (73%) create mode 100644 rtc/src/model/CreateAutoLiveStreamRuleRequest.cc rename rtc/src/model/{CreateMPURuleResult.cc => CreateAutoLiveStreamRuleResult.cc} (70%) delete mode 100644 rtc/src/model/CreateChannelRequest.cc delete mode 100644 rtc/src/model/CreateChannelResult.cc delete mode 100644 rtc/src/model/CreateConferenceRequest.cc delete mode 100644 rtc/src/model/CreateConferenceResult.cc create mode 100644 rtc/src/model/CreateEventSubscribeRequest.cc rename rtc/src/model/{DescribeRTCAppKeyResult.cc => CreateEventSubscribeResult.cc} (64%) delete mode 100644 rtc/src/model/CreateMPURuleRequest.cc create mode 100644 rtc/src/model/CreateRecordIndexFileRequest.cc rename rtc/src/model/{DescribeMPULayoutListResult.cc => CreateRecordIndexFileResult.cc} (51%) delete mode 100644 rtc/src/model/CreateServiceLinkedRoleForRtcRequest.cc delete mode 100644 rtc/src/model/CreateServiceLinkedRoleForRtcResult.cc create mode 100644 rtc/src/model/DeleteAutoLiveStreamRuleRequest.cc rename rtc/src/model/{DeleteChannelResult.cc => DeleteAutoLiveStreamRuleResult.cc} (71%) delete mode 100644 rtc/src/model/DeleteChannelRequest.cc delete mode 100644 rtc/src/model/DeleteConferenceRequest.cc create mode 100644 rtc/src/model/DeleteEventSubscribeRequest.cc rename rtc/src/model/{DeleteConferenceResult.cc => DeleteEventSubscribeResult.cc} (73%) delete mode 100644 rtc/src/model/DeleteMPURuleRequest.cc delete mode 100644 rtc/src/model/DescribeAppsRequest.cc delete mode 100644 rtc/src/model/DescribeAppsResult.cc create mode 100644 rtc/src/model/DescribeAutoLiveStreamRuleRequest.cc rename rtc/src/model/{DescribeMPURuleResult.cc => DescribeAutoLiveStreamRuleResult.cc} (57%) delete mode 100644 rtc/src/model/DescribeConferenceAuthInfoRequest.cc delete mode 100644 rtc/src/model/DescribeConferenceAuthInfoResult.cc delete mode 100644 rtc/src/model/DescribeMPULayoutInfoRequest.cc delete mode 100644 rtc/src/model/DescribeMPULayoutInfoResult.cc delete mode 100644 rtc/src/model/DescribeMPULayoutListRequest.cc delete mode 100644 rtc/src/model/DescribeMPURuleRequest.cc delete mode 100644 rtc/src/model/DescribeRTCAppKeyRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelCntDataRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelCntDataResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelDetailRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelDetailResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelListRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelListResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelMetricRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelMetricResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelMetricsRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelMetricsResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelUserListRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelUserListResult.cc delete mode 100644 rtc/src/model/DescribeRtcChannelsRequest.cc delete mode 100644 rtc/src/model/DescribeRtcChannelsResult.cc delete mode 100644 rtc/src/model/DescribeRtcDurationDataRequest.cc delete mode 100644 rtc/src/model/DescribeRtcDurationDataResult.cc delete mode 100644 rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc delete mode 100644 rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc delete mode 100644 rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc delete mode 100644 rtc/src/model/DescribeRtcPeakUserCntDataResult.cc delete mode 100644 rtc/src/model/DescribeRtcQualityMetricRequest.cc delete mode 100644 rtc/src/model/DescribeRtcQualityMetricResult.cc delete mode 100644 rtc/src/model/DescribeRtcScaleDetailRequest.cc delete mode 100644 rtc/src/model/DescribeRtcScaleDetailResult.cc delete mode 100644 rtc/src/model/DescribeRtcScaleRequest.cc delete mode 100644 rtc/src/model/DescribeRtcScaleResult.cc delete mode 100644 rtc/src/model/DescribeRtcUserCntDataRequest.cc delete mode 100644 rtc/src/model/DescribeRtcUserCntDataResult.cc delete mode 100644 rtc/src/model/DescribeRtcUserEventsRequest.cc delete mode 100644 rtc/src/model/DescribeRtcUserEventsResult.cc delete mode 100644 rtc/src/model/DescribeRtcUserListRequest.cc delete mode 100644 rtc/src/model/DescribeRtcUserListResult.cc create mode 100644 rtc/src/model/DisableAutoLiveStreamRuleRequest.cc rename rtc/src/model/{DeleteMPURuleResult.cc => DisableAutoLiveStreamRuleResult.cc} (71%) delete mode 100644 rtc/src/model/DisableMPURuleRequest.cc create mode 100644 rtc/src/model/EnableAutoLiveStreamRuleRequest.cc rename rtc/src/model/{DisableMPURuleResult.cc => EnableAutoLiveStreamRuleResult.cc} (71%) delete mode 100644 rtc/src/model/EnableMPURuleRequest.cc delete mode 100644 rtc/src/model/ModifyAppRequest.cc delete mode 100644 rtc/src/model/ModifyAppResult.cc delete mode 100644 rtc/src/model/ModifyConferenceRequest.cc delete mode 100644 rtc/src/model/MuteAudioAllRequest.cc delete mode 100644 rtc/src/model/MuteAudioAllResult.cc delete mode 100644 rtc/src/model/MuteAudioRequest.cc delete mode 100644 rtc/src/model/MuteAudioResult.cc delete mode 100644 rtc/src/model/ReceiveNotifyRequest.cc delete mode 100644 rtc/src/model/ReceiveNotifyResult.cc delete mode 100644 rtc/src/model/RemoveParticipantsRequest.cc delete mode 100644 rtc/src/model/RemoveParticipantsResult.cc delete mode 100644 rtc/src/model/SetChannelPropertyRequest.cc delete mode 100644 rtc/src/model/SetChannelPropertyResult.cc delete mode 100644 rtc/src/model/UnmuteAudioAllRequest.cc delete mode 100644 rtc/src/model/UnmuteAudioAllResult.cc delete mode 100644 rtc/src/model/UnmuteAudioRequest.cc delete mode 100644 rtc/src/model/UnmuteAudioResult.cc create mode 100644 rtc/src/model/UpdateAutoLiveStreamRuleRequest.cc rename rtc/src/model/{ModifyConferenceResult.cc => UpdateAutoLiveStreamRuleResult.cc} (64%) delete mode 100644 rtc/src/model/UpdateChannelRequest.cc delete mode 100644 rtc/src/model/UpdateChannelResult.cc delete mode 100644 rtc/src/model/UpdateMPULayoutRequest.cc delete mode 100644 rtc/src/model/UpdateMPULayoutResult.cc create mode 100644 rtc/src/model/UpdateMPUTaskRequest.cc rename rtc/src/model/{EnableMPURuleResult.cc => UpdateMPUTaskResult.cc} (77%) diff --git a/CHANGELOG b/CHANGELOG index e0ca677f7..74cd2c923 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2021-11-23 Version: 1.36.943 +- Delete some abandoned interface in SDK. +- Add AutoLiveStream series interfaces. +- Add UpdateMPUTask, CreateRecordIndexFile interfaces. + 2021-11-23 Version: 1.36.942 - Update RecognizeCharacter. diff --git a/VERSION b/VERSION index 157598ad3..d8eca4981 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.942 \ No newline at end of file +1.36.943 \ No newline at end of file diff --git a/rtc/CMakeLists.txt b/rtc/CMakeLists.txt index 20d212803..8c0b75a19 100644 --- a/rtc/CMakeLists.txt +++ b/rtc/CMakeLists.txt @@ -23,108 +23,48 @@ set(rtc_public_header set(rtc_public_header_model include/alibabacloud/rtc/model/AddRecordTemplateRequest.h include/alibabacloud/rtc/model/AddRecordTemplateResult.h - include/alibabacloud/rtc/model/CreateChannelRequest.h - include/alibabacloud/rtc/model/CreateChannelResult.h - include/alibabacloud/rtc/model/CreateConferenceRequest.h - include/alibabacloud/rtc/model/CreateConferenceResult.h + include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleResult.h + include/alibabacloud/rtc/model/CreateEventSubscribeRequest.h + include/alibabacloud/rtc/model/CreateEventSubscribeResult.h include/alibabacloud/rtc/model/CreateMPULayoutRequest.h include/alibabacloud/rtc/model/CreateMPULayoutResult.h - include/alibabacloud/rtc/model/CreateMPURuleRequest.h - include/alibabacloud/rtc/model/CreateMPURuleResult.h - include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcRequest.h - include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcResult.h - include/alibabacloud/rtc/model/DeleteChannelRequest.h - include/alibabacloud/rtc/model/DeleteChannelResult.h - include/alibabacloud/rtc/model/DeleteConferenceRequest.h - include/alibabacloud/rtc/model/DeleteConferenceResult.h + include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h + include/alibabacloud/rtc/model/CreateRecordIndexFileResult.h + include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleResult.h + include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h + include/alibabacloud/rtc/model/DeleteEventSubscribeResult.h include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h include/alibabacloud/rtc/model/DeleteMPULayoutResult.h - include/alibabacloud/rtc/model/DeleteMPURuleRequest.h - include/alibabacloud/rtc/model/DeleteMPURuleResult.h include/alibabacloud/rtc/model/DeleteRecordTemplateRequest.h include/alibabacloud/rtc/model/DeleteRecordTemplateResult.h - include/alibabacloud/rtc/model/DescribeAppsRequest.h - include/alibabacloud/rtc/model/DescribeAppsResult.h + include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleResult.h include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h include/alibabacloud/rtc/model/DescribeChannelParticipantsResult.h include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h include/alibabacloud/rtc/model/DescribeChannelUsersResult.h - include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h - include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h - include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h - include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h - include/alibabacloud/rtc/model/DescribeMPULayoutListRequest.h - include/alibabacloud/rtc/model/DescribeMPULayoutListResult.h - include/alibabacloud/rtc/model/DescribeMPURuleRequest.h - 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 - include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h - include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h - include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h - include/alibabacloud/rtc/model/DescribeRtcQualityMetricRequest.h - include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h - include/alibabacloud/rtc/model/DescribeRtcScaleRequest.h - include/alibabacloud/rtc/model/DescribeRtcScaleResult.h - include/alibabacloud/rtc/model/DescribeRtcScaleDetailRequest.h - include/alibabacloud/rtc/model/DescribeRtcScaleDetailResult.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/DisableMPURuleRequest.h - include/alibabacloud/rtc/model/DisableMPURuleResult.h - include/alibabacloud/rtc/model/EnableMPURuleRequest.h - include/alibabacloud/rtc/model/EnableMPURuleResult.h + include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleResult.h + include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleResult.h include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h include/alibabacloud/rtc/model/GetMPUTaskStatusResult.h - include/alibabacloud/rtc/model/ModifyAppRequest.h - include/alibabacloud/rtc/model/ModifyAppResult.h - include/alibabacloud/rtc/model/ModifyConferenceRequest.h - include/alibabacloud/rtc/model/ModifyConferenceResult.h include/alibabacloud/rtc/model/ModifyMPULayoutRequest.h include/alibabacloud/rtc/model/ModifyMPULayoutResult.h - include/alibabacloud/rtc/model/MuteAudioRequest.h - include/alibabacloud/rtc/model/MuteAudioResult.h - include/alibabacloud/rtc/model/MuteAudioAllRequest.h - include/alibabacloud/rtc/model/MuteAudioAllResult.h - include/alibabacloud/rtc/model/ReceiveNotifyRequest.h - include/alibabacloud/rtc/model/ReceiveNotifyResult.h - include/alibabacloud/rtc/model/RemoveParticipantsRequest.h - include/alibabacloud/rtc/model/RemoveParticipantsResult.h include/alibabacloud/rtc/model/RemoveTerminalsRequest.h include/alibabacloud/rtc/model/RemoveTerminalsResult.h - include/alibabacloud/rtc/model/SetChannelPropertyRequest.h - include/alibabacloud/rtc/model/SetChannelPropertyResult.h include/alibabacloud/rtc/model/StartMPUTaskRequest.h include/alibabacloud/rtc/model/StartMPUTaskResult.h include/alibabacloud/rtc/model/StartRecordTaskRequest.h @@ -135,14 +75,10 @@ set(rtc_public_header_model include/alibabacloud/rtc/model/StopMPUTaskResult.h include/alibabacloud/rtc/model/StopRecordTaskRequest.h include/alibabacloud/rtc/model/StopRecordTaskResult.h - include/alibabacloud/rtc/model/UnmuteAudioRequest.h - include/alibabacloud/rtc/model/UnmuteAudioResult.h - include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h - include/alibabacloud/rtc/model/UnmuteAudioAllResult.h - include/alibabacloud/rtc/model/UpdateChannelRequest.h - include/alibabacloud/rtc/model/UpdateChannelResult.h - include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h - include/alibabacloud/rtc/model/UpdateMPULayoutResult.h + include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleRequest.h + include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleResult.h + include/alibabacloud/rtc/model/UpdateMPUTaskRequest.h + include/alibabacloud/rtc/model/UpdateMPUTaskResult.h include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h include/alibabacloud/rtc/model/UpdateRecordTaskResult.h include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h @@ -152,108 +88,48 @@ set(rtc_src src/RtcClient.cc src/model/AddRecordTemplateRequest.cc src/model/AddRecordTemplateResult.cc - src/model/CreateChannelRequest.cc - src/model/CreateChannelResult.cc - src/model/CreateConferenceRequest.cc - src/model/CreateConferenceResult.cc + src/model/CreateAutoLiveStreamRuleRequest.cc + src/model/CreateAutoLiveStreamRuleResult.cc + src/model/CreateEventSubscribeRequest.cc + src/model/CreateEventSubscribeResult.cc src/model/CreateMPULayoutRequest.cc src/model/CreateMPULayoutResult.cc - src/model/CreateMPURuleRequest.cc - src/model/CreateMPURuleResult.cc - src/model/CreateServiceLinkedRoleForRtcRequest.cc - src/model/CreateServiceLinkedRoleForRtcResult.cc - src/model/DeleteChannelRequest.cc - src/model/DeleteChannelResult.cc - src/model/DeleteConferenceRequest.cc - src/model/DeleteConferenceResult.cc + src/model/CreateRecordIndexFileRequest.cc + src/model/CreateRecordIndexFileResult.cc + src/model/DeleteAutoLiveStreamRuleRequest.cc + src/model/DeleteAutoLiveStreamRuleResult.cc + src/model/DeleteEventSubscribeRequest.cc + src/model/DeleteEventSubscribeResult.cc src/model/DeleteMPULayoutRequest.cc src/model/DeleteMPULayoutResult.cc - src/model/DeleteMPURuleRequest.cc - src/model/DeleteMPURuleResult.cc src/model/DeleteRecordTemplateRequest.cc src/model/DeleteRecordTemplateResult.cc - src/model/DescribeAppsRequest.cc - src/model/DescribeAppsResult.cc + src/model/DescribeAutoLiveStreamRuleRequest.cc + src/model/DescribeAutoLiveStreamRuleResult.cc src/model/DescribeChannelParticipantsRequest.cc src/model/DescribeChannelParticipantsResult.cc src/model/DescribeChannelUsersRequest.cc src/model/DescribeChannelUsersResult.cc - src/model/DescribeConferenceAuthInfoRequest.cc - src/model/DescribeConferenceAuthInfoResult.cc - src/model/DescribeMPULayoutInfoRequest.cc - src/model/DescribeMPULayoutInfoResult.cc src/model/DescribeMPULayoutInfoListRequest.cc src/model/DescribeMPULayoutInfoListResult.cc - src/model/DescribeMPULayoutListRequest.cc - src/model/DescribeMPULayoutListResult.cc - src/model/DescribeMPURuleRequest.cc - 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 - src/model/DescribeRtcPeakChannelCntDataResult.cc - src/model/DescribeRtcPeakUserCntDataRequest.cc - src/model/DescribeRtcPeakUserCntDataResult.cc - src/model/DescribeRtcQualityMetricRequest.cc - src/model/DescribeRtcQualityMetricResult.cc - src/model/DescribeRtcScaleRequest.cc - src/model/DescribeRtcScaleResult.cc - src/model/DescribeRtcScaleDetailRequest.cc - src/model/DescribeRtcScaleDetailResult.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/DisableMPURuleRequest.cc - src/model/DisableMPURuleResult.cc - src/model/EnableMPURuleRequest.cc - src/model/EnableMPURuleResult.cc + src/model/DisableAutoLiveStreamRuleRequest.cc + src/model/DisableAutoLiveStreamRuleResult.cc + src/model/EnableAutoLiveStreamRuleRequest.cc + src/model/EnableAutoLiveStreamRuleResult.cc src/model/GetMPUTaskStatusRequest.cc src/model/GetMPUTaskStatusResult.cc - src/model/ModifyAppRequest.cc - src/model/ModifyAppResult.cc - src/model/ModifyConferenceRequest.cc - src/model/ModifyConferenceResult.cc src/model/ModifyMPULayoutRequest.cc src/model/ModifyMPULayoutResult.cc - src/model/MuteAudioRequest.cc - src/model/MuteAudioResult.cc - src/model/MuteAudioAllRequest.cc - src/model/MuteAudioAllResult.cc - src/model/ReceiveNotifyRequest.cc - src/model/ReceiveNotifyResult.cc - src/model/RemoveParticipantsRequest.cc - src/model/RemoveParticipantsResult.cc src/model/RemoveTerminalsRequest.cc src/model/RemoveTerminalsResult.cc - src/model/SetChannelPropertyRequest.cc - src/model/SetChannelPropertyResult.cc src/model/StartMPUTaskRequest.cc src/model/StartMPUTaskResult.cc src/model/StartRecordTaskRequest.cc @@ -264,14 +140,10 @@ set(rtc_src src/model/StopMPUTaskResult.cc src/model/StopRecordTaskRequest.cc src/model/StopRecordTaskResult.cc - src/model/UnmuteAudioRequest.cc - src/model/UnmuteAudioResult.cc - src/model/UnmuteAudioAllRequest.cc - src/model/UnmuteAudioAllResult.cc - src/model/UpdateChannelRequest.cc - src/model/UpdateChannelResult.cc - src/model/UpdateMPULayoutRequest.cc - src/model/UpdateMPULayoutResult.cc + src/model/UpdateAutoLiveStreamRuleRequest.cc + src/model/UpdateAutoLiveStreamRuleResult.cc + src/model/UpdateMPUTaskRequest.cc + src/model/UpdateMPUTaskResult.cc src/model/UpdateRecordTaskRequest.cc src/model/UpdateRecordTaskResult.cc src/model/UpdateRecordTemplateRequest.cc diff --git a/rtc/include/alibabacloud/rtc/RtcClient.h b/rtc/include/alibabacloud/rtc/RtcClient.h index d9c770604..4d88a6e59 100644 --- a/rtc/include/alibabacloud/rtc/RtcClient.h +++ b/rtc/include/alibabacloud/rtc/RtcClient.h @@ -24,108 +24,48 @@ #include "RtcExport.h" #include "model/AddRecordTemplateRequest.h" #include "model/AddRecordTemplateResult.h" -#include "model/CreateChannelRequest.h" -#include "model/CreateChannelResult.h" -#include "model/CreateConferenceRequest.h" -#include "model/CreateConferenceResult.h" +#include "model/CreateAutoLiveStreamRuleRequest.h" +#include "model/CreateAutoLiveStreamRuleResult.h" +#include "model/CreateEventSubscribeRequest.h" +#include "model/CreateEventSubscribeResult.h" #include "model/CreateMPULayoutRequest.h" #include "model/CreateMPULayoutResult.h" -#include "model/CreateMPURuleRequest.h" -#include "model/CreateMPURuleResult.h" -#include "model/CreateServiceLinkedRoleForRtcRequest.h" -#include "model/CreateServiceLinkedRoleForRtcResult.h" -#include "model/DeleteChannelRequest.h" -#include "model/DeleteChannelResult.h" -#include "model/DeleteConferenceRequest.h" -#include "model/DeleteConferenceResult.h" +#include "model/CreateRecordIndexFileRequest.h" +#include "model/CreateRecordIndexFileResult.h" +#include "model/DeleteAutoLiveStreamRuleRequest.h" +#include "model/DeleteAutoLiveStreamRuleResult.h" +#include "model/DeleteEventSubscribeRequest.h" +#include "model/DeleteEventSubscribeResult.h" #include "model/DeleteMPULayoutRequest.h" #include "model/DeleteMPULayoutResult.h" -#include "model/DeleteMPURuleRequest.h" -#include "model/DeleteMPURuleResult.h" #include "model/DeleteRecordTemplateRequest.h" #include "model/DeleteRecordTemplateResult.h" -#include "model/DescribeAppsRequest.h" -#include "model/DescribeAppsResult.h" +#include "model/DescribeAutoLiveStreamRuleRequest.h" +#include "model/DescribeAutoLiveStreamRuleResult.h" #include "model/DescribeChannelParticipantsRequest.h" #include "model/DescribeChannelParticipantsResult.h" #include "model/DescribeChannelUsersRequest.h" #include "model/DescribeChannelUsersResult.h" -#include "model/DescribeConferenceAuthInfoRequest.h" -#include "model/DescribeConferenceAuthInfoResult.h" -#include "model/DescribeMPULayoutInfoRequest.h" -#include "model/DescribeMPULayoutInfoResult.h" #include "model/DescribeMPULayoutInfoListRequest.h" #include "model/DescribeMPULayoutInfoListResult.h" -#include "model/DescribeMPULayoutListRequest.h" -#include "model/DescribeMPULayoutListResult.h" -#include "model/DescribeMPURuleRequest.h" -#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" -#include "model/DescribeRtcPeakChannelCntDataResult.h" -#include "model/DescribeRtcPeakUserCntDataRequest.h" -#include "model/DescribeRtcPeakUserCntDataResult.h" -#include "model/DescribeRtcQualityMetricRequest.h" -#include "model/DescribeRtcQualityMetricResult.h" -#include "model/DescribeRtcScaleRequest.h" -#include "model/DescribeRtcScaleResult.h" -#include "model/DescribeRtcScaleDetailRequest.h" -#include "model/DescribeRtcScaleDetailResult.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/DisableMPURuleRequest.h" -#include "model/DisableMPURuleResult.h" -#include "model/EnableMPURuleRequest.h" -#include "model/EnableMPURuleResult.h" +#include "model/DisableAutoLiveStreamRuleRequest.h" +#include "model/DisableAutoLiveStreamRuleResult.h" +#include "model/EnableAutoLiveStreamRuleRequest.h" +#include "model/EnableAutoLiveStreamRuleResult.h" #include "model/GetMPUTaskStatusRequest.h" #include "model/GetMPUTaskStatusResult.h" -#include "model/ModifyAppRequest.h" -#include "model/ModifyAppResult.h" -#include "model/ModifyConferenceRequest.h" -#include "model/ModifyConferenceResult.h" #include "model/ModifyMPULayoutRequest.h" #include "model/ModifyMPULayoutResult.h" -#include "model/MuteAudioRequest.h" -#include "model/MuteAudioResult.h" -#include "model/MuteAudioAllRequest.h" -#include "model/MuteAudioAllResult.h" -#include "model/ReceiveNotifyRequest.h" -#include "model/ReceiveNotifyResult.h" -#include "model/RemoveParticipantsRequest.h" -#include "model/RemoveParticipantsResult.h" #include "model/RemoveTerminalsRequest.h" #include "model/RemoveTerminalsResult.h" -#include "model/SetChannelPropertyRequest.h" -#include "model/SetChannelPropertyResult.h" #include "model/StartMPUTaskRequest.h" #include "model/StartMPUTaskResult.h" #include "model/StartRecordTaskRequest.h" @@ -136,14 +76,10 @@ #include "model/StopMPUTaskResult.h" #include "model/StopRecordTaskRequest.h" #include "model/StopRecordTaskResult.h" -#include "model/UnmuteAudioRequest.h" -#include "model/UnmuteAudioResult.h" -#include "model/UnmuteAudioAllRequest.h" -#include "model/UnmuteAudioAllResult.h" -#include "model/UpdateChannelRequest.h" -#include "model/UpdateChannelResult.h" -#include "model/UpdateMPULayoutRequest.h" -#include "model/UpdateMPULayoutResult.h" +#include "model/UpdateAutoLiveStreamRuleRequest.h" +#include "model/UpdateAutoLiveStreamRuleResult.h" +#include "model/UpdateMPUTaskRequest.h" +#include "model/UpdateMPUTaskResult.h" #include "model/UpdateRecordTaskRequest.h" #include "model/UpdateRecordTaskResult.h" #include "model/UpdateRecordTemplateRequest.h" @@ -160,63 +96,42 @@ namespace AlibabaCloud typedef Outcome AddRecordTemplateOutcome; typedef std::future AddRecordTemplateOutcomeCallable; typedef std::function&)> AddRecordTemplateAsyncHandler; - typedef Outcome CreateChannelOutcome; - typedef std::future CreateChannelOutcomeCallable; - typedef std::function&)> CreateChannelAsyncHandler; - typedef Outcome CreateConferenceOutcome; - typedef std::future CreateConferenceOutcomeCallable; - typedef std::function&)> CreateConferenceAsyncHandler; + typedef Outcome CreateAutoLiveStreamRuleOutcome; + typedef std::future CreateAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> CreateAutoLiveStreamRuleAsyncHandler; + typedef Outcome CreateEventSubscribeOutcome; + typedef std::future CreateEventSubscribeOutcomeCallable; + typedef std::function&)> CreateEventSubscribeAsyncHandler; typedef Outcome CreateMPULayoutOutcome; typedef std::future CreateMPULayoutOutcomeCallable; typedef std::function&)> CreateMPULayoutAsyncHandler; - typedef Outcome CreateMPURuleOutcome; - typedef std::future CreateMPURuleOutcomeCallable; - typedef std::function&)> CreateMPURuleAsyncHandler; - typedef Outcome CreateServiceLinkedRoleForRtcOutcome; - typedef std::future CreateServiceLinkedRoleForRtcOutcomeCallable; - typedef std::function&)> CreateServiceLinkedRoleForRtcAsyncHandler; - typedef Outcome DeleteChannelOutcome; - typedef std::future DeleteChannelOutcomeCallable; - typedef std::function&)> DeleteChannelAsyncHandler; - typedef Outcome DeleteConferenceOutcome; - typedef std::future DeleteConferenceOutcomeCallable; - typedef std::function&)> DeleteConferenceAsyncHandler; + typedef Outcome CreateRecordIndexFileOutcome; + typedef std::future CreateRecordIndexFileOutcomeCallable; + typedef std::function&)> CreateRecordIndexFileAsyncHandler; + typedef Outcome DeleteAutoLiveStreamRuleOutcome; + typedef std::future DeleteAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> DeleteAutoLiveStreamRuleAsyncHandler; + typedef Outcome DeleteEventSubscribeOutcome; + typedef std::future DeleteEventSubscribeOutcomeCallable; + typedef std::function&)> DeleteEventSubscribeAsyncHandler; typedef Outcome DeleteMPULayoutOutcome; typedef std::future DeleteMPULayoutOutcomeCallable; typedef std::function&)> DeleteMPULayoutAsyncHandler; - typedef Outcome DeleteMPURuleOutcome; - typedef std::future DeleteMPURuleOutcomeCallable; - typedef std::function&)> DeleteMPURuleAsyncHandler; typedef Outcome DeleteRecordTemplateOutcome; typedef std::future DeleteRecordTemplateOutcomeCallable; typedef std::function&)> DeleteRecordTemplateAsyncHandler; - typedef Outcome DescribeAppsOutcome; - typedef std::future DescribeAppsOutcomeCallable; - typedef std::function&)> DescribeAppsAsyncHandler; + typedef Outcome DescribeAutoLiveStreamRuleOutcome; + typedef std::future DescribeAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> DescribeAutoLiveStreamRuleAsyncHandler; typedef Outcome DescribeChannelParticipantsOutcome; typedef std::future DescribeChannelParticipantsOutcomeCallable; typedef std::function&)> DescribeChannelParticipantsAsyncHandler; typedef Outcome DescribeChannelUsersOutcome; typedef std::future DescribeChannelUsersOutcomeCallable; typedef std::function&)> DescribeChannelUsersAsyncHandler; - typedef Outcome DescribeConferenceAuthInfoOutcome; - typedef std::future DescribeConferenceAuthInfoOutcomeCallable; - typedef std::function&)> DescribeConferenceAuthInfoAsyncHandler; - typedef Outcome DescribeMPULayoutInfoOutcome; - typedef std::future DescribeMPULayoutInfoOutcomeCallable; - typedef std::function&)> DescribeMPULayoutInfoAsyncHandler; typedef Outcome DescribeMPULayoutInfoListOutcome; typedef std::future DescribeMPULayoutInfoListOutcomeCallable; typedef std::function&)> DescribeMPULayoutInfoListAsyncHandler; - typedef Outcome DescribeMPULayoutListOutcome; - typedef std::future DescribeMPULayoutListOutcomeCallable; - typedef std::function&)> DescribeMPULayoutListAsyncHandler; - typedef Outcome DescribeMPURuleOutcome; - typedef std::future DescribeMPURuleOutcomeCallable; - typedef std::function&)> DescribeMPURuleAsyncHandler; - typedef Outcome DescribeRTCAppKeyOutcome; - typedef std::future DescribeRTCAppKeyOutcomeCallable; - typedef std::function&)> DescribeRTCAppKeyAsyncHandler; typedef Outcome DescribeRecordFilesOutcome; typedef std::future DescribeRecordFilesOutcomeCallable; typedef std::function&)> DescribeRecordFilesAsyncHandler; @@ -226,93 +141,24 @@ namespace AlibabaCloud 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; - typedef Outcome DescribeRtcPeakChannelCntDataOutcome; - typedef std::future DescribeRtcPeakChannelCntDataOutcomeCallable; - typedef std::function&)> DescribeRtcPeakChannelCntDataAsyncHandler; - typedef Outcome DescribeRtcPeakUserCntDataOutcome; - typedef std::future DescribeRtcPeakUserCntDataOutcomeCallable; - typedef std::function&)> DescribeRtcPeakUserCntDataAsyncHandler; - typedef Outcome DescribeRtcQualityMetricOutcome; - typedef std::future DescribeRtcQualityMetricOutcomeCallable; - typedef std::function&)> DescribeRtcQualityMetricAsyncHandler; - typedef Outcome DescribeRtcScaleOutcome; - typedef std::future DescribeRtcScaleOutcomeCallable; - typedef std::function&)> DescribeRtcScaleAsyncHandler; - typedef Outcome DescribeRtcScaleDetailOutcome; - typedef std::future DescribeRtcScaleDetailOutcomeCallable; - typedef std::function&)> DescribeRtcScaleDetailAsyncHandler; - 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 DisableMPURuleOutcome; - typedef std::future DisableMPURuleOutcomeCallable; - typedef std::function&)> DisableMPURuleAsyncHandler; - typedef Outcome EnableMPURuleOutcome; - typedef std::future EnableMPURuleOutcomeCallable; - typedef std::function&)> EnableMPURuleAsyncHandler; + typedef Outcome DisableAutoLiveStreamRuleOutcome; + typedef std::future DisableAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> DisableAutoLiveStreamRuleAsyncHandler; + typedef Outcome EnableAutoLiveStreamRuleOutcome; + typedef std::future EnableAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> EnableAutoLiveStreamRuleAsyncHandler; typedef Outcome GetMPUTaskStatusOutcome; typedef std::future GetMPUTaskStatusOutcomeCallable; typedef std::function&)> GetMPUTaskStatusAsyncHandler; - typedef Outcome ModifyAppOutcome; - typedef std::future ModifyAppOutcomeCallable; - typedef std::function&)> ModifyAppAsyncHandler; - typedef Outcome ModifyConferenceOutcome; - typedef std::future ModifyConferenceOutcomeCallable; - typedef std::function&)> ModifyConferenceAsyncHandler; typedef Outcome ModifyMPULayoutOutcome; typedef std::future ModifyMPULayoutOutcomeCallable; typedef std::function&)> ModifyMPULayoutAsyncHandler; - typedef Outcome MuteAudioOutcome; - typedef std::future MuteAudioOutcomeCallable; - typedef std::function&)> MuteAudioAsyncHandler; - typedef Outcome MuteAudioAllOutcome; - typedef std::future MuteAudioAllOutcomeCallable; - typedef std::function&)> MuteAudioAllAsyncHandler; - typedef Outcome ReceiveNotifyOutcome; - typedef std::future ReceiveNotifyOutcomeCallable; - typedef std::function&)> ReceiveNotifyAsyncHandler; - typedef Outcome RemoveParticipantsOutcome; - typedef std::future RemoveParticipantsOutcomeCallable; - typedef std::function&)> RemoveParticipantsAsyncHandler; typedef Outcome RemoveTerminalsOutcome; typedef std::future RemoveTerminalsOutcomeCallable; typedef std::function&)> RemoveTerminalsAsyncHandler; - typedef Outcome SetChannelPropertyOutcome; - typedef std::future SetChannelPropertyOutcomeCallable; - typedef std::function&)> SetChannelPropertyAsyncHandler; typedef Outcome StartMPUTaskOutcome; typedef std::future StartMPUTaskOutcomeCallable; typedef std::function&)> StartMPUTaskAsyncHandler; @@ -328,18 +174,12 @@ namespace AlibabaCloud typedef Outcome StopRecordTaskOutcome; typedef std::future StopRecordTaskOutcomeCallable; typedef std::function&)> StopRecordTaskAsyncHandler; - typedef Outcome UnmuteAudioOutcome; - typedef std::future UnmuteAudioOutcomeCallable; - typedef std::function&)> UnmuteAudioAsyncHandler; - typedef Outcome UnmuteAudioAllOutcome; - typedef std::future UnmuteAudioAllOutcomeCallable; - typedef std::function&)> UnmuteAudioAllAsyncHandler; - typedef Outcome UpdateChannelOutcome; - typedef std::future UpdateChannelOutcomeCallable; - typedef std::function&)> UpdateChannelAsyncHandler; - typedef Outcome UpdateMPULayoutOutcome; - typedef std::future UpdateMPULayoutOutcomeCallable; - typedef std::function&)> UpdateMPULayoutAsyncHandler; + typedef Outcome UpdateAutoLiveStreamRuleOutcome; + typedef std::future UpdateAutoLiveStreamRuleOutcomeCallable; + typedef std::function&)> UpdateAutoLiveStreamRuleAsyncHandler; + typedef Outcome UpdateMPUTaskOutcome; + typedef std::future UpdateMPUTaskOutcomeCallable; + typedef std::function&)> UpdateMPUTaskAsyncHandler; typedef Outcome UpdateRecordTaskOutcome; typedef std::future UpdateRecordTaskOutcomeCallable; typedef std::function&)> UpdateRecordTaskAsyncHandler; @@ -354,63 +194,42 @@ namespace AlibabaCloud AddRecordTemplateOutcome addRecordTemplate(const Model::AddRecordTemplateRequest &request)const; void addRecordTemplateAsync(const Model::AddRecordTemplateRequest& request, const AddRecordTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddRecordTemplateOutcomeCallable addRecordTemplateCallable(const Model::AddRecordTemplateRequest& request) const; - CreateChannelOutcome createChannel(const Model::CreateChannelRequest &request)const; - void createChannelAsync(const Model::CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateChannelOutcomeCallable createChannelCallable(const Model::CreateChannelRequest& request) const; - 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; + CreateAutoLiveStreamRuleOutcome createAutoLiveStreamRule(const Model::CreateAutoLiveStreamRuleRequest &request)const; + void createAutoLiveStreamRuleAsync(const Model::CreateAutoLiveStreamRuleRequest& request, const CreateAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAutoLiveStreamRuleOutcomeCallable createAutoLiveStreamRuleCallable(const Model::CreateAutoLiveStreamRuleRequest& request) const; + CreateEventSubscribeOutcome createEventSubscribe(const Model::CreateEventSubscribeRequest &request)const; + void createEventSubscribeAsync(const Model::CreateEventSubscribeRequest& request, const CreateEventSubscribeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEventSubscribeOutcomeCallable createEventSubscribeCallable(const Model::CreateEventSubscribeRequest& 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; - CreateMPURuleOutcome createMPURule(const Model::CreateMPURuleRequest &request)const; - void createMPURuleAsync(const Model::CreateMPURuleRequest& request, const CreateMPURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMPURuleOutcomeCallable createMPURuleCallable(const Model::CreateMPURuleRequest& request) const; - CreateServiceLinkedRoleForRtcOutcome createServiceLinkedRoleForRtc(const Model::CreateServiceLinkedRoleForRtcRequest &request)const; - void createServiceLinkedRoleForRtcAsync(const Model::CreateServiceLinkedRoleForRtcRequest& request, const CreateServiceLinkedRoleForRtcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateServiceLinkedRoleForRtcOutcomeCallable createServiceLinkedRoleForRtcCallable(const Model::CreateServiceLinkedRoleForRtcRequest& request) const; - DeleteChannelOutcome deleteChannel(const Model::DeleteChannelRequest &request)const; - void deleteChannelAsync(const Model::DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteChannelOutcomeCallable deleteChannelCallable(const Model::DeleteChannelRequest& request) const; - 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; + CreateRecordIndexFileOutcome createRecordIndexFile(const Model::CreateRecordIndexFileRequest &request)const; + void createRecordIndexFileAsync(const Model::CreateRecordIndexFileRequest& request, const CreateRecordIndexFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRecordIndexFileOutcomeCallable createRecordIndexFileCallable(const Model::CreateRecordIndexFileRequest& request) const; + DeleteAutoLiveStreamRuleOutcome deleteAutoLiveStreamRule(const Model::DeleteAutoLiveStreamRuleRequest &request)const; + void deleteAutoLiveStreamRuleAsync(const Model::DeleteAutoLiveStreamRuleRequest& request, const DeleteAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAutoLiveStreamRuleOutcomeCallable deleteAutoLiveStreamRuleCallable(const Model::DeleteAutoLiveStreamRuleRequest& request) const; + DeleteEventSubscribeOutcome deleteEventSubscribe(const Model::DeleteEventSubscribeRequest &request)const; + void deleteEventSubscribeAsync(const Model::DeleteEventSubscribeRequest& request, const DeleteEventSubscribeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventSubscribeOutcomeCallable deleteEventSubscribeCallable(const Model::DeleteEventSubscribeRequest& 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; - DeleteMPURuleOutcome deleteMPURule(const Model::DeleteMPURuleRequest &request)const; - void deleteMPURuleAsync(const Model::DeleteMPURuleRequest& request, const DeleteMPURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMPURuleOutcomeCallable deleteMPURuleCallable(const Model::DeleteMPURuleRequest& request) const; DeleteRecordTemplateOutcome deleteRecordTemplate(const Model::DeleteRecordTemplateRequest &request)const; void deleteRecordTemplateAsync(const Model::DeleteRecordTemplateRequest& request, const DeleteRecordTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRecordTemplateOutcomeCallable deleteRecordTemplateCallable(const Model::DeleteRecordTemplateRequest& request) const; - DescribeAppsOutcome describeApps(const Model::DescribeAppsRequest &request)const; - void describeAppsAsync(const Model::DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAppsOutcomeCallable describeAppsCallable(const Model::DescribeAppsRequest& request) const; + DescribeAutoLiveStreamRuleOutcome describeAutoLiveStreamRule(const Model::DescribeAutoLiveStreamRuleRequest &request)const; + void describeAutoLiveStreamRuleAsync(const Model::DescribeAutoLiveStreamRuleRequest& request, const DescribeAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoLiveStreamRuleOutcomeCallable describeAutoLiveStreamRuleCallable(const Model::DescribeAutoLiveStreamRuleRequest& request) const; DescribeChannelParticipantsOutcome describeChannelParticipants(const Model::DescribeChannelParticipantsRequest &request)const; void describeChannelParticipantsAsync(const Model::DescribeChannelParticipantsRequest& request, const DescribeChannelParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeChannelParticipantsOutcomeCallable describeChannelParticipantsCallable(const Model::DescribeChannelParticipantsRequest& request) const; DescribeChannelUsersOutcome describeChannelUsers(const Model::DescribeChannelUsersRequest &request)const; void describeChannelUsersAsync(const Model::DescribeChannelUsersRequest& request, const DescribeChannelUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeChannelUsersOutcomeCallable describeChannelUsersCallable(const Model::DescribeChannelUsersRequest& request) const; - 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; - 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; DescribeMPULayoutInfoListOutcome describeMPULayoutInfoList(const Model::DescribeMPULayoutInfoListRequest &request)const; void describeMPULayoutInfoListAsync(const Model::DescribeMPULayoutInfoListRequest& request, const DescribeMPULayoutInfoListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMPULayoutInfoListOutcomeCallable describeMPULayoutInfoListCallable(const Model::DescribeMPULayoutInfoListRequest& request) const; - DescribeMPULayoutListOutcome describeMPULayoutList(const Model::DescribeMPULayoutListRequest &request)const; - void describeMPULayoutListAsync(const Model::DescribeMPULayoutListRequest& request, const DescribeMPULayoutListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMPULayoutListOutcomeCallable describeMPULayoutListCallable(const Model::DescribeMPULayoutListRequest& request) const; - DescribeMPURuleOutcome describeMPURule(const Model::DescribeMPURuleRequest &request)const; - void describeMPURuleAsync(const Model::DescribeMPURuleRequest& request, const DescribeMPURuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMPURuleOutcomeCallable describeMPURuleCallable(const Model::DescribeMPURuleRequest& request) const; - 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; @@ -420,93 +239,24 @@ namespace AlibabaCloud 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; - DescribeRtcPeakChannelCntDataOutcome describeRtcPeakChannelCntData(const Model::DescribeRtcPeakChannelCntDataRequest &request)const; - void describeRtcPeakChannelCntDataAsync(const Model::DescribeRtcPeakChannelCntDataRequest& request, const DescribeRtcPeakChannelCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRtcPeakChannelCntDataOutcomeCallable describeRtcPeakChannelCntDataCallable(const Model::DescribeRtcPeakChannelCntDataRequest& request) const; - DescribeRtcPeakUserCntDataOutcome describeRtcPeakUserCntData(const Model::DescribeRtcPeakUserCntDataRequest &request)const; - void describeRtcPeakUserCntDataAsync(const Model::DescribeRtcPeakUserCntDataRequest& request, const DescribeRtcPeakUserCntDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRtcPeakUserCntDataOutcomeCallable describeRtcPeakUserCntDataCallable(const Model::DescribeRtcPeakUserCntDataRequest& request) const; - DescribeRtcQualityMetricOutcome describeRtcQualityMetric(const Model::DescribeRtcQualityMetricRequest &request)const; - void describeRtcQualityMetricAsync(const Model::DescribeRtcQualityMetricRequest& request, const DescribeRtcQualityMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRtcQualityMetricOutcomeCallable describeRtcQualityMetricCallable(const Model::DescribeRtcQualityMetricRequest& request) const; - DescribeRtcScaleOutcome describeRtcScale(const Model::DescribeRtcScaleRequest &request)const; - void describeRtcScaleAsync(const Model::DescribeRtcScaleRequest& request, const DescribeRtcScaleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRtcScaleOutcomeCallable describeRtcScaleCallable(const Model::DescribeRtcScaleRequest& request) const; - DescribeRtcScaleDetailOutcome describeRtcScaleDetail(const Model::DescribeRtcScaleDetailRequest &request)const; - void describeRtcScaleDetailAsync(const Model::DescribeRtcScaleDetailRequest& request, const DescribeRtcScaleDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRtcScaleDetailOutcomeCallable describeRtcScaleDetailCallable(const Model::DescribeRtcScaleDetailRequest& request) const; - 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; - 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; - 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; + DisableAutoLiveStreamRuleOutcome disableAutoLiveStreamRule(const Model::DisableAutoLiveStreamRuleRequest &request)const; + void disableAutoLiveStreamRuleAsync(const Model::DisableAutoLiveStreamRuleRequest& request, const DisableAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableAutoLiveStreamRuleOutcomeCallable disableAutoLiveStreamRuleCallable(const Model::DisableAutoLiveStreamRuleRequest& request) const; + EnableAutoLiveStreamRuleOutcome enableAutoLiveStreamRule(const Model::EnableAutoLiveStreamRuleRequest &request)const; + void enableAutoLiveStreamRuleAsync(const Model::EnableAutoLiveStreamRuleRequest& request, const EnableAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableAutoLiveStreamRuleOutcomeCallable enableAutoLiveStreamRuleCallable(const Model::EnableAutoLiveStreamRuleRequest& request) const; GetMPUTaskStatusOutcome getMPUTaskStatus(const Model::GetMPUTaskStatusRequest &request)const; void getMPUTaskStatusAsync(const Model::GetMPUTaskStatusRequest& request, const GetMPUTaskStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMPUTaskStatusOutcomeCallable getMPUTaskStatusCallable(const Model::GetMPUTaskStatusRequest& request) const; - ModifyAppOutcome modifyApp(const Model::ModifyAppRequest &request)const; - void modifyAppAsync(const Model::ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAppOutcomeCallable modifyAppCallable(const Model::ModifyAppRequest& request) const; - ModifyConferenceOutcome modifyConference(const Model::ModifyConferenceRequest &request)const; - void modifyConferenceAsync(const Model::ModifyConferenceRequest& request, const ModifyConferenceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyConferenceOutcomeCallable modifyConferenceCallable(const Model::ModifyConferenceRequest& request) const; ModifyMPULayoutOutcome modifyMPULayout(const Model::ModifyMPULayoutRequest &request)const; void modifyMPULayoutAsync(const Model::ModifyMPULayoutRequest& request, const ModifyMPULayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyMPULayoutOutcomeCallable modifyMPULayoutCallable(const Model::ModifyMPULayoutRequest& request) const; - MuteAudioOutcome muteAudio(const Model::MuteAudioRequest &request)const; - void muteAudioAsync(const Model::MuteAudioRequest& request, const MuteAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MuteAudioOutcomeCallable muteAudioCallable(const Model::MuteAudioRequest& request) const; - MuteAudioAllOutcome muteAudioAll(const Model::MuteAudioAllRequest &request)const; - void muteAudioAllAsync(const Model::MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MuteAudioAllOutcomeCallable muteAudioAllCallable(const Model::MuteAudioAllRequest& request) const; - ReceiveNotifyOutcome receiveNotify(const Model::ReceiveNotifyRequest &request)const; - void receiveNotifyAsync(const Model::ReceiveNotifyRequest& request, const ReceiveNotifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReceiveNotifyOutcomeCallable receiveNotifyCallable(const Model::ReceiveNotifyRequest& request) const; - RemoveParticipantsOutcome removeParticipants(const Model::RemoveParticipantsRequest &request)const; - void removeParticipantsAsync(const Model::RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveParticipantsOutcomeCallable removeParticipantsCallable(const Model::RemoveParticipantsRequest& request) const; RemoveTerminalsOutcome removeTerminals(const Model::RemoveTerminalsRequest &request)const; void removeTerminalsAsync(const Model::RemoveTerminalsRequest& request, const RemoveTerminalsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveTerminalsOutcomeCallable removeTerminalsCallable(const Model::RemoveTerminalsRequest& request) const; - SetChannelPropertyOutcome setChannelProperty(const Model::SetChannelPropertyRequest &request)const; - void setChannelPropertyAsync(const Model::SetChannelPropertyRequest& request, const SetChannelPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetChannelPropertyOutcomeCallable setChannelPropertyCallable(const Model::SetChannelPropertyRequest& request) const; StartMPUTaskOutcome startMPUTask(const Model::StartMPUTaskRequest &request)const; void startMPUTaskAsync(const Model::StartMPUTaskRequest& request, const StartMPUTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartMPUTaskOutcomeCallable startMPUTaskCallable(const Model::StartMPUTaskRequest& request) const; @@ -522,18 +272,12 @@ namespace AlibabaCloud StopRecordTaskOutcome stopRecordTask(const Model::StopRecordTaskRequest &request)const; void stopRecordTaskAsync(const Model::StopRecordTaskRequest& request, const StopRecordTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopRecordTaskOutcomeCallable stopRecordTaskCallable(const Model::StopRecordTaskRequest& request) const; - UnmuteAudioOutcome unmuteAudio(const Model::UnmuteAudioRequest &request)const; - void unmuteAudioAsync(const Model::UnmuteAudioRequest& request, const UnmuteAudioAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnmuteAudioOutcomeCallable unmuteAudioCallable(const Model::UnmuteAudioRequest& request) const; - UnmuteAudioAllOutcome unmuteAudioAll(const Model::UnmuteAudioAllRequest &request)const; - void unmuteAudioAllAsync(const Model::UnmuteAudioAllRequest& request, const UnmuteAudioAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnmuteAudioAllOutcomeCallable unmuteAudioAllCallable(const Model::UnmuteAudioAllRequest& request) const; - UpdateChannelOutcome updateChannel(const Model::UpdateChannelRequest &request)const; - void updateChannelAsync(const Model::UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateChannelOutcomeCallable updateChannelCallable(const Model::UpdateChannelRequest& request) const; - 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; + UpdateAutoLiveStreamRuleOutcome updateAutoLiveStreamRule(const Model::UpdateAutoLiveStreamRuleRequest &request)const; + void updateAutoLiveStreamRuleAsync(const Model::UpdateAutoLiveStreamRuleRequest& request, const UpdateAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAutoLiveStreamRuleOutcomeCallable updateAutoLiveStreamRuleCallable(const Model::UpdateAutoLiveStreamRuleRequest& request) const; + UpdateMPUTaskOutcome updateMPUTask(const Model::UpdateMPUTaskRequest &request)const; + void updateMPUTaskAsync(const Model::UpdateMPUTaskRequest& request, const UpdateMPUTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMPUTaskOutcomeCallable updateMPUTaskCallable(const Model::UpdateMPUTaskRequest& 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; diff --git a/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h index 20068ecb6..a347e6943 100644 --- a/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h +++ b/rtc/include/alibabacloud/rtc/model/AddRecordTemplateRequest.h @@ -1,118 +1,123 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - 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(); - ~AddRecordTemplateRequest(); - - std::vector getFormats()const; - void setFormats(const std::vector& formats); - std::string getOssFilePrefix()const; - void setOssFilePrefix(const std::string& ossFilePrefix); - int getBackgroundColor()const; - void setBackgroundColor(int backgroundColor); - std::string getTaskProfile()const; - void setTaskProfile(const std::string& taskProfile); - std::vector getLayoutIds()const; - void setLayoutIds(const std::vector& layoutIds); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getOssBucket()const; - void setOssBucket(const std::string& ossBucket); - 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; - void setMediaEncode(int mediaEncode); - - private: - std::vector formats_; - std::string ossFilePrefix_; - int backgroundColor_; - std::string taskProfile_; - std::vector layoutIds_; - std::string showLog_; - std::string ossBucket_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT AddRecordTemplateRequest : public RpcServiceRequest { +public: + struct ClockWidgets { + int fontType; + int fontColor; + float y; + int zOrder; + float x; + int fontSize; + }; + struct Watermarks { + float alpha; + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + struct Backgrounds { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + AddRecordTemplateRequest(); + ~AddRecordTemplateRequest(); + std::vector getFormats() const; + void setFormats(const std::vector &formats); + std::string getOssFilePrefix() const; + void setOssFilePrefix(const std::string &ossFilePrefix); + int getBackgroundColor() const; + void setBackgroundColor(int backgroundColor); + std::string getTaskProfile() const; + void setTaskProfile(const std::string &taskProfile); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + std::vector getClockWidgets() const; + void setClockWidgets(const std::vector &clockWidgets); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::string getOssBucket() const; + void setOssBucket(const std::string &ossBucket); + 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); + bool getEnableM3u8DateTime() const; + void setEnableM3u8DateTime(bool enableM3u8DateTime); + 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; + void setMediaEncode(int mediaEncode); + +private: + std::vector formats_; + std::string ossFilePrefix_; + int backgroundColor_; + std::string taskProfile_; + std::vector layoutIds_; + std::vector clockWidgets_; + std::string showLog_; + std::string ossBucket_; + int delayStopTime_; + int fileSplitInterval_; + std::string mnsQueue_; + std::string httpCallbackUrl_; + std::vector watermarks_; + long ownerId_; + bool enableM3u8DateTime_; + std::string appId_; + std::vector backgrounds_; + std::string name_; + int mediaEncode_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_ADDRECORDTEMPLATEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..0098fea72 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleRequest.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_CREATEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT CreateAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + CreateAutoLiveStreamRuleRequest(); + ~CreateAutoLiveStreamRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getChannelIdPrefixes() const; + void setChannelIdPrefixes(const std::vector &channelIdPrefixes); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::string getPlayDomain() const; + void setPlayDomain(const std::string &playDomain); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getCallBack() const; + void setCallBack(const std::string &callBack); + int getMediaEncode() const; + void setMediaEncode(int mediaEncode); + std::vector getChannelIds() const; + void setChannelIds(const std::vector &channelIds); + +private: + std::string ruleName_; + std::vector channelIdPrefixes_; + std::string showLog_; + std::string playDomain_; + long ownerId_; + std::string appId_; + std::string callBack_; + int mediaEncode_; + std::vector channelIds_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_CREATEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/CreateMPURuleResult.h b/rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleResult.h similarity index 69% rename from rtc/include/alibabacloud/rtc/model/CreateMPURuleResult.h rename to rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleResult.h index 7cb9ebbe9..41ba7479f 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateMPURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/CreateAutoLiveStreamRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMPURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATEMPURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_CREATEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATEAUTOLIVESTREAMRULERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT CreateMPURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT CreateAutoLiveStreamRuleResult : public ServiceResult { public: - CreateMPURuleResult(); - explicit CreateMPURuleResult(const std::string &payload); - ~CreateMPURuleResult(); + CreateAutoLiveStreamRuleResult(); + explicit CreateAutoLiveStreamRuleResult(const std::string &payload); + ~CreateAutoLiveStreamRuleResult(); long getRuleId()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMPURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_CREATEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.h deleted file mode 100644 index 9c1b0121e..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateChannelRequest.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_CREATECHANNELREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATECHANNELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateChannelRequest : public RpcServiceRequest - { - - public: - CreateChannelRequest(); - ~CreateChannelRequest(); - - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATECHANNELREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateChannelResult.h b/rtc/include/alibabacloud/rtc/model/CreateChannelResult.h deleted file mode 100644 index d9d35fabe..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateChannelResult.h +++ /dev/null @@ -1,55 +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_CREATECHANNELRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATECHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateChannelResult : public ServiceResult - { - public: - - - CreateChannelResult(); - explicit CreateChannelResult(const std::string &payload); - ~CreateChannelResult(); - std::string getNonce()const; - std::string getChannelKey()const; - int getTimestamp()const; - - protected: - void parse(const std::string &payload); - private: - std::string nonce_; - std::string channelKey_; - int timestamp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATECHANNELRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h b/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h deleted file mode 100644 index 1c3d51baa..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateConferenceRequest.h +++ /dev/null @@ -1,69 +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_CREATECONFERENCEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATECONFERENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateConferenceRequest : public RpcServiceRequest - { - - public: - CreateConferenceRequest(); - ~CreateConferenceRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getConferenceName()const; - void setConferenceName(const std::string& conferenceName); - 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); - int getRemindNotice()const; - void setRemindNotice(int remindNotice); - - private: - std::string clientToken_; - std::string startTime_; - std::string type_; - std::string conferenceName_; - std::string showLog_; - long ownerId_; - std::string appId_; - int remindNotice_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATECONFERENCEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateConferenceResult.h b/rtc/include/alibabacloud/rtc/model/CreateConferenceResult.h deleted file mode 100644 index 9f84177ac..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateConferenceResult.h +++ /dev/null @@ -1,59 +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_CREATECONFERENCERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATECONFERENCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateConferenceResult : public ServiceResult - { - public: - struct AuthInfo - { - std::string nonce; - int timestamp; - std::string key; - }; - - - CreateConferenceResult(); - explicit CreateConferenceResult(const std::string &payload); - ~CreateConferenceResult(); - AuthInfo getAuthInfo()const; - std::string getConferenceId()const; - - protected: - void parse(const std::string &payload); - private: - AuthInfo authInfo_; - std::string conferenceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATECONFERENCERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateEventSubscribeRequest.h b/rtc/include/alibabacloud/rtc/model/CreateEventSubscribeRequest.h new file mode 100644 index 000000000..f680bdd15 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/CreateEventSubscribeRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT CreateEventSubscribeRequest : public RpcServiceRequest { +public: + CreateEventSubscribeRequest(); + ~CreateEventSubscribeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEvents() const; + void setEvents(const std::vector &events); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getUsers() const; + void setUsers(const std::vector &users); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getCallbackUrl() const; + void setCallbackUrl(const std::string &callbackUrl); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::string clientToken_; + std::vector events_; + std::string showLog_; + long ownerId_; + std::vector users_; + std::string appId_; + std::string callbackUrl_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcResult.h b/rtc/include/alibabacloud/rtc/model/CreateEventSubscribeResult.h similarity index 66% rename from rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcResult.h rename to rtc/include/alibabacloud/rtc/model/CreateEventSubscribeResult.h index 80605d8ea..bd40de97a 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcResult.h +++ b/rtc/include/alibabacloud/rtc/model/CreateEventSubscribeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCRESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBERESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT CreateServiceLinkedRoleForRtcResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT CreateEventSubscribeResult : public ServiceResult { public: - CreateServiceLinkedRoleForRtcResult(); - explicit CreateServiceLinkedRoleForRtcResult(const std::string &payload); - ~CreateServiceLinkedRoleForRtcResult(); + CreateEventSubscribeResult(); + explicit CreateEventSubscribeResult(const std::string &payload); + ~CreateEventSubscribeResult(); + std::string getSubscribeId()const; protected: void parse(const std::string &payload); private: + std::string subscribeId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_CREATEEVENTSUBSCRIBERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateMPULayoutRequest.h b/rtc/include/alibabacloud/rtc/model/CreateMPULayoutRequest.h index 39d397175..dbc864771 100644 --- a/rtc/include/alibabacloud/rtc/model/CreateMPULayoutRequest.h +++ b/rtc/include/alibabacloud/rtc/model/CreateMPULayoutRequest.h @@ -1,74 +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_CREATEMPULAYOUTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATEMPULAYOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateMPULayoutRequest : public RpcServiceRequest - { - public: - struct Panes - { - int paneId; - int majorPane; - float x; - float y; - float width; - float height; - int zOrder; - }; - - public: - CreateMPULayoutRequest(); - ~CreateMPULayoutRequest(); - - std::vector getPanes()const; - void setPanes(const std::vector& panes); - 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); - std::string getName()const; - void setName(const std::string& name); - int getAudioMixCount()const; - void setAudioMixCount(int audioMixCount); - - private: - std::vector panes_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string name_; - int audioMixCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMPULAYOUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMPULAYOUTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATEMPULAYOUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT CreateMPULayoutRequest : public RpcServiceRequest { +public: + struct Panes { + int majorPane; + float width; + float height; + float y; + int paneId; + int zOrder; + float x; + }; + CreateMPULayoutRequest(); + ~CreateMPULayoutRequest(); + std::vector getPanes() const; + void setPanes(const std::vector &panes); + 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); + std::string getName() const; + void setName(const std::string &name); + int getAudioMixCount() const; + void setAudioMixCount(int audioMixCount); + +private: + std::vector panes_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string name_; + int audioMixCount_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMPULAYOUTREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/CreateMPURuleRequest.h b/rtc/include/alibabacloud/rtc/model/CreateMPURuleRequest.h deleted file mode 100644 index da5e0f02b..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateMPURuleRequest.h +++ /dev/null @@ -1,78 +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_CREATEMPURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATEMPURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateMPURuleRequest : public RpcServiceRequest - { - - public: - CreateMPURuleRequest(); - ~CreateMPURuleRequest(); - - int getBackgroundColor()const; - void setBackgroundColor(int backgroundColor); - int getCropMode()const; - void setCropMode(int cropMode); - std::string getChannelPrefix()const; - void setChannelPrefix(const std::string& channelPrefix); - std::string getTaskProfile()const; - void setTaskProfile(const std::string& taskProfile); - std::vector getLayoutIds()const; - void setLayoutIds(const std::vector& layoutIds); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getPlayDomain()const; - void setPlayDomain(const std::string& playDomain); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAppId()const; - void setAppId(const std::string& appId); - int getMediaEncode()const; - void setMediaEncode(int mediaEncode); - std::string getCallBack()const; - void setCallBack(const std::string& callBack); - - private: - int backgroundColor_; - int cropMode_; - std::string channelPrefix_; - std::string taskProfile_; - std::vector layoutIds_; - std::string showLog_; - std::string playDomain_; - long ownerId_; - std::string appId_; - int mediaEncode_; - std::string callBack_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMPURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h b/rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h new file mode 100644 index 000000000..1e00c7bcd --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT CreateRecordIndexFileRequest : public RpcServiceRequest { +public: + CreateRecordIndexFileRequest(); + ~CreateRecordIndexFileRequest(); + std::string getOssEndpoint() const; + void setOssEndpoint(const std::string &ossEndpoint); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getOssObject() const; + void setOssObject(const std::string &ossObject); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::string getOssBucket() const; + void setOssBucket(const std::string &ossBucket); + 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 ossEndpoint_; + std::string startTime_; + std::string ossObject_; + std::string taskId_; + std::string showLog_; + std::string ossBucket_; + std::string endTime_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListResult.h b/rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileResult.h similarity index 62% rename from rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListResult.h rename to rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileResult.h index 408eac78a..b070e9214 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListResult.h +++ b/rtc/include/alibabacloud/rtc/model/CreateRecordIndexFileResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTLISTRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTLISTRESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_ #include #include @@ -29,23 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutListResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT CreateRecordIndexFileResult : public ServiceResult { public: - DescribeMPULayoutListResult(); - explicit DescribeMPULayoutListResult(const std::string &payload); - ~DescribeMPULayoutListResult(); - std::vector getLayoutIds()const; + CreateRecordIndexFileResult(); + explicit CreateRecordIndexFileResult(const std::string &payload); + ~CreateRecordIndexFileResult(); + float getDuration()const; + int getHeight()const; + int getWidth()const; + std::string getUrl()const; protected: void parse(const std::string &payload); private: - std::vector layoutIds_; + float duration_; + int height_; + int width_; + std::string url_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcRequest.h b/rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcRequest.h deleted file mode 100644 index 048142df2..000000000 --- a/rtc/include/alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT CreateServiceLinkedRoleForRtcRequest : public RpcServiceRequest - { - - public: - CreateServiceLinkedRoleForRtcRequest(); - ~CreateServiceLinkedRoleForRtcRequest(); - - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string showLog_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_CREATESERVICELINKEDROLEFORRTCREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..a244cc68f --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DeleteAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + DeleteAutoLiveStreamRuleRequest(); + ~DeleteAutoLiveStreamRuleRequest(); + 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_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DeleteChannelResult.h b/rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleResult.h similarity index 68% rename from rtc/include/alibabacloud/rtc/model/DeleteChannelResult.h rename to rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleResult.h index 689fc520a..9f2caf1a5 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteChannelResult.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DELETECHANNELRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETECHANNELRESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DeleteChannelResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DeleteAutoLiveStreamRuleResult : public ServiceResult { public: - DeleteChannelResult(); - explicit DeleteChannelResult(const std::string &payload); - ~DeleteChannelResult(); + DeleteAutoLiveStreamRuleResult(); + explicit DeleteAutoLiveStreamRuleResult(const std::string &payload); + ~DeleteAutoLiveStreamRuleResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DELETECHANNELRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DELETEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.h deleted file mode 100644 index d4021c749..000000000 --- a/rtc/include/alibabacloud/rtc/model/DeleteChannelRequest.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_DELETECHANNELREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETECHANNELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DeleteChannelRequest : public RpcServiceRequest - { - - public: - DeleteChannelRequest(); - ~DeleteChannelRequest(); - - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DELETECHANNELREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteConferenceRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteConferenceRequest.h deleted file mode 100644 index f4be08b4e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DeleteConferenceRequest.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_DELETECONFERENCEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETECONFERENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DeleteConferenceRequest : public RpcServiceRequest - { - - public: - DeleteConferenceRequest(); - ~DeleteConferenceRequest(); - - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - 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); - - private: - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DELETECONFERENCEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h new file mode 100644 index 000000000..3c3f4a402 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DeleteEventSubscribeRequest : public RpcServiceRequest { +public: + DeleteEventSubscribeRequest(); + ~DeleteEventSubscribeRequest(); + std::string getSubscribeId() const; + void setSubscribeId(const std::string &subscribeId); + 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); + +private: + std::string subscribeId_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DeleteConferenceResult.h b/rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeResult.h similarity index 69% rename from rtc/include/alibabacloud/rtc/model/DeleteConferenceResult.h rename to rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeResult.h index a04dd75a8..5222451e3 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteConferenceResult.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteEventSubscribeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DELETECONFERENCERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETECONFERENCERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DeleteConferenceResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DeleteEventSubscribeResult : public ServiceResult { public: - DeleteConferenceResult(); - explicit DeleteConferenceResult(const std::string &payload); - ~DeleteConferenceResult(); + DeleteEventSubscribeResult(); + explicit DeleteEventSubscribeResult(const std::string &payload); + ~DeleteEventSubscribeResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DELETECONFERENCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DELETEEVENTSUBSCRIBERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h index df4b9ef3b..fde84ee4e 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DeleteMPULayoutRequest : public RpcServiceRequest - { - - public: - DeleteMPULayoutRequest(); - ~DeleteMPULayoutRequest(); - - long getLayoutId()const; - void setLayoutId(long layoutId); - 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); - - private: - long layoutId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DeleteMPULayoutRequest : public RpcServiceRequest { +public: + DeleteMPULayoutRequest(); + ~DeleteMPULayoutRequest(); + long getLayoutId() const; + void setLayoutId(long layoutId); + 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); + +private: + long layoutId_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMPULAYOUTREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DeleteMPURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteMPURuleRequest.h deleted file mode 100644 index 8cea11741..000000000 --- a/rtc/include/alibabacloud/rtc/model/DeleteMPURuleRequest.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_DELETEMPURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETEMPURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DeleteMPURuleRequest : public RpcServiceRequest - { - - public: - DeleteMPURuleRequest(); - ~DeleteMPURuleRequest(); - - 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_DELETEMPURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DeleteRecordTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/DeleteRecordTemplateRequest.h index 2991db32e..01a657522 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteRecordTemplateRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DeleteRecordTemplateRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DeleteRecordTemplateRequest : public RpcServiceRequest - { - - public: - DeleteRecordTemplateRequest(); - ~DeleteRecordTemplateRequest(); - - 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::string getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string showLog_; - long ownerId_; - std::string templateId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DeleteRecordTemplateRequest : public RpcServiceRequest { +public: + DeleteRecordTemplateRequest(); + ~DeleteRecordTemplateRequest(); + 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::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string showLog_; + long ownerId_; + std::string templateId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DELETERECORDTEMPLATEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h deleted file mode 100644 index 5f537a360..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeAppsRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBEAPPSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEAPPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeAppsRequest : public RpcServiceRequest - { - - public: - DescribeAppsRequest(); - ~DescribeAppsRequest(); - - 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 getOrder()const; - void setOrder(const std::string& order); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - int pageNum_; - int pageSize_; - std::string showLog_; - std::string order_; - long ownerId_; - std::string appId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEAPPSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeAppsResult.h b/rtc/include/alibabacloud/rtc/model/DescribeAppsResult.h deleted file mode 100644 index 83df2be1e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeAppsResult.h +++ /dev/null @@ -1,65 +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_DESCRIBEAPPSRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEAPPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeAppsResult : public ServiceResult - { - public: - struct App - { - int status; - std::string billType; - std::string appId; - std::string createTime; - std::vector serviceAreas; - std::string appType; - std::string appName; - }; - - - DescribeAppsResult(); - explicit DescribeAppsResult(const std::string &payload); - ~DescribeAppsResult(); - int getTotalNum()const; - int getTotalPage()const; - std::vector getAppList()const; - - protected: - void parse(const std::string &payload); - private: - int totalNum_; - int totalPage_; - std::vector appList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEAPPSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..5683756fc --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_DESCRIBEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + DescribeAutoLiveStreamRuleRequest(); + ~DescribeAutoLiveStreamRuleRequest(); + 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); + +private: + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPURuleResult.h b/rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleResult.h similarity index 64% rename from rtc/include/alibabacloud/rtc/model/DescribeMPURuleResult.h rename to rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleResult.h index 913d4f271..a2587b654 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeAutoLiveStreamRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMPURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBEAUTOLIVESTREAMRULERESULT_H_ #include #include @@ -29,27 +29,26 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DescribeMPURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT DescribeAutoLiveStreamRuleResult : public ServiceResult { public: struct Rule { - std::string channelPrefix; - int backgroudColor; - int isEnable; + std::string status; + std::vector channelIdPrefixes; std::string callBack; - std::string taskProfile; std::string playDomain; + std::string createTime; long ruleId; int mediaEncode; - std::vector layoutIds; - int cropMode; + std::string ruleName; + std::vector channelIds; }; - DescribeMPURuleResult(); - explicit DescribeMPURuleResult(const std::string &payload); - ~DescribeMPURuleResult(); + DescribeAutoLiveStreamRuleResult(); + explicit DescribeAutoLiveStreamRuleResult(const std::string &payload); + ~DescribeAutoLiveStreamRuleResult(); std::vector getRules()const; protected: @@ -61,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h index 5d35c7574..72b835cff 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeChannelParticipantsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeChannelParticipantsRequest : public RpcServiceRequest - { - - public: - DescribeChannelParticipantsRequest(); - ~DescribeChannelParticipantsRequest(); - - 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 getOrder()const; - void setOrder(const std::string& order); - 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: - int pageNum_; - int pageSize_; - std::string showLog_; - std::string order_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeChannelParticipantsRequest : public RpcServiceRequest { +public: + DescribeChannelParticipantsRequest(); + ~DescribeChannelParticipantsRequest(); + 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 getOrder() const; + void setOrder(const std::string &order); + 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: + int pageNum_; + int pageSize_; + std::string showLog_; + std::string order_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELPARTICIPANTSREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h index a13bc7040..88cc8db6f 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeChannelUsersRequest : public RpcServiceRequest - { - - public: - DescribeChannelUsersRequest(); - ~DescribeChannelUsersRequest(); - - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeChannelUsersRequest : public RpcServiceRequest { +public: + DescribeChannelUsersRequest(); + ~DescribeChannelUsersRequest(); + 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); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::string showLog_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECHANNELUSERSREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersResult.h b/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersResult.h index a589f2dc9..0ac6e4de2 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeChannelUsersResult.h @@ -43,8 +43,8 @@ namespace AlibabaCloud int getInteractiveUserNum()const; std::vector getUserList()const; std::vector getLiveUserList()const; - int getTimestamp()const; bool getIsChannelExist()const; + int getTimestamp()const; int getCommTotalNum()const; protected: @@ -56,8 +56,8 @@ namespace AlibabaCloud int interactiveUserNum_; std::vector userList_; std::vector liveUserList_; - int timestamp_; bool isChannelExist_; + int timestamp_; int commTotalNum_; }; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h deleted file mode 100644 index 4e0d2bbd2..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.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_DESCRIBECONFERENCEAUTHINFOREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBECONFERENCEAUTHINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeConferenceAuthInfoRequest : public RpcServiceRequest - { - - public: - DescribeConferenceAuthInfoRequest(); - ~DescribeConferenceAuthInfoRequest(); - - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - 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); - - private: - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECONFERENCEAUTHINFOREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h b/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h deleted file mode 100644 index a26fbd29f..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h +++ /dev/null @@ -1,59 +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_DESCRIBECONFERENCEAUTHINFORESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBECONFERENCEAUTHINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeConferenceAuthInfoResult : public ServiceResult - { - public: - struct AuthInfo - { - std::string nonce; - int timestamp; - std::string key; - }; - - - DescribeConferenceAuthInfoResult(); - explicit DescribeConferenceAuthInfoResult(const std::string &payload); - ~DescribeConferenceAuthInfoResult(); - AuthInfo getAuthInfo()const; - std::string getConferenceId()const; - - protected: - void parse(const std::string &payload); - private: - AuthInfo authInfo_; - std::string conferenceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBECONFERENCEAUTHINFORESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h index 9cb21bd18..9b603c06e 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutInfoListRequest : public RpcServiceRequest - { - - public: - DescribeMPULayoutInfoListRequest(); - ~DescribeMPULayoutInfoListRequest(); - - long getPageNum()const; - void setPageNum(long pageNum); - long getLayoutId()const; - void setLayoutId(long layoutId); - long getPageSize()const; - void setPageSize(long pageSize); - 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); - std::string getName()const; - void setName(const std::string& name); - - private: - long pageNum_; - long layoutId_; - long pageSize_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutInfoListRequest : public RpcServiceRequest { +public: + DescribeMPULayoutInfoListRequest(); + ~DescribeMPULayoutInfoListRequest(); + long getPageNum() const; + void setPageNum(long pageNum); + long getLayoutId() const; + void setLayoutId(long layoutId); + long getPageSize() const; + void setPageSize(long pageSize); + 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); + std::string getName() const; + void setName(const std::string &name); + +private: + long pageNum_; + long layoutId_; + long pageSize_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string name_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOLISTREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h index 981c7f1ad..99591313c 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud float x; float y; float height; - int paneId; float width; + int paneId; }; int audioMixCount; long layoutId; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h deleted file mode 100644 index 2237f484d..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.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_DESCRIBEMPULAYOUTINFOREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutInfoRequest : public RpcServiceRequest - { - - public: - DescribeMPULayoutInfoRequest(); - ~DescribeMPULayoutInfoRequest(); - - long getLayoutId()const; - void setLayoutId(long layoutId); - 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); - - private: - long layoutId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFOREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h deleted file mode 100644 index b86bd031e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h +++ /dev/null @@ -1,68 +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_DESCRIBEMPULAYOUTINFORESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutInfoResult : public ServiceResult - { - public: - struct Layout - { - struct PanesItem - { - int majorPane; - int zOrder; - float x; - float y; - float height; - int paneId; - float width; - }; - int audioMixCount; - long layoutId; - std::vector panes; - std::string name; - }; - - - DescribeMPULayoutInfoResult(); - explicit DescribeMPULayoutInfoResult(const std::string &payload); - ~DescribeMPULayoutInfoResult(); - Layout getLayout()const; - - protected: - void parse(const std::string &payload); - private: - Layout layout_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTINFORESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListRequest.h deleted file mode 100644 index 7f259c4ec..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPULayoutListRequest.h +++ /dev/null @@ -1,54 +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_DESCRIBEMPULAYOUTLISTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeMPULayoutListRequest : public RpcServiceRequest - { - - public: - DescribeMPULayoutListRequest(); - ~DescribeMPULayoutListRequest(); - - 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); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPULAYOUTLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeMPURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeMPURuleRequest.h deleted file mode 100644 index 0072cdaa4..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeMPURuleRequest.h +++ /dev/null @@ -1,54 +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_DESCRIBEMPURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMPURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeMPURuleRequest : public RpcServiceRequest - { - - public: - DescribeMPURuleRequest(); - ~DescribeMPURuleRequest(); - - 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); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMPURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h deleted file mode 100644 index 2ef56d8b2..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h +++ /dev/null @@ -1,54 +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_DESCRIBERTCAPPKEYREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRTCAppKeyRequest : public RpcServiceRequest - { - - public: - DescribeRTCAppKeyRequest(); - ~DescribeRTCAppKeyRequest(); - - 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); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h deleted file mode 100644 index 2cc5d43c5..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h +++ /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. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRTCAppKeyResult : public ServiceResult - { - public: - - - DescribeRTCAppKeyResult(); - explicit DescribeRTCAppKeyResult(const std::string &payload); - ~DescribeRTCAppKeyResult(); - std::string getAppKey()const; - - protected: - void parse(const std::string &payload); - private: - std::string appKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCAPPKEYRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h index c04b26c96..a311fc886 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h @@ -1,72 +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_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 + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h index 844f3f78c..cfe1d6010 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ + +#include +#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); + 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); + std::string getStatus() const; + void setStatus(const std::string &status); + +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_; + std::string status_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h index 8b052b83d..1639eb34e 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRecordTemplatesRequest : public RpcServiceRequest - { - - public: - DescribeRecordTemplatesRequest(); - ~DescribeRecordTemplatesRequest(); - - std::vector getTemplateIds()const; - void setTemplateIds(const std::vector& templateIds); - int getPageNum()const; - void setPageNum(int pageNum); - int getPageSize()const; - void setPageSize(int pageSize); - 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); - - private: - std::vector templateIds_; - int pageNum_; - int pageSize_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeRecordTemplatesRequest : public RpcServiceRequest { +public: + DescribeRecordTemplatesRequest(); + ~DescribeRecordTemplatesRequest(); + std::vector getTemplateIds() const; + void setTemplateIds(const std::vector &templateIds); + int getPageNum() const; + void setPageNum(int pageNum); + int getPageSize() const; + void setPageSize(int pageSize); + 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); + +private: + std::vector templateIds_; + int pageNum_; + int pageSize_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTEMPLATESREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h index 87cbdeb38..d8647fb1a 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h @@ -34,17 +34,53 @@ namespace AlibabaCloud public: struct _Template { + struct Background + { + int zOrder; + float x; + float y; + float height; + float width; + std::string url; + int display; + }; + struct Watermark + { + int zOrder; + float alpha; + float x; + float y; + float height; + float width; + std::string url; + int display; + }; + struct Watermark1 + { + int fontSize; + int zOrder; + int fontColor; + float x; + float y; + int fontType; + }; int fileSplitInterval; - std::string ossFilePrefix; + std::vector<_Template::Watermark1> clockWidgets; + std::string httpCallbackUrl; std::string taskProfile; std::string createTime; std::string ossBucket; int mediaEncode; std::vector layoutIds; std::vector formats; - std::string templateId; std::string mnsQueue; + int delayStopTime; std::string name; + std::string ossFilePrefix; + bool enableM3u8DateTime; + std::vector<_Template::Watermark> watermarks; + std::vector<_Template::Background> backgrounds; + std::string templateId; int backgroundColor; }; diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h deleted file mode 100644 index 52a5f4766..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelCntDataRequest : public RpcServiceRequest - { - - public: - DescribeRtcChannelCntDataRequest(); - ~DescribeRtcChannelCntDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - 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 getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string startTime_; - std::string serviceArea_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h deleted file mode 100644 index 91dd8bfbd..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h +++ /dev/null @@ -1,56 +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_DESCRIBERTCCHANNELCNTDATARESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelCntDataResult : public ServiceResult - { - public: - struct ChannelCntModule - { - long activeChannelCnt; - std::string timeStamp; - }; - - - DescribeRtcChannelCntDataResult(); - explicit DescribeRtcChannelCntDataResult(const std::string &payload); - ~DescribeRtcChannelCntDataResult(); - std::vector getChannelCntDataPerInterval()const; - - protected: - void parse(const std::string &payload); - private: - std::vector channelCntDataPerInterval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h deleted file mode 100644 index 6681cd183..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h +++ /dev/null @@ -1,69 +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_DESCRIBERTCCHANNELDETAILREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelDetailRequest : public RpcServiceRequest - { - - public: - 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); - 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_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 deleted file mode 100644 index 057499872..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h +++ /dev/null @@ -1,70 +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_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/DescribeRtcChannelListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h deleted file mode 100644 index fff38f845..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h +++ /dev/null @@ -1,75 +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_DESCRIBERTCCHANNELLISTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelListRequest : public RpcServiceRequest - { - - public: - DescribeRtcChannelListRequest(); - ~DescribeRtcChannelListRequest(); - - std::string getSortType()const; - void setSortType(const std::string& sortType); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getPageNo()const; - void setPageNo(long pageNo); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - std::string getTimePoint()const; - void setTimePoint(const std::string& timePoint); - - private: - std::string sortType_; - std::string userId_; - std::string serviceArea_; - long pageSize_; - std::string showLog_; - long ownerId_; - long pageNo_; - std::string appId_; - std::string channelId_; - std::string timePoint_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h deleted file mode 100644 index 47ad2de4e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h +++ /dev/null @@ -1,65 +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_DESCRIBERTCCHANNELLISTRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelListResult : public ServiceResult - { - public: - struct ChannelListItem - { - long totalUserCnt; - std::string endTime; - std::string startTime; - std::string channelId; - std::vector callArea; - }; - - - DescribeRtcChannelListResult(); - explicit DescribeRtcChannelListResult(const std::string &payload); - ~DescribeRtcChannelListResult(); - long getPageSize()const; - long getTotalCnt()const; - long getPageNo()const; - std::vector getChannelList()const; - - protected: - void parse(const std::string &payload); - private: - long pageSize_; - long totalCnt_; - long pageNo_; - std::vector channelList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELLISTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h deleted file mode 100644 index dea7b061e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h +++ /dev/null @@ -1,60 +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_DESCRIBERTCCHANNELMETRICREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricRequest : public RpcServiceRequest - { - - public: - DescribeRtcChannelMetricRequest(); - ~DescribeRtcChannelMetricRequest(); - - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - std::string getTimePoint()const; - void setTimePoint(const std::string& timePoint); - - private: - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - std::string timePoint_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h deleted file mode 100644 index 555bfcdaf..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h +++ /dev/null @@ -1,86 +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_DESCRIBERTCCHANNELMETRICRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricResult : public ServiceResult - { - public: - struct ChannelMetricInfo - { - struct ChannelMetric - { - std::string endTime; - int userCount; - std::string startTime; - int subUserCount; - std::string channelId; - int pubUserCount; - }; - struct Duration - { - struct PubDuration - { - int video720; - int video1080; - int content; - int video360; - int audio; - }; - struct SubDuration - { - int video720; - int video1080; - int content; - int video360; - int audio; - }; - SubDuration subDuration; - PubDuration pubDuration; - }; - ChannelMetric channelMetric; - Duration duration; - }; - - - DescribeRtcChannelMetricResult(); - explicit DescribeRtcChannelMetricResult(const std::string &payload); - ~DescribeRtcChannelMetricResult(); - ChannelMetricInfo getChannelMetricInfo()const; - - protected: - void parse(const std::string &payload); - private: - ChannelMetricInfo channelMetricInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h deleted file mode 100644 index 1f60480f5..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h +++ /dev/null @@ -1,69 +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_DESCRIBERTCCHANNELMETRICSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsRequest : public RpcServiceRequest - { - - public: - 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); - 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_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h deleted file mode 100644 index 3c5d07b93..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.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_DESCRIBERTCCHANNELMETRICSRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsResult : public ServiceResult - { - public: - struct Metric - { - std::string uid; - std::string mid; - std::vector kVs; - }; - - - DescribeRtcChannelMetricsResult(); - explicit DescribeRtcChannelMetricsResult(const std::string &payload); - ~DescribeRtcChannelMetricsResult(); - std::vector getMetrics()const; - - protected: - void parse(const std::string &payload); - private: - std::vector metrics_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h deleted file mode 100644 index d49e4b55a..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelUserListRequest : public RpcServiceRequest - { - - public: - DescribeRtcChannelUserListRequest(); - ~DescribeRtcChannelUserListRequest(); - - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getPageNo()const; - void setPageNo(long pageNo); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - std::string getTimePoint()const; - void setTimePoint(const std::string& timePoint); - - private: - long pageSize_; - std::string showLog_; - long ownerId_; - long pageNo_; - std::string appId_; - std::string channelId_; - std::string timePoint_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h deleted file mode 100644 index f29946106..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h +++ /dev/null @@ -1,75 +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_DESCRIBERTCCHANNELUSERLISTRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelUserListResult : public ServiceResult - { - public: - struct UserListItem - { - int subContent; - int pubContent; - int pubVideo720; - int subVideo1080; - std::string endTime; - int pubAudio; - std::string startTime; - std::string channelId; - int pubVideo1080; - int subVideo360; - std::string serviceArea; - std::string userId; - int subAudio; - int subVideo720; - int pubVideo360; - }; - - - DescribeRtcChannelUserListResult(); - explicit DescribeRtcChannelUserListResult(const std::string &payload); - ~DescribeRtcChannelUserListResult(); - long getPageSize()const; - long getTotalCnt()const; - long getPageNo()const; - std::vector getUserList()const; - - protected: - void parse(const std::string &payload); - private: - long pageSize_; - long totalCnt_; - long pageNo_; - std::vector userList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELUSERLISTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h deleted file mode 100644 index e4caebc95..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h +++ /dev/null @@ -1,69 +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_DESCRIBERTCCHANNELSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsRequest : public RpcServiceRequest - { - - public: - 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_DESCRIBERTCCHANNELSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h deleted file mode 100644 index 30e7a0690..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h +++ /dev/null @@ -1,64 +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_DESCRIBERTCCHANNELSRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsResult : public ServiceResult - { - public: - struct Channel - { - bool finished; - std::string endTime; - std::string startTime; - std::string channelId; - }; - - - 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_DESCRIBERTCCHANNELSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h deleted file mode 100644 index 04d2c8184..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCDURATIONDATAREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcDurationDataRequest : public RpcServiceRequest - { - - public: - DescribeRtcDurationDataRequest(); - ~DescribeRtcDurationDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - 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 getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string startTime_; - std::string serviceArea_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h deleted file mode 100644 index c4ac31c51..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h +++ /dev/null @@ -1,61 +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_DESCRIBERTCDURATIONDATARESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcDurationDataResult : public ServiceResult - { - public: - struct DurationModule - { - long contentDuration; - long v360Duration; - long v720Duration; - long v1080Duration; - std::string timeStamp; - long totalDuration; - long audioDuration; - }; - - - DescribeRtcDurationDataResult(); - explicit DescribeRtcDurationDataResult(const std::string &payload); - ~DescribeRtcDurationDataResult(); - std::vector getDurationDataPerInterval()const; - - protected: - void parse(const std::string &payload); - private: - std::vector durationDataPerInterval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCDURATIONDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h deleted file mode 100644 index 5a2cf2e02..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakChannelCntDataRequest : public RpcServiceRequest - { - - public: - DescribeRtcPeakChannelCntDataRequest(); - ~DescribeRtcPeakChannelCntDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - 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 getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string startTime_; - std::string serviceArea_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.h deleted file mode 100644 index e1caf767c..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataResult.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_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakChannelCntDataResult : public ServiceResult - { - public: - struct PeakChannelCntModule - { - long activeChannelPeak; - std::string activeChannelPeakTime; - std::string timeStamp; - }; - - - DescribeRtcPeakChannelCntDataResult(); - explicit DescribeRtcPeakChannelCntDataResult(const std::string &payload); - ~DescribeRtcPeakChannelCntDataResult(); - std::vector getPeakChannelCntDataPerInterval()const; - - protected: - void parse(const std::string &payload); - private: - std::vector peakChannelCntDataPerInterval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKCHANNELCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h deleted file mode 100644 index 3b4633bcd..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakUserCntDataRequest : public RpcServiceRequest - { - - public: - DescribeRtcPeakUserCntDataRequest(); - ~DescribeRtcPeakUserCntDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - 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 getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string startTime_; - std::string serviceArea_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.h deleted file mode 100644 index 42f2499a6..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcPeakUserCntDataResult.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_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcPeakUserCntDataResult : public ServiceResult - { - public: - struct PeakUserCntModule - { - std::string activeUserPeakTime; - long activeUserPeak; - std::string timeStamp; - }; - - - DescribeRtcPeakUserCntDataResult(); - explicit DescribeRtcPeakUserCntDataResult(const std::string &payload); - ~DescribeRtcPeakUserCntDataResult(); - std::vector getPeakUserCntDataPerInterval()const; - - protected: - void parse(const std::string &payload); - private: - std::vector peakUserCntDataPerInterval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCPEAKUSERCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricRequest.h deleted file mode 100644 index 38096301b..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricRequest.h +++ /dev/null @@ -1,69 +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_DESCRIBERTCQUALITYMETRICREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCQUALITYMETRICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcQualityMetricRequest : public RpcServiceRequest - { - - public: - DescribeRtcQualityMetricRequest(); - ~DescribeRtcQualityMetricRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getSubUser()const; - void setSubUser(const std::string& subUser); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPubUser()const; - void setPubUser(const std::string& pubUser); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string startTime_; - std::string showLog_; - std::string subUser_; - std::string endTime_; - long ownerId_; - std::string pubUser_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCQUALITYMETRICREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h deleted file mode 100644 index 54e7a12be..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h +++ /dev/null @@ -1,170 +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_DESCRIBERTCQUALITYMETRICRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCQUALITYMETRICRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcQualityMetricResult : public ServiceResult - { - public: - struct QualityMetric - { - struct SubInfo - { - struct User - { - std::string oS; - std::string userId; - std::string sDKVersion; - std::string province; - }; - struct DataItem - { - struct Fps - { - long small; - long super; - long large; - long share; - }; - struct Resolution - { - long small; - long super; - long large; - long share; - }; - struct BitRate - { - long small; - long super; - long large; - long audio; - long share; - }; - struct Network - { - long rtt; - float loss; - }; - Network network; - Fps fps; - std::string time; - BitRate bitRate; - Resolution resolution; - }; - struct EventsItem - { - std::string category; - std::string description; - long eventId; - std::string time; - std::string name; - std::string result; - }; - User user; - std::vector events; - std::vector data; - }; - struct PubInfo - { - struct User1 - { - std::string oS; - std::string userId; - std::string sDKVersion; - std::string province; - }; - struct DataItem4 - { - struct Fps5 - { - long small; - long super; - long large; - long share; - }; - struct Resolution6 - { - long small; - long super; - long large; - long share; - }; - struct BitRate7 - { - long small; - long super; - long large; - long audio; - long share; - }; - struct Network8 - { - long rtt; - float loss; - }; - BitRate7 bitRate7; - std::string time; - Fps5 fps5; - Resolution6 resolution6; - Network8 network8; - }; - struct EventsItem9 - { - std::string category; - std::string description; - long eventId; - std::string time; - std::string name; - std::string result; - }; - std::vector data2; - User1 user1; - std::vector events3; - }; - SubInfo subInfo; - PubInfo pubInfo; - }; - - - DescribeRtcQualityMetricResult(); - explicit DescribeRtcQualityMetricResult(const std::string &payload); - ~DescribeRtcQualityMetricResult(); - QualityMetric getQualityMetric()const; - - protected: - void parse(const std::string &payload); - private: - QualityMetric qualityMetric_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCQUALITYMETRICRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailRequest.h deleted file mode 100644 index 00a7b563e..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailRequest.h +++ /dev/null @@ -1,60 +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_DESCRIBERTCSCALEDETAILREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcScaleDetailRequest : public RpcServiceRequest - { - - public: - DescribeRtcScaleDetailRequest(); - ~DescribeRtcScaleDetailRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - 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); - - private: - std::string startTime_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEDETAILREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailResult.h deleted file mode 100644 index c6d365034..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleDetailResult.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_DESCRIBERTCSCALEDETAILRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcScaleDetailResult : public ServiceResult - { - public: - struct ScaleItem - { - long cC; - long uC; - std::string tS; - }; - - - DescribeRtcScaleDetailResult(); - explicit DescribeRtcScaleDetailResult(const std::string &payload); - ~DescribeRtcScaleDetailResult(); - std::vector getScale()const; - - protected: - void parse(const std::string &payload); - private: - std::vector scale_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEDETAILRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleRequest.h deleted file mode 100644 index 47e82dc6c..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleRequest.h +++ /dev/null @@ -1,60 +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_DESCRIBERTCSCALEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcScaleRequest : public RpcServiceRequest - { - - public: - DescribeRtcScaleRequest(); - ~DescribeRtcScaleRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - 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); - - private: - std::string startTime_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleResult.h deleted file mode 100644 index 306691d12..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcScaleResult.h +++ /dev/null @@ -1,60 +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_DESCRIBERTCSCALERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcScaleResult : public ServiceResult - { - public: - struct ScaleItem - { - long channelCount; - long videoDuration; - long userCount; - std::string time; - long sessionCount; - long audioDuration; - }; - - - DescribeRtcScaleResult(); - explicit DescribeRtcScaleResult(const std::string &payload); - ~DescribeRtcScaleResult(); - std::vector getScale()const; - - protected: - void parse(const std::string &payload); - private: - std::vector scale_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCSCALERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h deleted file mode 100644 index 2914ffe4b..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCUSERCNTDATAREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserCntDataRequest : public RpcServiceRequest - { - - public: - DescribeRtcUserCntDataRequest(); - ~DescribeRtcUserCntDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getServiceArea()const; - void setServiceArea(const std::string& serviceArea); - 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 getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string startTime_; - std::string serviceArea_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATAREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h deleted file mode 100644 index 58f5415e6..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h +++ /dev/null @@ -1,56 +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_DESCRIBERTCUSERCNTDATARESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserCntDataResult : public ServiceResult - { - public: - struct UserCntModule - { - long activeUserCnt; - std::string timeStamp; - }; - - - DescribeRtcUserCntDataResult(); - explicit DescribeRtcUserCntDataResult(const std::string &payload); - ~DescribeRtcUserCntDataResult(); - std::vector getUserCntDataPerInterval()const; - - protected: - void parse(const std::string &payload); - private: - std::vector userCntDataPerInterval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERCNTDATARESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h deleted file mode 100644 index 2ce538dcb..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h +++ /dev/null @@ -1,66 +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_DESCRIBERTCUSEREVENTSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsRequest : public RpcServiceRequest - { - - public: - DescribeRtcUserEventsRequest(); - ~DescribeRtcUserEventsRequest(); - - 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); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string startTime_; - std::string uid_; - std::string showLog_; - std::string endTime_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h deleted file mode 100644 index 046c3ee1c..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.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_DESCRIBERTCUSEREVENTSRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsResult : public ServiceResult - { - public: - struct Event - { - std::string category; - long eventTime; - std::string eventId; - }; - - - DescribeRtcUserEventsResult(); - explicit DescribeRtcUserEventsResult(const std::string &payload); - ~DescribeRtcUserEventsResult(); - std::vector getEvents()const; - - protected: - void parse(const std::string &payload); - private: - std::vector events_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h deleted file mode 100644 index 3a4db6049..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h +++ /dev/null @@ -1,69 +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_DESCRIBERTCUSERLISTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserListRequest : public RpcServiceRequest - { - - public: - DescribeRtcUserListRequest(); - ~DescribeRtcUserListRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getSubUser()const; - void setSubUser(const std::string& subUser); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPubUser()const; - void setPubUser(const std::string& pubUser); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string startTime_; - std::string showLog_; - std::string subUser_; - std::string endTime_; - long ownerId_; - std::string pubUser_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERLISTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListResult.h b/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListResult.h deleted file mode 100644 index fac5e2768..000000000 --- a/rtc/include/alibabacloud/rtc/model/DescribeRtcUserListResult.h +++ /dev/null @@ -1,55 +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_DESCRIBERTCUSERLISTRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserListResult : public ServiceResult - { - public: - struct UserListItem - { - std::string user; - }; - - - DescribeRtcUserListResult(); - explicit DescribeRtcUserListResult(const std::string &payload); - ~DescribeRtcUserListResult(); - std::vector getUserList()const; - - protected: - void parse(const std::string &payload); - private: - std::vector userList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSERLISTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h b/rtc/include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h index 2153fb314..b069bdccd 100644 --- a/rtc/include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h +++ b/rtc/include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DescribeUserInfoInChannelRequest : public RpcServiceRequest - { - - public: - DescribeUserInfoInChannelRequest(); - ~DescribeUserInfoInChannelRequest(); - - std::string getUserId()const; - void setUserId(const std::string& userId); - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string userId_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DescribeUserInfoInChannelRequest : public RpcServiceRequest { +public: + DescribeUserInfoInChannelRequest(); + ~DescribeUserInfoInChannelRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + 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); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::string userId_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEUSERINFOINCHANNELREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..25c5abb22 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT DisableAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + DisableAutoLiveStreamRuleRequest(); + ~DisableAutoLiveStreamRuleRequest(); + 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_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleResult.h b/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleResult.h new file mode 100644 index 000000000..6a6465a49 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/DisableAutoLiveStreamRuleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT DisableAutoLiveStreamRuleResult : public ServiceResult + { + public: + + + DisableAutoLiveStreamRuleResult(); + explicit DisableAutoLiveStreamRuleResult(const std::string &payload); + ~DisableAutoLiveStreamRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DisableMPURuleRequest.h b/rtc/include/alibabacloud/rtc/model/DisableMPURuleRequest.h deleted file mode 100644 index 699647765..000000000 --- a/rtc/include/alibabacloud/rtc/model/DisableMPURuleRequest.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_DISABLEMPURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_DISABLEMPURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DisableMPURuleRequest : public RpcServiceRequest - { - - public: - DisableMPURuleRequest(); - ~DisableMPURuleRequest(); - - 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_DISABLEMPURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/DisableMPURuleResult.h b/rtc/include/alibabacloud/rtc/model/DisableMPURuleResult.h deleted file mode 100644 index 028ebdad1..000000000 --- a/rtc/include/alibabacloud/rtc/model/DisableMPURuleResult.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_DISABLEMPURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DISABLEMPURULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT DisableMPURuleResult : public ServiceResult - { - public: - - - DisableMPURuleResult(); - explicit DisableMPURuleResult(const std::string &payload); - ~DisableMPURuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEMPURULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..6b1f98c0f --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT EnableAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + EnableAutoLiveStreamRuleRequest(); + ~EnableAutoLiveStreamRuleRequest(); + 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_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleResult.h b/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleResult.h new file mode 100644 index 000000000..61c22323e --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/EnableAutoLiveStreamRuleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rtc + { + namespace Model + { + class ALIBABACLOUD_RTC_EXPORT EnableAutoLiveStreamRuleResult : public ServiceResult + { + public: + + + EnableAutoLiveStreamRuleResult(); + explicit EnableAutoLiveStreamRuleResult(const std::string &payload); + ~EnableAutoLiveStreamRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/EnableMPURuleRequest.h b/rtc/include/alibabacloud/rtc/model/EnableMPURuleRequest.h deleted file mode 100644 index 9139477a5..000000000 --- a/rtc/include/alibabacloud/rtc/model/EnableMPURuleRequest.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_ENABLEMPURULEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_ENABLEMPURULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT EnableMPURuleRequest : public RpcServiceRequest - { - - public: - EnableMPURuleRequest(); - ~EnableMPURuleRequest(); - - 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_ENABLEMPURULEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/EnableMPURuleResult.h b/rtc/include/alibabacloud/rtc/model/EnableMPURuleResult.h deleted file mode 100644 index 4dfde815e..000000000 --- a/rtc/include/alibabacloud/rtc/model/EnableMPURuleResult.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_ENABLEMPURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_ENABLEMPURULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT EnableMPURuleResult : public ServiceResult - { - public: - - - EnableMPURuleResult(); - explicit EnableMPURuleResult(const std::string &payload); - ~EnableMPURuleResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMPURULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h b/rtc/include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h index 1daf50ff4..618aeaa91 100644 --- a/rtc/include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h +++ b/rtc/include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT GetMPUTaskStatusRequest : public RpcServiceRequest - { - - public: - GetMPUTaskStatusRequest(); - ~GetMPUTaskStatusRequest(); - - 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 getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string taskId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT GetMPUTaskStatusRequest : public RpcServiceRequest { +public: + GetMPUTaskStatusRequest(); + ~GetMPUTaskStatusRequest(); + 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 getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string taskId_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_GETMPUTASKSTATUSREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h b/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.h deleted file mode 100644 index fb9a98370..000000000 --- a/rtc/include/alibabacloud/rtc/model/ModifyAppRequest.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_MODIFYAPPREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_MODIFYAPPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ModifyAppRequest : public RpcServiceRequest - { - - public: - ModifyAppRequest(); - ~ModifyAppRequest(); - - std::string getAppName()const; - void setAppName(const std::string& appName); - 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); - - private: - std::string appName_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYAPPREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ModifyAppResult.h b/rtc/include/alibabacloud/rtc/model/ModifyAppResult.h deleted file mode 100644 index 666972ca4..000000000 --- a/rtc/include/alibabacloud/rtc/model/ModifyAppResult.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_MODIFYAPPRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_MODIFYAPPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ModifyAppResult : public ServiceResult - { - public: - - - ModifyAppResult(); - explicit ModifyAppResult(const std::string &payload); - ~ModifyAppResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYAPPRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h b/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h deleted file mode 100644 index e7f2de621..000000000 --- a/rtc/include/alibabacloud/rtc/model/ModifyConferenceRequest.h +++ /dev/null @@ -1,69 +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_MODIFYCONFERENCEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_MODIFYCONFERENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ModifyConferenceRequest : public RpcServiceRequest - { - - public: - ModifyConferenceRequest(); - ~ModifyConferenceRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - std::string getConferenceName()const; - void setConferenceName(const std::string& conferenceName); - 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); - int getRemindNotice()const; - void setRemindNotice(int remindNotice); - - private: - std::string startTime_; - std::string type_; - std::string conferenceId_; - std::string conferenceName_; - std::string showLog_; - long ownerId_; - std::string appId_; - int remindNotice_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYCONFERENCEREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ModifyMPULayoutRequest.h b/rtc/include/alibabacloud/rtc/model/ModifyMPULayoutRequest.h index b56703483..632763d6e 100644 --- a/rtc/include/alibabacloud/rtc/model/ModifyMPULayoutRequest.h +++ b/rtc/include/alibabacloud/rtc/model/ModifyMPULayoutRequest.h @@ -1,77 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ModifyMPULayoutRequest : public RpcServiceRequest - { - public: - struct Panes - { - int paneId; - int majorPane; - float x; - float y; - float width; - float height; - int zOrder; - }; - - public: - ModifyMPULayoutRequest(); - ~ModifyMPULayoutRequest(); - - long getLayoutId()const; - void setLayoutId(long layoutId); - std::vector getPanes()const; - void setPanes(const std::vector& panes); - 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); - std::string getName()const; - void setName(const std::string& name); - int getAudioMixCount()const; - void setAudioMixCount(int audioMixCount); - - private: - long layoutId_; - std::vector panes_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string name_; - int audioMixCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT ModifyMPULayoutRequest : public RpcServiceRequest { +public: + struct Panes { + int majorPane; + float width; + float height; + float y; + int paneId; + int zOrder; + float x; + }; + ModifyMPULayoutRequest(); + ~ModifyMPULayoutRequest(); + long getLayoutId() const; + void setLayoutId(long layoutId); + std::vector getPanes() const; + void setPanes(const std::vector &panes); + 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); + std::string getName() const; + void setName(const std::string &name); + int getAudioMixCount() const; + void setAudioMixCount(int audioMixCount); + +private: + long layoutId_; + std::vector panes_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string name_; + int audioMixCount_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYMPULAYOUTREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h b/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h deleted file mode 100644 index ba1d4e476..000000000 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioAllRequest.h +++ /dev/null @@ -1,60 +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_MUTEAUDIOALLREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_MUTEAUDIOALLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT MuteAudioAllRequest : public RpcServiceRequest - { - - public: - MuteAudioAllRequest(); - ~MuteAudioAllRequest(); - - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getParticipantId()const; - void setParticipantId(const std::string& participantId); - std::string getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string participantId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MUTEAUDIOALLREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioAllResult.h b/rtc/include/alibabacloud/rtc/model/MuteAudioAllResult.h deleted file mode 100644 index 2b3bffc40..000000000 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioAllResult.h +++ /dev/null @@ -1,59 +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_MUTEAUDIOALLRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_MUTEAUDIOALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT MuteAudioAllResult : public ServiceResult - { - public: - struct Participant - { - std::string message; - std::string id; - std::string code; - }; - - - MuteAudioAllResult(); - explicit MuteAudioAllResult(const std::string &payload); - ~MuteAudioAllResult(); - std::string getConferenceId()const; - std::vector getParticipants()const; - - protected: - void parse(const std::string &payload); - private: - std::string conferenceId_; - std::vector participants_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MUTEAUDIOALLRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h b/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h deleted file mode 100644 index 2084ba342..000000000 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioRequest.h +++ /dev/null @@ -1,60 +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_MUTEAUDIOREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_MUTEAUDIOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT MuteAudioRequest : public RpcServiceRequest - { - - public: - MuteAudioRequest(); - ~MuteAudioRequest(); - - std::vector getParticipantIds()const; - void setParticipantIds(const std::vector& participantIds); - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - 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); - - private: - std::vector participantIds_; - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MUTEAUDIOREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/MuteAudioResult.h b/rtc/include/alibabacloud/rtc/model/MuteAudioResult.h deleted file mode 100644 index 23dd9cb2f..000000000 --- a/rtc/include/alibabacloud/rtc/model/MuteAudioResult.h +++ /dev/null @@ -1,59 +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_MUTEAUDIORESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_MUTEAUDIORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT MuteAudioResult : public ServiceResult - { - public: - struct Participant - { - std::string message; - std::string id; - std::string code; - }; - - - MuteAudioResult(); - explicit MuteAudioResult(const std::string &payload); - ~MuteAudioResult(); - std::string getConferenceId()const; - std::vector getParticipants()const; - - protected: - void parse(const std::string &payload); - private: - std::string conferenceId_; - std::vector participants_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_MUTEAUDIORESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ReceiveNotifyRequest.h b/rtc/include/alibabacloud/rtc/model/ReceiveNotifyRequest.h deleted file mode 100644 index 2234cbf92..000000000 --- a/rtc/include/alibabacloud/rtc/model/ReceiveNotifyRequest.h +++ /dev/null @@ -1,66 +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_RECEIVENOTIFYREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_RECEIVENOTIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ReceiveNotifyRequest : public RpcServiceRequest - { - - public: - ReceiveNotifyRequest(); - ~ReceiveNotifyRequest(); - - std::string getTraceId()const; - void setTraceId(const std::string& traceId); - std::string getContent()const; - void setContent(const std::string& content); - std::string getEvent()const; - void setEvent(const std::string& event); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getContentType()const; - void setContentType(const std::string& contentType); - std::string getBizId()const; - void setBizId(const std::string& bizId); - - private: - std::string traceId_; - std::string content_; - std::string event_; - std::string showLog_; - long ownerId_; - std::string contentType_; - std::string bizId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_RECEIVENOTIFYREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/ReceiveNotifyResult.h b/rtc/include/alibabacloud/rtc/model/ReceiveNotifyResult.h deleted file mode 100644 index 6566e5c4f..000000000 --- a/rtc/include/alibabacloud/rtc/model/ReceiveNotifyResult.h +++ /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. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_RECEIVENOTIFYRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_RECEIVENOTIFYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT ReceiveNotifyResult : public ServiceResult - { - public: - - - ReceiveNotifyResult(); - explicit ReceiveNotifyResult(const std::string &payload); - ~ReceiveNotifyResult(); - std::string getTraceId()const; - - protected: - void parse(const std::string &payload); - private: - std::string traceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_RECEIVENOTIFYRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h b/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h deleted file mode 100644 index 5dcf4d33a..000000000 --- a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsRequest.h +++ /dev/null @@ -1,60 +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_REMOVEPARTICIPANTSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_REMOVEPARTICIPANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT RemoveParticipantsRequest : public RpcServiceRequest - { - - public: - RemoveParticipantsRequest(); - ~RemoveParticipantsRequest(); - - std::vector getParticipantIds()const; - void setParticipantIds(const std::vector& participantIds); - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - 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); - - private: - std::vector participantIds_; - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_REMOVEPARTICIPANTSREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsResult.h b/rtc/include/alibabacloud/rtc/model/RemoveParticipantsResult.h deleted file mode 100644 index 014a39890..000000000 --- a/rtc/include/alibabacloud/rtc/model/RemoveParticipantsResult.h +++ /dev/null @@ -1,59 +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_REMOVEPARTICIPANTSRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_REMOVEPARTICIPANTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT RemoveParticipantsResult : public ServiceResult - { - public: - struct Participant - { - std::string message; - std::string id; - std::string code; - }; - - - RemoveParticipantsResult(); - explicit RemoveParticipantsResult(const std::string &payload); - ~RemoveParticipantsResult(); - std::string getConferenceId()const; - std::vector getParticipants()const; - - protected: - void parse(const std::string &payload); - private: - std::string conferenceId_; - std::vector participants_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_REMOVEPARTICIPANTSRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h b/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h index f370c7c13..0aee76112 100644 --- a/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h +++ b/rtc/include/alibabacloud/rtc/model/RemoveTerminalsRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT RemoveTerminalsRequest : public RpcServiceRequest - { - - public: - RemoveTerminalsRequest(); - ~RemoveTerminalsRequest(); - - std::vector getTerminalIds()const; - void setTerminalIds(const std::vector& terminalIds); - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::vector terminalIds_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT RemoveTerminalsRequest : public RpcServiceRequest { +public: + RemoveTerminalsRequest(); + ~RemoveTerminalsRequest(); + std::vector getTerminalIds() const; + void setTerminalIds(const std::vector &terminalIds); + 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); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::vector terminalIds_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_REMOVETERMINALSREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/SetChannelPropertyRequest.h b/rtc/include/alibabacloud/rtc/model/SetChannelPropertyRequest.h deleted file mode 100644 index d6361a4e1..000000000 --- a/rtc/include/alibabacloud/rtc/model/SetChannelPropertyRequest.h +++ /dev/null @@ -1,72 +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_SETCHANNELPROPERTYREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT SetChannelPropertyRequest : public RpcServiceRequest - { - - public: - SetChannelPropertyRequest(); - ~SetChannelPropertyRequest(); - - int getStartTime()const; - void setStartTime(int startTime); - int getMaxUserNum()const; - void setMaxUserNum(int maxUserNum); - int getDuration()const; - void setDuration(int duration); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getTopics()const; - void setTopics(const std::string& topics); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - int startTime_; - int maxUserNum_; - int duration_; - std::string showLog_; - std::string topics_; - long ownerId_; - std::string priority_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/SetChannelPropertyResult.h b/rtc/include/alibabacloud/rtc/model/SetChannelPropertyResult.h deleted file mode 100644 index 652dfb0ca..000000000 --- a/rtc/include/alibabacloud/rtc/model/SetChannelPropertyResult.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_SETCHANNELPROPERTYRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT SetChannelPropertyResult : public ServiceResult - { - public: - - - SetChannelPropertyResult(); - explicit SetChannelPropertyResult(const std::string &payload); - ~SetChannelPropertyResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_SETCHANNELPROPERTYRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h index a781f81b0..31307c647 100644 --- a/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StartMPUTaskRequest.h @@ -1,176 +1,196 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_STARTMPUTASKREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_STARTMPUTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT StartMPUTaskRequest : 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; - }; - struct ClockWidgets - { - float x; - float y; - int fontType; - int fontSize; - int fontColor; - int zOrder; - }; - 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: - StartMPUTaskRequest(); - ~StartMPUTaskRequest(); - - int getPayloadType()const; - void setPayloadType(int payloadType); - std::vector getUserPanes()const; - void setUserPanes(const std::vector& userPanes); - int getBackgroundColor()const; - void setBackgroundColor(int backgroundColor); - int getReportVad()const; - void setReportVad(int reportVad); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::vector getClockWidgets()const; - void setClockWidgets(const std::vector& clockWidgets); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getVadInterval()const; - void setVadInterval(long vadInterval); - std::vector getWatermarks()const; - void setWatermarks(const std::vector& watermarks); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMediaEncode()const; - void setMediaEncode(int mediaEncode); - int getRtpExtInfo()const; - void setRtpExtInfo(int rtpExtInfo); - int getCropMode()const; - void setCropMode(int cropMode); - std::string getTaskProfile()const; - void setTaskProfile(const std::string& taskProfile); - std::vector getLayoutIds()const; - void setLayoutIds(const std::vector& layoutIds); - std::string getStreamURL()const; - void setStreamURL(const std::string& streamURL); - int getStreamType()const; - void setStreamType(int streamType); - std::vector getSubSpecUsers()const; - void setSubSpecUsers(const std::vector& subSpecUsers); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::vector getBackgrounds()const; - void setBackgrounds(const std::vector& backgrounds); - long getTimeStampRef()const; - void setTimeStampRef(long timeStampRef); - int getMixMode()const; - void setMixMode(int mixMode); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - int payloadType_; - std::vector userPanes_; - int backgroundColor_; - int reportVad_; - std::string sourceType_; - std::string taskId_; - std::vector clockWidgets_; - std::string showLog_; - long vadInterval_; - std::vector watermarks_; - long ownerId_; - int mediaEncode_; - int rtpExtInfo_; - int cropMode_; - std::string taskProfile_; - std::vector layoutIds_; - std::string streamURL_; - int streamType_; - std::vector subSpecUsers_; - std::string appId_; - std::vector backgrounds_; - long timeStampRef_; - int mixMode_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_STARTMPUTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_STARTMPUTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STARTMPUTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT StartMPUTaskRequest : public RpcServiceRequest { +public: + struct UserPanes { + struct Images { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + std::vector images; + int segmentType; + std::string userId; + struct Texts { + int fontType; + int fontColor; + float y; + std::string text; + int zOrder; + float x; + int fontSize; + }; + std::vector texts; + std::string sourceType; + int paneId; + }; + struct ClockWidgets { + int fontType; + int fontColor; + float y; + int zOrder; + float x; + int fontSize; + }; + struct Watermarks { + float alpha; + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + struct EnhancedParam { + bool enablePortraitSegmentation; + bool enableVirtualConference; + bool enableCartoonPortrait; + bool enableVoiceChanger; + bool enableUserPaneBackground; + std::string backgroundPath; + }; + struct Backgrounds { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + StartMPUTaskRequest(); + ~StartMPUTaskRequest(); + int getPayloadType() const; + void setPayloadType(int payloadType); + std::vector getUserPanes() const; + void setUserPanes(const std::vector &userPanes); + int getBackgroundColor() const; + void setBackgroundColor(int backgroundColor); + int getReportVad() const; + void setReportVad(int reportVad); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::vector getClockWidgets() const; + void setClockWidgets(const std::vector &clockWidgets); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::vector getUnsubSpecCameraUsers() const; + void setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers); + int getTaskType() const; + void setTaskType(int taskType); + std::vector getUnsubSpecAudioUsers() const; + void setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers); + long getVadInterval() const; + void setVadInterval(long vadInterval); + std::vector getWatermarks() const; + void setWatermarks(const std::vector &watermarks); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getSubSpecAudioUsers() const; + void setSubSpecAudioUsers(const std::vector &subSpecAudioUsers); + int getMediaEncode() const; + void setMediaEncode(int mediaEncode); + EnhancedParam getEnhancedParam() const; + void setEnhancedParam(const EnhancedParam &enhancedParam); + int getRtpExtInfo() const; + void setRtpExtInfo(int rtpExtInfo); + int getCropMode() const; + void setCropMode(int cropMode); + std::vector getSubSpecCameraUsers() const; + void setSubSpecCameraUsers(const std::vector &subSpecCameraUsers); + std::string getTaskProfile() const; + void setTaskProfile(const std::string &taskProfile); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + std::string getStreamURL() const; + void setStreamURL(const std::string &streamURL); + int getStreamType() const; + void setStreamType(int streamType); + std::vector getUnsubSpecShareScreenUsers() const; + void setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers); + std::vector getSubSpecShareScreenUsers() const; + void setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers); + std::vector getSubSpecUsers() const; + void setSubSpecUsers(const std::vector &subSpecUsers); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::vector getBackgrounds() const; + void setBackgrounds(const std::vector &backgrounds); + long getTimeStampRef() const; + void setTimeStampRef(long timeStampRef); + int getMixMode() const; + void setMixMode(int mixMode); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + int payloadType_; + std::vector userPanes_; + int backgroundColor_; + int reportVad_; + std::string sourceType_; + std::string taskId_; + std::vector clockWidgets_; + std::string showLog_; + std::vector unsubSpecCameraUsers_; + int taskType_; + std::vector unsubSpecAudioUsers_; + long vadInterval_; + std::vector watermarks_; + long ownerId_; + std::vector subSpecAudioUsers_; + int mediaEncode_; + EnhancedParam enhancedParam_; + int rtpExtInfo_; + int cropMode_; + std::vector subSpecCameraUsers_; + std::string taskProfile_; + std::vector layoutIds_; + std::string streamURL_; + int streamType_; + std::vector unsubSpecShareScreenUsers_; + std::vector subSpecShareScreenUsers_; + std::vector subSpecUsers_; + std::string appId_; + std::vector backgrounds_; + long timeStampRef_; + int mixMode_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_STARTMPUTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h index fddb7c2a7..7664d5930 100644 --- a/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StartRecordTaskRequest.h @@ -1,98 +1,127 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_STARTRECORDTASKREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_STARTRECORDTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT StartRecordTaskRequest : 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: - StartRecordTaskRequest(); - ~StartRecordTaskRequest(); - - 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_STARTRECORDTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_STARTRECORDTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STARTRECORDTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT StartRecordTaskRequest : public RpcServiceRequest { +public: + struct UserPanes { + struct Images { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + std::vector images; + std::string userId; + struct Texts { + int fontType; + int fontColor; + float y; + std::string text; + int zOrder; + float x; + int fontSize; + }; + std::vector texts; + std::string sourceType; + int paneId; + }; + StartRecordTaskRequest(); + ~StartRecordTaskRequest(); + std::vector getUserPanes() const; + void setUserPanes(const std::vector &userPanes); + long getCropMode() const; + void setCropMode(long cropMode); + std::vector getSubSpecCameraUsers() const; + void setSubSpecCameraUsers(const std::vector &subSpecCameraUsers); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getTaskProfile() const; + void setTaskProfile(const std::string &taskProfile); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::vector getUnsubSpecCameraUsers() const; + void setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers); + int getStreamType() const; + void setStreamType(int streamType); + std::vector getUnsubSpecAudioUsers() const; + void setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers); + std::vector getUnsubSpecShareScreenUsers() const; + void setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::vector getSubSpecAudioUsers() const; + void setSubSpecAudioUsers(const std::vector &subSpecAudioUsers); + std::vector getSubSpecShareScreenUsers() const; + void setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers); + std::vector getSubSpecUsers() const; + void setSubSpecUsers(const std::vector &subSpecUsers); + std::string getAppId() const; + void setAppId(const std::string &appId); + int getMediaEncode() const; + void setMediaEncode(int mediaEncode); + int getMixMode() const; + void setMixMode(int mixMode); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::vector userPanes_; + long cropMode_; + std::vector subSpecCameraUsers_; + std::string sourceType_; + std::string taskProfile_; + std::vector layoutIds_; + std::string taskId_; + std::string showLog_; + std::vector unsubSpecCameraUsers_; + int streamType_; + std::vector unsubSpecAudioUsers_; + std::vector unsubSpecShareScreenUsers_; + long ownerId_; + std::string templateId_; + std::vector subSpecAudioUsers_; + std::vector subSpecShareScreenUsers_; + std::vector subSpecUsers_; + std::string appId_; + int mediaEncode_; + int mixMode_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_STARTRECORDTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/StopChannelUserPublishRequest.h b/rtc/include/alibabacloud/rtc/model/StopChannelUserPublishRequest.h index 922b4710e..dee3265b8 100644 --- a/rtc/include/alibabacloud/rtc/model/StopChannelUserPublishRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StopChannelUserPublishRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT StopChannelUserPublishRequest : public RpcServiceRequest - { - - public: - StopChannelUserPublishRequest(); - ~StopChannelUserPublishRequest(); - - std::string getUserId()const; - void setUserId(const std::string& userId); - 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); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string userId_; - std::string showLog_; - long ownerId_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT StopChannelUserPublishRequest : public RpcServiceRequest { +public: + StopChannelUserPublishRequest(); + ~StopChannelUserPublishRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + 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); + std::string getChannelId() const; + void setChannelId(const std::string &channelId); + +private: + std::string userId_; + std::string showLog_; + long ownerId_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_STOPCHANNELUSERPUBLISHREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/StopMPUTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StopMPUTaskRequest.h index 1a4c766d9..5aef28038 100644 --- a/rtc/include/alibabacloud/rtc/model/StopMPUTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StopMPUTaskRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT StopMPUTaskRequest : public RpcServiceRequest - { - - public: - StopMPUTaskRequest(); - ~StopMPUTaskRequest(); - - 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 getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string taskId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT StopMPUTaskRequest : public RpcServiceRequest { +public: + StopMPUTaskRequest(); + ~StopMPUTaskRequest(); + 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 getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string taskId_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_STOPMPUTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/StopRecordTaskRequest.h b/rtc/include/alibabacloud/rtc/model/StopRecordTaskRequest.h index b70de63f0..7822c5da7 100644 --- a/rtc/include/alibabacloud/rtc/model/StopRecordTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/StopRecordTaskRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT StopRecordTaskRequest : public RpcServiceRequest - { - - public: - StopRecordTaskRequest(); - ~StopRecordTaskRequest(); - - 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 getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string taskId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT StopRecordTaskRequest : public RpcServiceRequest { +public: + StopRecordTaskRequest(); + ~StopRecordTaskRequest(); + 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 getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string taskId_; + std::string showLog_; + long ownerId_; + std::string appId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_STOPRECORDTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h deleted file mode 100644 index b1bedf4ab..000000000 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllRequest.h +++ /dev/null @@ -1,60 +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_UNMUTEAUDIOALLREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOALLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UnmuteAudioAllRequest : public RpcServiceRequest - { - - public: - UnmuteAudioAllRequest(); - ~UnmuteAudioAllRequest(); - - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getParticipantId()const; - void setParticipantId(const std::string& participantId); - std::string getAppId()const; - void setAppId(const std::string& appId); - - private: - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string participantId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOALLREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllResult.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllResult.h deleted file mode 100644 index 15907340a..000000000 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioAllResult.h +++ /dev/null @@ -1,59 +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_UNMUTEAUDIOALLRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UnmuteAudioAllResult : public ServiceResult - { - public: - struct Participant - { - std::string message; - std::string id; - std::string code; - }; - - - UnmuteAudioAllResult(); - explicit UnmuteAudioAllResult(const std::string &payload); - ~UnmuteAudioAllResult(); - std::string getConferenceId()const; - std::vector getParticipants()const; - - protected: - void parse(const std::string &payload); - private: - std::string conferenceId_; - std::vector participants_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOALLRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h deleted file mode 100644 index 65436c31e..000000000 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioRequest.h +++ /dev/null @@ -1,60 +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_UNMUTEAUDIOREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UnmuteAudioRequest : public RpcServiceRequest - { - - public: - UnmuteAudioRequest(); - ~UnmuteAudioRequest(); - - std::vector getParticipantIds()const; - void setParticipantIds(const std::vector& participantIds); - std::string getConferenceId()const; - void setConferenceId(const std::string& conferenceId); - 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); - - private: - std::vector participantIds_; - std::string conferenceId_; - std::string showLog_; - long ownerId_; - std::string appId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIOREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UnmuteAudioResult.h b/rtc/include/alibabacloud/rtc/model/UnmuteAudioResult.h deleted file mode 100644 index f68569102..000000000 --- a/rtc/include/alibabacloud/rtc/model/UnmuteAudioResult.h +++ /dev/null @@ -1,59 +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_UNMUTEAUDIORESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UnmuteAudioResult : public ServiceResult - { - public: - struct Participant - { - std::string message; - std::string id; - std::string code; - }; - - - UnmuteAudioResult(); - explicit UnmuteAudioResult(const std::string &payload); - ~UnmuteAudioResult(); - std::string getConferenceId()const; - std::vector getParticipants()const; - - protected: - void parse(const std::string &payload); - private: - std::string conferenceId_; - std::vector participants_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UNMUTEAUDIORESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleRequest.h new file mode 100644 index 000000000..5e23ab368 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT UpdateAutoLiveStreamRuleRequest : public RpcServiceRequest { +public: + UpdateAutoLiveStreamRuleRequest(); + ~UpdateAutoLiveStreamRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getChannelIdPrefixes() const; + void setChannelIdPrefixes(const std::vector &channelIdPrefixes); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::string getPlayDomain() const; + void setPlayDomain(const std::string &playDomain); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getCallBack() const; + void setCallBack(const std::string &callBack); + int getMediaEncode() const; + void setMediaEncode(int mediaEncode); + int getRuleId() const; + void setRuleId(int ruleId); + std::vector getChannelIds() const; + void setChannelIds(const std::vector &channelIds); + +private: + std::string ruleName_; + std::vector channelIdPrefixes_; + std::string showLog_; + std::string playDomain_; + long ownerId_; + std::string appId_; + std::string callBack_; + int mediaEncode_; + int ruleId_; + std::vector channelIds_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULEREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/ModifyConferenceResult.h b/rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleResult.h similarity index 66% rename from rtc/include/alibabacloud/rtc/model/ModifyConferenceResult.h rename to rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleResult.h index 4c1b7574d..ef9ace539 100644 --- a/rtc/include/alibabacloud/rtc/model/ModifyConferenceResult.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateAutoLiveStreamRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_MODIFYCONFERENCERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_MODIFYCONFERENCERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULERESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULERESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT ModifyConferenceResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT UpdateAutoLiveStreamRuleResult : public ServiceResult { public: - ModifyConferenceResult(); - explicit ModifyConferenceResult(const std::string &payload); - ~ModifyConferenceResult(); - std::string getConferenceId()const; + UpdateAutoLiveStreamRuleResult(); + explicit UpdateAutoLiveStreamRuleResult(const std::string &payload); + ~UpdateAutoLiveStreamRuleResult(); + long getRuleId()const; protected: void parse(const std::string &payload); private: - std::string conferenceId_; + long ruleId_; }; } } } -#endif // !ALIBABACLOUD_RTC_MODEL_MODIFYCONFERENCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEAUTOLIVESTREAMRULERESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h deleted file mode 100644 index 1f2ff04c3..000000000 --- a/rtc/include/alibabacloud/rtc/model/UpdateChannelRequest.h +++ /dev/null @@ -1,60 +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_UPDATECHANNELREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_UPDATECHANNELREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UpdateChannelRequest : public RpcServiceRequest - { - - public: - UpdateChannelRequest(); - ~UpdateChannelRequest(); - - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNonce()const; - void setNonce(const std::string& nonce); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getChannelId()const; - void setChannelId(const std::string& channelId); - - private: - std::string showLog_; - long ownerId_; - std::string nonce_; - std::string appId_; - std::string channelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UPDATECHANNELREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateChannelResult.h b/rtc/include/alibabacloud/rtc/model/UpdateChannelResult.h deleted file mode 100644 index fc8cb79f9..000000000 --- a/rtc/include/alibabacloud/rtc/model/UpdateChannelResult.h +++ /dev/null @@ -1,53 +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_UPDATECHANNELRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_UPDATECHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UpdateChannelResult : public ServiceResult - { - public: - - - UpdateChannelResult(); - explicit UpdateChannelResult(const std::string &payload); - ~UpdateChannelResult(); - std::string getNonce()const; - int getTimestamp()const; - - protected: - void parse(const std::string &payload); - private: - std::string nonce_; - int timestamp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UPDATECHANNELRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h deleted file mode 100644 index 71e30b800..000000000 --- a/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h +++ /dev/null @@ -1,137 +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_UPDATEMPULAYOUTREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_UPDATEMPULAYOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UpdateMPULayoutRequest : 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; - }; - struct ClockWidgets - { - float x; - float y; - int fontType; - int fontSize; - int fontColor; - int zOrder; - }; - 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: - UpdateMPULayoutRequest(); - ~UpdateMPULayoutRequest(); - - std::vector getUserPanes()const; - void setUserPanes(const std::vector& userPanes); - int getBackgroundColor()const; - void setBackgroundColor(int backgroundColor); - int getCropMode()const; - void setCropMode(int cropMode); - std::vector getLayoutIds()const; - void setLayoutIds(const std::vector& layoutIds); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::vector getClockWidgets()const; - void setClockWidgets(const std::vector& clockWidgets); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - 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); - - private: - std::vector userPanes_; - int backgroundColor_; - int cropMode_; - std::vector layoutIds_; - std::string taskId_; - std::vector clockWidgets_; - std::string showLog_; - std::vector watermarks_; - long ownerId_; - std::string appId_; - std::vector backgrounds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEMPULAYOUTREQUEST_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutResult.h b/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutResult.h deleted file mode 100644 index 06881f3c8..000000000 --- a/rtc/include/alibabacloud/rtc/model/UpdateMPULayoutResult.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_UPDATEMPULAYOUTRESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_UPDATEMPULAYOUTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - class ALIBABACLOUD_RTC_EXPORT UpdateMPULayoutResult : public ServiceResult - { - public: - - - UpdateMPULayoutResult(); - explicit UpdateMPULayoutResult(const std::string &payload); - ~UpdateMPULayoutResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEMPULAYOUTRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateMPUTaskRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateMPUTaskRequest.h new file mode 100644 index 000000000..821ef96d7 --- /dev/null +++ b/rtc/include/alibabacloud/rtc/model/UpdateMPUTaskRequest.h @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT UpdateMPUTaskRequest : public RpcServiceRequest { +public: + struct UserPanes { + struct Images { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + std::vector images; + int segmentType; + std::string userId; + struct Texts { + int fontType; + int fontColor; + float y; + std::string text; + int zOrder; + float x; + int fontSize; + }; + std::vector texts; + std::string sourceType; + int paneId; + }; + struct ClockWidgets { + int fontType; + int fontColor; + float y; + int zOrder; + float x; + int fontSize; + }; + struct Watermarks { + float alpha; + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + struct EnhancedParam { + bool enablePortraitSegmentation; + bool enableVirtualConference; + bool enableCartoonPortrait; + bool enableVoiceChanger; + bool enableUserPaneBackground; + std::string backgroundPath; + }; + struct Backgrounds { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + UpdateMPUTaskRequest(); + ~UpdateMPUTaskRequest(); + std::vector getUserPanes() const; + void setUserPanes(const std::vector &userPanes); + int getBackgroundColor() const; + void setBackgroundColor(int backgroundColor); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::vector getClockWidgets() const; + void setClockWidgets(const std::vector &clockWidgets); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::vector getUnsubSpecCameraUsers() const; + void setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers); + std::vector getUnsubSpecAudioUsers() const; + void setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers); + std::vector getWatermarks() const; + void setWatermarks(const std::vector &watermarks); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getSubSpecAudioUsers() const; + void setSubSpecAudioUsers(const std::vector &subSpecAudioUsers); + int getMediaEncode() const; + void setMediaEncode(int mediaEncode); + EnhancedParam getEnhancedParam() const; + void setEnhancedParam(const EnhancedParam &enhancedParam); + int getCropMode() const; + void setCropMode(int cropMode); + std::vector getSubSpecCameraUsers() const; + void setSubSpecCameraUsers(const std::vector &subSpecCameraUsers); + std::string getTaskProfile() const; + void setTaskProfile(const std::string &taskProfile); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + int getStreamType() const; + void setStreamType(int streamType); + std::vector getUnsubSpecShareScreenUsers() const; + void setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers); + std::vector getSubSpecShareScreenUsers() const; + void setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers); + std::vector getSubSpecUsers() const; + void setSubSpecUsers(const std::vector &subSpecUsers); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::vector getBackgrounds() const; + void setBackgrounds(const std::vector &backgrounds); + int getMixMode() const; + void setMixMode(int mixMode); + +private: + std::vector userPanes_; + int backgroundColor_; + std::string sourceType_; + std::string taskId_; + std::vector clockWidgets_; + std::string showLog_; + std::vector unsubSpecCameraUsers_; + std::vector unsubSpecAudioUsers_; + std::vector watermarks_; + long ownerId_; + std::vector subSpecAudioUsers_; + int mediaEncode_; + EnhancedParam enhancedParam_; + int cropMode_; + std::vector subSpecCameraUsers_; + std::string taskProfile_; + std::vector layoutIds_; + int streamType_; + std::vector unsubSpecShareScreenUsers_; + std::vector subSpecShareScreenUsers_; + std::vector subSpecUsers_; + std::string appId_; + std::vector backgrounds_; + int mixMode_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/DeleteMPURuleResult.h b/rtc/include/alibabacloud/rtc/model/UpdateMPUTaskResult.h similarity index 73% rename from rtc/include/alibabacloud/rtc/model/DeleteMPURuleResult.h rename to rtc/include/alibabacloud/rtc/model/UpdateMPUTaskResult.h index 964d44e9b..7913f69c9 100644 --- a/rtc/include/alibabacloud/rtc/model/DeleteMPURuleResult.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateMPUTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMPURULERESULT_H_ -#define ALIBABACLOUD_RTC_MODEL_DELETEMPURULERESULT_H_ +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKRESULT_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_RTC_EXPORT DeleteMPURuleResult : public ServiceResult + class ALIBABACLOUD_RTC_EXPORT UpdateMPUTaskResult : public ServiceResult { public: - DeleteMPURuleResult(); - explicit DeleteMPURuleResult(const std::string &payload); - ~DeleteMPURuleResult(); + UpdateMPUTaskResult(); + explicit UpdateMPUTaskResult(const std::string &payload); + ~UpdateMPUTaskResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMPURULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATEMPUTASKRESULT_H_ \ No newline at end of file diff --git a/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h index a257938eb..5e3b79393 100644 --- a/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h @@ -1,98 +1,109 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT UpdateRecordTaskRequest : public RpcServiceRequest { +public: + struct UserPanes { + struct Images { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + std::vector images; + std::string userId; + struct Texts { + int fontType; + int fontColor; + float y; + std::string text; + int zOrder; + float x; + int fontSize; + }; + std::vector texts; + std::string sourceType; + int paneId; + }; + UpdateRecordTaskRequest(); + ~UpdateRecordTaskRequest(); + std::vector getUserPanes() const; + void setUserPanes(const std::vector &userPanes); + std::vector getSubSpecCameraUsers() const; + void setSubSpecCameraUsers(const std::vector &subSpecCameraUsers); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::vector getUnsubSpecCameraUsers() const; + void setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers); + std::vector getUnsubSpecAudioUsers() const; + void setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers); + std::vector getUnsubSpecShareScreenUsers() const; + void setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::vector getSubSpecAudioUsers() const; + void setSubSpecAudioUsers(const std::vector &subSpecAudioUsers); + std::vector getSubSpecShareScreenUsers() const; + void setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers); + 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::vector subSpecCameraUsers_; + std::vector layoutIds_; + std::string taskId_; + std::string showLog_; + std::vector unsubSpecCameraUsers_; + std::vector unsubSpecAudioUsers_; + std::vector unsubSpecShareScreenUsers_; + long ownerId_; + std::string templateId_; + std::vector subSpecAudioUsers_; + std::vector subSpecShareScreenUsers_; + std::vector subSpecUsers_; + std::string appId_; + std::string channelId_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_ diff --git a/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h b/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h index 79dfd72dc..46cb2b6db 100644 --- a/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h +++ b/rtc/include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h @@ -1,118 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Rtc - { - namespace Model - { - 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(); - ~UpdateRecordTemplateRequest(); - - std::vector getFormats()const; - void setFormats(const std::vector& formats); - std::string getOssFilePrefix()const; - void setOssFilePrefix(const std::string& ossFilePrefix); - int getBackgroundColor()const; - void setBackgroundColor(int backgroundColor); - std::string getTaskProfile()const; - void setTaskProfile(const std::string& taskProfile); - std::vector getLayoutIds()const; - void setLayoutIds(const std::vector& layoutIds); - std::string getShowLog()const; - 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 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; - void setMediaEncode(int mediaEncode); - - private: - std::vector formats_; - std::string ossFilePrefix_; - int backgroundColor_; - std::string taskProfile_; - std::vector layoutIds_; - std::string showLog_; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Rtc { +namespace Model { +class ALIBABACLOUD_RTC_EXPORT UpdateRecordTemplateRequest : public RpcServiceRequest { +public: + struct ClockWidgets { + int fontType; + int fontColor; + float y; + int zOrder; + float x; + int fontSize; + }; + struct Watermarks { + float alpha; + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + struct Backgrounds { + float width; + float height; + float y; + std::string url; + int display; + int zOrder; + float x; + }; + UpdateRecordTemplateRequest(); + ~UpdateRecordTemplateRequest(); + std::vector getFormats() const; + void setFormats(const std::vector &formats); + std::string getOssFilePrefix() const; + void setOssFilePrefix(const std::string &ossFilePrefix); + int getBackgroundColor() const; + void setBackgroundColor(int backgroundColor); + std::string getTaskProfile() const; + void setTaskProfile(const std::string &taskProfile); + std::vector getLayoutIds() const; + void setLayoutIds(const std::vector &layoutIds); + std::vector getClockWidgets() const; + void setClockWidgets(const std::vector &clockWidgets); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + std::string getOssBucket() const; + void setOssBucket(const std::string &ossBucket); + int getDelayStopTime() const; + void setDelayStopTime(int delayStopTime); + std::string getMnsQueue() const; + 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); + bool getEnableM3u8DateTime() const; + void setEnableM3u8DateTime(bool enableM3u8DateTime); + 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; + void setMediaEncode(int mediaEncode); + +private: + std::vector formats_; + std::string ossFilePrefix_; + int backgroundColor_; + std::string taskProfile_; + std::vector layoutIds_; + std::vector clockWidgets_; + std::string showLog_; + std::string ossBucket_; + int delayStopTime_; + std::string mnsQueue_; + int fileSplitInterval_; + std::string httpCallbackUrl_; + std::vector watermarks_; + long ownerId_; + std::string templateId_; + bool enableM3u8DateTime_; + std::string appId_; + std::vector backgrounds_; + std::string name_; + int mediaEncode_; +}; +} // namespace Model +} // namespace Rtc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTEMPLATEREQUEST_H_ diff --git a/rtc/src/RtcClient.cc b/rtc/src/RtcClient.cc index 0ffc8a81f..b23b1b7dc 100644 --- a/rtc/src/RtcClient.cc +++ b/rtc/src/RtcClient.cc @@ -31,21 +31,21 @@ RtcClient::RtcClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "rtc"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } RtcClient::RtcClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "rtc"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } RtcClient::RtcClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "rtc"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } RtcClient::~RtcClient() @@ -87,72 +87,72 @@ RtcClient::AddRecordTemplateOutcomeCallable RtcClient::addRecordTemplateCallable return task->get_future(); } -RtcClient::CreateChannelOutcome RtcClient::createChannel(const CreateChannelRequest &request) const +RtcClient::CreateAutoLiveStreamRuleOutcome RtcClient::createAutoLiveStreamRule(const CreateAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateChannelOutcome(endpointOutcome.error()); + return CreateAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateChannelOutcome(CreateChannelResult(outcome.result())); + return CreateAutoLiveStreamRuleOutcome(CreateAutoLiveStreamRuleResult(outcome.result())); else - return CreateChannelOutcome(outcome.error()); + return CreateAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::createChannelAsync(const CreateChannelRequest& request, const CreateChannelAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::createAutoLiveStreamRuleAsync(const CreateAutoLiveStreamRuleRequest& request, const CreateAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createChannel(request), context); + handler(this, request, createAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::CreateChannelOutcomeCallable RtcClient::createChannelCallable(const CreateChannelRequest &request) const +RtcClient::CreateAutoLiveStreamRuleOutcomeCallable RtcClient::createAutoLiveStreamRuleCallable(const CreateAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createChannel(request); + return this->createAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -RtcClient::CreateConferenceOutcome RtcClient::createConference(const CreateConferenceRequest &request) const +RtcClient::CreateEventSubscribeOutcome RtcClient::createEventSubscribe(const CreateEventSubscribeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateConferenceOutcome(endpointOutcome.error()); + return CreateEventSubscribeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateConferenceOutcome(CreateConferenceResult(outcome.result())); + return CreateEventSubscribeOutcome(CreateEventSubscribeResult(outcome.result())); else - return CreateConferenceOutcome(outcome.error()); + return CreateEventSubscribeOutcome(outcome.error()); } -void RtcClient::createConferenceAsync(const CreateConferenceRequest& request, const CreateConferenceAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::createEventSubscribeAsync(const CreateEventSubscribeRequest& request, const CreateEventSubscribeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createConference(request), context); + handler(this, request, createEventSubscribe(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(const CreateConferenceRequest &request) const +RtcClient::CreateEventSubscribeOutcomeCallable RtcClient::createEventSubscribeCallable(const CreateEventSubscribeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createConference(request); + return this->createEventSubscribe(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -195,144 +195,108 @@ RtcClient::CreateMPULayoutOutcomeCallable RtcClient::createMPULayoutCallable(con return task->get_future(); } -RtcClient::CreateMPURuleOutcome RtcClient::createMPURule(const CreateMPURuleRequest &request) const +RtcClient::CreateRecordIndexFileOutcome RtcClient::createRecordIndexFile(const CreateRecordIndexFileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMPURuleOutcome(endpointOutcome.error()); + return CreateRecordIndexFileOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMPURuleOutcome(CreateMPURuleResult(outcome.result())); + return CreateRecordIndexFileOutcome(CreateRecordIndexFileResult(outcome.result())); else - return CreateMPURuleOutcome(outcome.error()); + return CreateRecordIndexFileOutcome(outcome.error()); } -void RtcClient::createMPURuleAsync(const CreateMPURuleRequest& request, const CreateMPURuleAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::createRecordIndexFileAsync(const CreateRecordIndexFileRequest& request, const CreateRecordIndexFileAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMPURule(request), context); + handler(this, request, createRecordIndexFile(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::CreateMPURuleOutcomeCallable RtcClient::createMPURuleCallable(const CreateMPURuleRequest &request) const +RtcClient::CreateRecordIndexFileOutcomeCallable RtcClient::createRecordIndexFileCallable(const CreateRecordIndexFileRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMPURule(request); + return this->createRecordIndexFile(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -RtcClient::CreateServiceLinkedRoleForRtcOutcome RtcClient::createServiceLinkedRoleForRtc(const CreateServiceLinkedRoleForRtcRequest &request) const +RtcClient::DeleteAutoLiveStreamRuleOutcome RtcClient::deleteAutoLiveStreamRule(const DeleteAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateServiceLinkedRoleForRtcOutcome(endpointOutcome.error()); + return DeleteAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateServiceLinkedRoleForRtcOutcome(CreateServiceLinkedRoleForRtcResult(outcome.result())); + return DeleteAutoLiveStreamRuleOutcome(DeleteAutoLiveStreamRuleResult(outcome.result())); else - return CreateServiceLinkedRoleForRtcOutcome(outcome.error()); + return DeleteAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::createServiceLinkedRoleForRtcAsync(const CreateServiceLinkedRoleForRtcRequest& request, const CreateServiceLinkedRoleForRtcAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::deleteAutoLiveStreamRuleAsync(const DeleteAutoLiveStreamRuleRequest& request, const DeleteAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createServiceLinkedRoleForRtc(request), context); + handler(this, request, deleteAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::CreateServiceLinkedRoleForRtcOutcomeCallable RtcClient::createServiceLinkedRoleForRtcCallable(const CreateServiceLinkedRoleForRtcRequest &request) const +RtcClient::DeleteAutoLiveStreamRuleOutcomeCallable RtcClient::deleteAutoLiveStreamRuleCallable(const DeleteAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createServiceLinkedRoleForRtc(request); + return this->deleteAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const +RtcClient::DeleteEventSubscribeOutcome RtcClient::deleteEventSubscribe(const DeleteEventSubscribeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteChannelOutcome(endpointOutcome.error()); + return DeleteEventSubscribeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteChannelOutcome(DeleteChannelResult(outcome.result())); + return DeleteEventSubscribeOutcome(DeleteEventSubscribeResult(outcome.result())); else - return DeleteChannelOutcome(outcome.error()); + return DeleteEventSubscribeOutcome(outcome.error()); } -void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::deleteEventSubscribeAsync(const DeleteEventSubscribeRequest& request, const DeleteEventSubscribeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteChannel(request), context); + handler(this, request, deleteEventSubscribe(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const +RtcClient::DeleteEventSubscribeOutcomeCallable RtcClient::deleteEventSubscribeCallable(const DeleteEventSubscribeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DeleteConferenceOutcome RtcClient::deleteConference(const DeleteConferenceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteConferenceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteConferenceOutcome(DeleteConferenceResult(outcome.result())); - else - return DeleteConferenceOutcome(outcome.error()); -} - -void RtcClient::deleteConferenceAsync(const DeleteConferenceRequest& request, const DeleteConferenceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteConference(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(const DeleteConferenceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteConference(request); + return this->deleteEventSubscribe(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -375,42 +339,6 @@ RtcClient::DeleteMPULayoutOutcomeCallable RtcClient::deleteMPULayoutCallable(con return task->get_future(); } -RtcClient::DeleteMPURuleOutcome RtcClient::deleteMPURule(const DeleteMPURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMPURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMPURuleOutcome(DeleteMPURuleResult(outcome.result())); - else - return DeleteMPURuleOutcome(outcome.error()); -} - -void RtcClient::deleteMPURuleAsync(const DeleteMPURuleRequest& request, const DeleteMPURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMPURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DeleteMPURuleOutcomeCallable RtcClient::deleteMPURuleCallable(const DeleteMPURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMPURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DeleteRecordTemplateOutcome RtcClient::deleteRecordTemplate(const DeleteRecordTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,36 +375,36 @@ RtcClient::DeleteRecordTemplateOutcomeCallable RtcClient::deleteRecordTemplateCa return task->get_future(); } -RtcClient::DescribeAppsOutcome RtcClient::describeApps(const DescribeAppsRequest &request) const +RtcClient::DescribeAutoLiveStreamRuleOutcome RtcClient::describeAutoLiveStreamRule(const DescribeAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAppsOutcome(endpointOutcome.error()); + return DescribeAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAppsOutcome(DescribeAppsResult(outcome.result())); + return DescribeAutoLiveStreamRuleOutcome(DescribeAutoLiveStreamRuleResult(outcome.result())); else - return DescribeAppsOutcome(outcome.error()); + return DescribeAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::describeAppsAsync(const DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::describeAutoLiveStreamRuleAsync(const DescribeAutoLiveStreamRuleRequest& request, const DescribeAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeApps(request), context); + handler(this, request, describeAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::DescribeAppsOutcomeCallable RtcClient::describeAppsCallable(const DescribeAppsRequest &request) const +RtcClient::DescribeAutoLiveStreamRuleOutcomeCallable RtcClient::describeAutoLiveStreamRuleCallable(const DescribeAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeApps(request); + return this->describeAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -555,78 +483,6 @@ RtcClient::DescribeChannelUsersOutcomeCallable RtcClient::describeChannelUsersCa return task->get_future(); } -RtcClient::DescribeConferenceAuthInfoOutcome RtcClient::describeConferenceAuthInfo(const DescribeConferenceAuthInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConferenceAuthInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConferenceAuthInfoOutcome(DescribeConferenceAuthInfoResult(outcome.result())); - else - return DescribeConferenceAuthInfoOutcome(outcome.error()); -} - -void RtcClient::describeConferenceAuthInfoAsync(const DescribeConferenceAuthInfoRequest& request, const DescribeConferenceAuthInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConferenceAuthInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeConferenceAuthInfoOutcomeCallable RtcClient::describeConferenceAuthInfoCallable(const DescribeConferenceAuthInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConferenceAuthInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeMPULayoutInfoOutcome RtcClient::describeMPULayoutInfo(const DescribeMPULayoutInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMPULayoutInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMPULayoutInfoOutcome(DescribeMPULayoutInfoResult(outcome.result())); - else - return DescribeMPULayoutInfoOutcome(outcome.error()); -} - -void RtcClient::describeMPULayoutInfoAsync(const DescribeMPULayoutInfoRequest& request, const DescribeMPULayoutInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMPULayoutInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeMPULayoutInfoOutcomeCallable RtcClient::describeMPULayoutInfoCallable(const DescribeMPULayoutInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMPULayoutInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeMPULayoutInfoListOutcome RtcClient::describeMPULayoutInfoList(const DescribeMPULayoutInfoListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,114 +519,6 @@ RtcClient::DescribeMPULayoutInfoListOutcomeCallable RtcClient::describeMPULayout return task->get_future(); } -RtcClient::DescribeMPULayoutListOutcome RtcClient::describeMPULayoutList(const DescribeMPULayoutListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMPULayoutListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMPULayoutListOutcome(DescribeMPULayoutListResult(outcome.result())); - else - return DescribeMPULayoutListOutcome(outcome.error()); -} - -void RtcClient::describeMPULayoutListAsync(const DescribeMPULayoutListRequest& request, const DescribeMPULayoutListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMPULayoutList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeMPULayoutListOutcomeCallable RtcClient::describeMPULayoutListCallable(const DescribeMPULayoutListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMPULayoutList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeMPURuleOutcome RtcClient::describeMPURule(const DescribeMPURuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMPURuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMPURuleOutcome(DescribeMPURuleResult(outcome.result())); - else - return DescribeMPURuleOutcome(outcome.error()); -} - -void RtcClient::describeMPURuleAsync(const DescribeMPURuleRequest& request, const DescribeMPURuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMPURule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeMPURuleOutcomeCallable RtcClient::describeMPURuleCallable(const DescribeMPURuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMPURule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRTCAppKeyOutcome RtcClient::describeRTCAppKey(const DescribeRTCAppKeyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRTCAppKeyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRTCAppKeyOutcome(DescribeRTCAppKeyResult(outcome.result())); - else - return DescribeRTCAppKeyOutcome(outcome.error()); -} - -void RtcClient::describeRTCAppKeyAsync(const DescribeRTCAppKeyRequest& request, const DescribeRTCAppKeyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRTCAppKey(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRTCAppKeyOutcomeCallable RtcClient::describeRTCAppKeyCallable(const DescribeRTCAppKeyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRTCAppKey(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeRecordFilesOutcome RtcClient::describeRecordFiles(const DescribeRecordFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,582 +627,6 @@ RtcClient::DescribeRecordTemplatesOutcomeCallable RtcClient::describeRecordTempl return task->get_future(); } -RtcClient::DescribeRtcChannelCntDataOutcome RtcClient::describeRtcChannelCntData(const DescribeRtcChannelCntDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcChannelCntDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcChannelCntDataOutcome(DescribeRtcChannelCntDataResult(outcome.result())); - else - return DescribeRtcChannelCntDataOutcome(outcome.error()); -} - -void RtcClient::describeRtcChannelCntDataAsync(const DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcChannelCntData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcChannelCntDataOutcomeCallable RtcClient::describeRtcChannelCntDataCallable(const DescribeRtcChannelCntDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcChannelCntData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcChannelListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcChannelListOutcome(DescribeRtcChannelListResult(outcome.result())); - else - return DescribeRtcChannelListOutcome(outcome.error()); -} - -void RtcClient::describeRtcChannelListAsync(const DescribeRtcChannelListRequest& request, const DescribeRtcChannelListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcChannelList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcChannelListOutcomeCallable RtcClient::describeRtcChannelListCallable(const DescribeRtcChannelListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcChannelList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcChannelMetricOutcome RtcClient::describeRtcChannelMetric(const DescribeRtcChannelMetricRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcChannelMetricOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcChannelMetricOutcome(DescribeRtcChannelMetricResult(outcome.result())); - else - return DescribeRtcChannelMetricOutcome(outcome.error()); -} - -void RtcClient::describeRtcChannelMetricAsync(const DescribeRtcChannelMetricRequest& request, const DescribeRtcChannelMetricAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcChannelMetric(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcChannelMetricOutcomeCallable RtcClient::describeRtcChannelMetricCallable(const DescribeRtcChannelMetricRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcChannelMetric(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcChannelUserListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcChannelUserListOutcome(DescribeRtcChannelUserListResult(outcome.result())); - else - return DescribeRtcChannelUserListOutcome(outcome.error()); -} - -void RtcClient::describeRtcChannelUserListAsync(const DescribeRtcChannelUserListRequest& request, const DescribeRtcChannelUserListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcChannelUserList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcChannelUserListOutcomeCallable RtcClient::describeRtcChannelUserListCallable(const DescribeRtcChannelUserListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcChannelUserList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcDurationDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcDurationDataOutcome(DescribeRtcDurationDataResult(outcome.result())); - else - return DescribeRtcDurationDataOutcome(outcome.error()); -} - -void RtcClient::describeRtcDurationDataAsync(const DescribeRtcDurationDataRequest& request, const DescribeRtcDurationDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcDurationData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcDurationDataOutcomeCallable RtcClient::describeRtcDurationDataCallable(const DescribeRtcDurationDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcDurationData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcPeakChannelCntDataOutcome RtcClient::describeRtcPeakChannelCntData(const DescribeRtcPeakChannelCntDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcPeakChannelCntDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcPeakChannelCntDataOutcome(DescribeRtcPeakChannelCntDataResult(outcome.result())); - else - return DescribeRtcPeakChannelCntDataOutcome(outcome.error()); -} - -void RtcClient::describeRtcPeakChannelCntDataAsync(const DescribeRtcPeakChannelCntDataRequest& request, const DescribeRtcPeakChannelCntDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcPeakChannelCntData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcPeakChannelCntDataOutcomeCallable RtcClient::describeRtcPeakChannelCntDataCallable(const DescribeRtcPeakChannelCntDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcPeakChannelCntData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcPeakUserCntDataOutcome RtcClient::describeRtcPeakUserCntData(const DescribeRtcPeakUserCntDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcPeakUserCntDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcPeakUserCntDataOutcome(DescribeRtcPeakUserCntDataResult(outcome.result())); - else - return DescribeRtcPeakUserCntDataOutcome(outcome.error()); -} - -void RtcClient::describeRtcPeakUserCntDataAsync(const DescribeRtcPeakUserCntDataRequest& request, const DescribeRtcPeakUserCntDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcPeakUserCntData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcPeakUserCntDataOutcomeCallable RtcClient::describeRtcPeakUserCntDataCallable(const DescribeRtcPeakUserCntDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcPeakUserCntData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcQualityMetricOutcome RtcClient::describeRtcQualityMetric(const DescribeRtcQualityMetricRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcQualityMetricOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcQualityMetricOutcome(DescribeRtcQualityMetricResult(outcome.result())); - else - return DescribeRtcQualityMetricOutcome(outcome.error()); -} - -void RtcClient::describeRtcQualityMetricAsync(const DescribeRtcQualityMetricRequest& request, const DescribeRtcQualityMetricAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcQualityMetric(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcQualityMetricOutcomeCallable RtcClient::describeRtcQualityMetricCallable(const DescribeRtcQualityMetricRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcQualityMetric(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcScaleOutcome RtcClient::describeRtcScale(const DescribeRtcScaleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcScaleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcScaleOutcome(DescribeRtcScaleResult(outcome.result())); - else - return DescribeRtcScaleOutcome(outcome.error()); -} - -void RtcClient::describeRtcScaleAsync(const DescribeRtcScaleRequest& request, const DescribeRtcScaleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcScale(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcScaleOutcomeCallable RtcClient::describeRtcScaleCallable(const DescribeRtcScaleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcScale(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcScaleDetailOutcome RtcClient::describeRtcScaleDetail(const DescribeRtcScaleDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcScaleDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcScaleDetailOutcome(DescribeRtcScaleDetailResult(outcome.result())); - else - return DescribeRtcScaleDetailOutcome(outcome.error()); -} - -void RtcClient::describeRtcScaleDetailAsync(const DescribeRtcScaleDetailRequest& request, const DescribeRtcScaleDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcScaleDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcScaleDetailOutcomeCallable RtcClient::describeRtcScaleDetailCallable(const DescribeRtcScaleDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcScaleDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::DescribeRtcUserCntDataOutcome RtcClient::describeRtcUserCntData(const DescribeRtcUserCntDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcUserCntDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcUserCntDataOutcome(DescribeRtcUserCntDataResult(outcome.result())); - else - return DescribeRtcUserCntDataOutcome(outcome.error()); -} - -void RtcClient::describeRtcUserCntDataAsync(const DescribeRtcUserCntDataRequest& request, const DescribeRtcUserCntDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcUserCntData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcUserCntDataOutcomeCallable RtcClient::describeRtcUserCntDataCallable(const DescribeRtcUserCntDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcUserCntData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DescribeRtcUserListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRtcUserListOutcome(DescribeRtcUserListResult(outcome.result())); - else - return DescribeRtcUserListOutcome(outcome.error()); -} - -void RtcClient::describeRtcUserListAsync(const DescribeRtcUserListRequest& request, const DescribeRtcUserListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRtcUserList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::DescribeRtcUserListOutcomeCallable RtcClient::describeRtcUserListCallable(const DescribeRtcUserListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRtcUserList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::DescribeUserInfoInChannelOutcome RtcClient::describeUserInfoInChannel(const DescribeUserInfoInChannelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,72 +663,72 @@ RtcClient::DescribeUserInfoInChannelOutcomeCallable RtcClient::describeUserInfoI return task->get_future(); } -RtcClient::DisableMPURuleOutcome RtcClient::disableMPURule(const DisableMPURuleRequest &request) const +RtcClient::DisableAutoLiveStreamRuleOutcome RtcClient::disableAutoLiveStreamRule(const DisableAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DisableMPURuleOutcome(endpointOutcome.error()); + return DisableAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DisableMPURuleOutcome(DisableMPURuleResult(outcome.result())); + return DisableAutoLiveStreamRuleOutcome(DisableAutoLiveStreamRuleResult(outcome.result())); else - return DisableMPURuleOutcome(outcome.error()); + return DisableAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::disableMPURuleAsync(const DisableMPURuleRequest& request, const DisableMPURuleAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::disableAutoLiveStreamRuleAsync(const DisableAutoLiveStreamRuleRequest& request, const DisableAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, disableMPURule(request), context); + handler(this, request, disableAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::DisableMPURuleOutcomeCallable RtcClient::disableMPURuleCallable(const DisableMPURuleRequest &request) const +RtcClient::DisableAutoLiveStreamRuleOutcomeCallable RtcClient::disableAutoLiveStreamRuleCallable(const DisableAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->disableMPURule(request); + return this->disableAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -RtcClient::EnableMPURuleOutcome RtcClient::enableMPURule(const EnableMPURuleRequest &request) const +RtcClient::EnableAutoLiveStreamRuleOutcome RtcClient::enableAutoLiveStreamRule(const EnableAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableMPURuleOutcome(endpointOutcome.error()); + return EnableAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableMPURuleOutcome(EnableMPURuleResult(outcome.result())); + return EnableAutoLiveStreamRuleOutcome(EnableAutoLiveStreamRuleResult(outcome.result())); else - return EnableMPURuleOutcome(outcome.error()); + return EnableAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::enableMPURuleAsync(const EnableMPURuleRequest& request, const EnableMPURuleAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::enableAutoLiveStreamRuleAsync(const EnableAutoLiveStreamRuleRequest& request, const EnableAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableMPURule(request), context); + handler(this, request, enableAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::EnableMPURuleOutcomeCallable RtcClient::enableMPURuleCallable(const EnableMPURuleRequest &request) const +RtcClient::EnableAutoLiveStreamRuleOutcomeCallable RtcClient::enableAutoLiveStreamRuleCallable(const EnableAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableMPURule(request); + return this->enableAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1599,78 +771,6 @@ RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(c return task->get_future(); } -RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAppOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAppOutcome(ModifyAppResult(outcome.result())); - else - return ModifyAppOutcome(outcome.error()); -} - -void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyApp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyApp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::ModifyConferenceOutcome RtcClient::modifyConference(const ModifyConferenceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyConferenceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyConferenceOutcome(ModifyConferenceResult(outcome.result())); - else - return ModifyConferenceOutcome(outcome.error()); -} - -void RtcClient::modifyConferenceAsync(const ModifyConferenceRequest& request, const ModifyConferenceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyConference(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::ModifyConferenceOutcomeCallable RtcClient::modifyConferenceCallable(const ModifyConferenceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyConference(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::ModifyMPULayoutOutcome RtcClient::modifyMPULayout(const ModifyMPULayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,150 +807,6 @@ RtcClient::ModifyMPULayoutOutcomeCallable RtcClient::modifyMPULayoutCallable(con return task->get_future(); } -RtcClient::MuteAudioOutcome RtcClient::muteAudio(const MuteAudioRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MuteAudioOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MuteAudioOutcome(MuteAudioResult(outcome.result())); - else - return MuteAudioOutcome(outcome.error()); -} - -void RtcClient::muteAudioAsync(const MuteAudioRequest& request, const MuteAudioAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, muteAudio(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::MuteAudioOutcomeCallable RtcClient::muteAudioCallable(const MuteAudioRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->muteAudio(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::MuteAudioAllOutcome RtcClient::muteAudioAll(const MuteAudioAllRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return MuteAudioAllOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return MuteAudioAllOutcome(MuteAudioAllResult(outcome.result())); - else - return MuteAudioAllOutcome(outcome.error()); -} - -void RtcClient::muteAudioAllAsync(const MuteAudioAllRequest& request, const MuteAudioAllAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, muteAudioAll(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::MuteAudioAllOutcomeCallable RtcClient::muteAudioAllCallable(const MuteAudioAllRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->muteAudioAll(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::ReceiveNotifyOutcome RtcClient::receiveNotify(const ReceiveNotifyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ReceiveNotifyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ReceiveNotifyOutcome(ReceiveNotifyResult(outcome.result())); - else - return ReceiveNotifyOutcome(outcome.error()); -} - -void RtcClient::receiveNotifyAsync(const ReceiveNotifyRequest& request, const ReceiveNotifyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, receiveNotify(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::ReceiveNotifyOutcomeCallable RtcClient::receiveNotifyCallable(const ReceiveNotifyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->receiveNotify(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::RemoveParticipantsOutcome RtcClient::removeParticipants(const RemoveParticipantsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveParticipantsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveParticipantsOutcome(RemoveParticipantsResult(outcome.result())); - else - return RemoveParticipantsOutcome(outcome.error()); -} - -void RtcClient::removeParticipantsAsync(const RemoveParticipantsRequest& request, const RemoveParticipantsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeParticipants(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::RemoveParticipantsOutcomeCallable RtcClient::removeParticipantsCallable(const RemoveParticipantsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeParticipants(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::RemoveTerminalsOutcome RtcClient::removeTerminals(const RemoveTerminalsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,42 +843,6 @@ RtcClient::RemoveTerminalsOutcomeCallable RtcClient::removeTerminalsCallable(con return task->get_future(); } -RtcClient::SetChannelPropertyOutcome RtcClient::setChannelProperty(const SetChannelPropertyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetChannelPropertyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetChannelPropertyOutcome(SetChannelPropertyResult(outcome.result())); - else - return SetChannelPropertyOutcome(outcome.error()); -} - -void RtcClient::setChannelPropertyAsync(const SetChannelPropertyRequest& request, const SetChannelPropertyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setChannelProperty(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::SetChannelPropertyOutcomeCallable RtcClient::setChannelPropertyCallable(const SetChannelPropertyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setChannelProperty(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - RtcClient::StartMPUTaskOutcome RtcClient::startMPUTask(const StartMPUTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,144 +1023,72 @@ RtcClient::StopRecordTaskOutcomeCallable RtcClient::stopRecordTaskCallable(const return task->get_future(); } -RtcClient::UnmuteAudioOutcome RtcClient::unmuteAudio(const UnmuteAudioRequest &request) const +RtcClient::UpdateAutoLiveStreamRuleOutcome RtcClient::updateAutoLiveStreamRule(const UpdateAutoLiveStreamRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnmuteAudioOutcome(endpointOutcome.error()); + return UpdateAutoLiveStreamRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnmuteAudioOutcome(UnmuteAudioResult(outcome.result())); + return UpdateAutoLiveStreamRuleOutcome(UpdateAutoLiveStreamRuleResult(outcome.result())); else - return UnmuteAudioOutcome(outcome.error()); + return UpdateAutoLiveStreamRuleOutcome(outcome.error()); } -void RtcClient::unmuteAudioAsync(const UnmuteAudioRequest& request, const UnmuteAudioAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::updateAutoLiveStreamRuleAsync(const UpdateAutoLiveStreamRuleRequest& request, const UpdateAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unmuteAudio(request), context); + handler(this, request, updateAutoLiveStreamRule(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::UnmuteAudioOutcomeCallable RtcClient::unmuteAudioCallable(const UnmuteAudioRequest &request) const +RtcClient::UpdateAutoLiveStreamRuleOutcomeCallable RtcClient::updateAutoLiveStreamRuleCallable(const UpdateAutoLiveStreamRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unmuteAudio(request); + return this->updateAutoLiveStreamRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -RtcClient::UnmuteAudioAllOutcome RtcClient::unmuteAudioAll(const UnmuteAudioAllRequest &request) const +RtcClient::UpdateMPUTaskOutcome RtcClient::updateMPUTask(const UpdateMPUTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnmuteAudioAllOutcome(endpointOutcome.error()); + return UpdateMPUTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnmuteAudioAllOutcome(UnmuteAudioAllResult(outcome.result())); + return UpdateMPUTaskOutcome(UpdateMPUTaskResult(outcome.result())); else - return UnmuteAudioAllOutcome(outcome.error()); + return UpdateMPUTaskOutcome(outcome.error()); } -void RtcClient::unmuteAudioAllAsync(const UnmuteAudioAllRequest& request, const UnmuteAudioAllAsyncHandler& handler, const std::shared_ptr& context) const +void RtcClient::updateMPUTaskAsync(const UpdateMPUTaskRequest& request, const UpdateMPUTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unmuteAudioAll(request), context); + handler(this, request, updateMPUTask(request), context); }; asyncExecute(new Runnable(fn)); } -RtcClient::UnmuteAudioAllOutcomeCallable RtcClient::unmuteAudioAllCallable(const UnmuteAudioAllRequest &request) const +RtcClient::UpdateMPUTaskOutcomeCallable RtcClient::updateMPUTaskCallable(const UpdateMPUTaskRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unmuteAudioAll(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::UpdateChannelOutcome RtcClient::updateChannel(const UpdateChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateChannelOutcome(UpdateChannelResult(outcome.result())); - else - return UpdateChannelOutcome(outcome.error()); -} - -void RtcClient::updateChannelAsync(const UpdateChannelRequest& request, const UpdateChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::UpdateChannelOutcomeCallable RtcClient::updateChannelCallable(const UpdateChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -RtcClient::UpdateMPULayoutOutcome RtcClient::updateMPULayout(const UpdateMPULayoutRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMPULayoutOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMPULayoutOutcome(UpdateMPULayoutResult(outcome.result())); - else - return UpdateMPULayoutOutcome(outcome.error()); -} - -void RtcClient::updateMPULayoutAsync(const UpdateMPULayoutRequest& request, const UpdateMPULayoutAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMPULayout(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -RtcClient::UpdateMPULayoutOutcomeCallable RtcClient::updateMPULayoutCallable(const UpdateMPULayoutRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMPULayout(request); + return this->updateMPUTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/rtc/src/model/AddRecordTemplateRequest.cc b/rtc/src/model/AddRecordTemplateRequest.cc index b832f1bef..7032cc491 100644 --- a/rtc/src/model/AddRecordTemplateRequest.cc +++ b/rtc/src/model/AddRecordTemplateRequest.cc @@ -1,241 +1,226 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::AddRecordTemplateRequest; - -AddRecordTemplateRequest::AddRecordTemplateRequest() : - RpcServiceRequest("rtc", "2018-01-11", "AddRecordTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -AddRecordTemplateRequest::~AddRecordTemplateRequest() -{} - -std::vector AddRecordTemplateRequest::getFormats()const -{ - return formats_; + */ + +#include + +using AlibabaCloud::Rtc::Model::AddRecordTemplateRequest; + +AddRecordTemplateRequest::AddRecordTemplateRequest() + : RpcServiceRequest("rtc", "2018-01-11", "AddRecordTemplate") { + setMethod(HttpRequest::Method::Post); } -void AddRecordTemplateRequest::setFormats(const std::vector& formats) -{ - formats_ = formats; - for(int dep1 = 0; dep1!= formats.size(); dep1++) { - setParameter("Formats."+ std::to_string(dep1), formats.at(dep1)); - } +AddRecordTemplateRequest::~AddRecordTemplateRequest() {} + +std::vector AddRecordTemplateRequest::getFormats() const { + return formats_; } -std::string AddRecordTemplateRequest::getOssFilePrefix()const -{ - return ossFilePrefix_; +void AddRecordTemplateRequest::setFormats(const std::vector &formats) { + formats_ = formats; } -void AddRecordTemplateRequest::setOssFilePrefix(const std::string& ossFilePrefix) -{ - ossFilePrefix_ = ossFilePrefix; - setParameter("OssFilePrefix", ossFilePrefix); +std::string AddRecordTemplateRequest::getOssFilePrefix() const { + return ossFilePrefix_; } -int AddRecordTemplateRequest::getBackgroundColor()const -{ - return backgroundColor_; +void AddRecordTemplateRequest::setOssFilePrefix(const std::string &ossFilePrefix) { + ossFilePrefix_ = ossFilePrefix; + setParameter(std::string("OssFilePrefix"), ossFilePrefix); } -void AddRecordTemplateRequest::setBackgroundColor(int backgroundColor) -{ - backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); +int AddRecordTemplateRequest::getBackgroundColor() const { + return backgroundColor_; } -std::string AddRecordTemplateRequest::getTaskProfile()const -{ - return taskProfile_; +void AddRecordTemplateRequest::setBackgroundColor(int backgroundColor) { + backgroundColor_ = backgroundColor; + setParameter(std::string("BackgroundColor"), std::to_string(backgroundColor)); } -void AddRecordTemplateRequest::setTaskProfile(const std::string& taskProfile) -{ - taskProfile_ = taskProfile; - setParameter("TaskProfile", taskProfile); +std::string AddRecordTemplateRequest::getTaskProfile() const { + return taskProfile_; } -std::vector AddRecordTemplateRequest::getLayoutIds()const -{ - return layoutIds_; +void AddRecordTemplateRequest::setTaskProfile(const std::string &taskProfile) { + taskProfile_ = taskProfile; + setParameter(std::string("TaskProfile"), taskProfile); } -void AddRecordTemplateRequest::setLayoutIds(const std::vector& layoutIds) -{ - layoutIds_ = layoutIds; - for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) { - setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1))); - } +std::vector AddRecordTemplateRequest::getLayoutIds() const { + return layoutIds_; } -std::string AddRecordTemplateRequest::getShowLog()const -{ - return showLog_; +void AddRecordTemplateRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; } -void AddRecordTemplateRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::vector AddRecordTemplateRequest::getClockWidgets() const { + return clockWidgets_; } -std::string AddRecordTemplateRequest::getOssBucket()const -{ - return ossBucket_; +void AddRecordTemplateRequest::setClockWidgets(const std::vector &clockWidgets) { + clockWidgets_ = clockWidgets; + for(int dep1 = 0; dep1 != clockWidgets.size(); dep1++) { + auto clockWidgetsObj = clockWidgets.at(dep1); + std::string clockWidgetsObjStr = std::string("ClockWidgets") + "." + std::to_string(dep1 + 1); + setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); + setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); + setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); + setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); + setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); + setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); + } } -void AddRecordTemplateRequest::setOssBucket(const std::string& ossBucket) -{ - ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); +std::string AddRecordTemplateRequest::getShowLog() const { + return showLog_; } -int AddRecordTemplateRequest::getDelayStopTime()const -{ - return delayStopTime_; +void AddRecordTemplateRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void AddRecordTemplateRequest::setDelayStopTime(int delayStopTime) -{ - delayStopTime_ = delayStopTime; - setParameter("DelayStopTime", std::to_string(delayStopTime)); +std::string AddRecordTemplateRequest::getOssBucket() const { + return ossBucket_; } -int AddRecordTemplateRequest::getFileSplitInterval()const -{ - return fileSplitInterval_; +void AddRecordTemplateRequest::setOssBucket(const std::string &ossBucket) { + ossBucket_ = ossBucket; + setParameter(std::string("OssBucket"), ossBucket); } -void AddRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) -{ - fileSplitInterval_ = fileSplitInterval; - setParameter("FileSplitInterval", std::to_string(fileSplitInterval)); +int AddRecordTemplateRequest::getDelayStopTime() const { + return delayStopTime_; } -std::string AddRecordTemplateRequest::getMnsQueue()const -{ - return mnsQueue_; +void AddRecordTemplateRequest::setDelayStopTime(int delayStopTime) { + delayStopTime_ = delayStopTime; + setParameter(std::string("DelayStopTime"), std::to_string(delayStopTime)); } -void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue) -{ - mnsQueue_ = mnsQueue; - setParameter("MnsQueue", mnsQueue); +int AddRecordTemplateRequest::getFileSplitInterval() const { + return fileSplitInterval_; } -std::string AddRecordTemplateRequest::getHttpCallbackUrl()const -{ - return httpCallbackUrl_; +void AddRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) { + fileSplitInterval_ = fileSplitInterval; + setParameter(std::string("FileSplitInterval"), std::to_string(fileSplitInterval)); } -void AddRecordTemplateRequest::setHttpCallbackUrl(const std::string& httpCallbackUrl) -{ - httpCallbackUrl_ = httpCallbackUrl; - setParameter("HttpCallbackUrl", httpCallbackUrl); +std::string AddRecordTemplateRequest::getMnsQueue() const { + return mnsQueue_; } -std::vector AddRecordTemplateRequest::getWatermarks()const -{ - return watermarks_; +void AddRecordTemplateRequest::setMnsQueue(const std::string &mnsQueue) { + mnsQueue_ = mnsQueue; + setParameter(std::string("MnsQueue"), mnsQueue); } -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)); - } +std::string AddRecordTemplateRequest::getHttpCallbackUrl() const { + return httpCallbackUrl_; } -long AddRecordTemplateRequest::getOwnerId()const -{ - return ownerId_; +void AddRecordTemplateRequest::setHttpCallbackUrl(const std::string &httpCallbackUrl) { + httpCallbackUrl_ = httpCallbackUrl; + setParameter(std::string("HttpCallbackUrl"), httpCallbackUrl); } -void AddRecordTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::vector AddRecordTemplateRequest::getWatermarks() const { + return watermarks_; } -std::string AddRecordTemplateRequest::getAppId()const -{ - return appId_; +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 = std::string("Watermarks") + "." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + } } -void AddRecordTemplateRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +long AddRecordTemplateRequest::getOwnerId() const { + return ownerId_; } -std::vector AddRecordTemplateRequest::getBackgrounds()const -{ - return backgrounds_; +void AddRecordTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -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)); - } +bool AddRecordTemplateRequest::getEnableM3u8DateTime() const { + return enableM3u8DateTime_; } -std::string AddRecordTemplateRequest::getName()const -{ - return name_; +void AddRecordTemplateRequest::setEnableM3u8DateTime(bool enableM3u8DateTime) { + enableM3u8DateTime_ = enableM3u8DateTime; + setParameter(std::string("EnableM3u8DateTime"), enableM3u8DateTime ? "true" : "false"); } -void AddRecordTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddRecordTemplateRequest::getAppId() const { + return appId_; } -int AddRecordTemplateRequest::getMediaEncode()const -{ - return mediaEncode_; +void AddRecordTemplateRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void AddRecordTemplateRequest::setMediaEncode(int mediaEncode) -{ - mediaEncode_ = mediaEncode; - setParameter("MediaEncode", std::to_string(mediaEncode)); +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 = std::string("Backgrounds") + "." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + } +} + +std::string AddRecordTemplateRequest::getName() const { + return name_; +} + +void AddRecordTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int AddRecordTemplateRequest::getMediaEncode() const { + return mediaEncode_; +} + +void AddRecordTemplateRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); } diff --git a/rtc/src/model/CreateAutoLiveStreamRuleRequest.cc b/rtc/src/model/CreateAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..305418529 --- /dev/null +++ b/rtc/src/model/CreateAutoLiveStreamRuleRequest.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::CreateAutoLiveStreamRuleRequest; + +CreateAutoLiveStreamRuleRequest::CreateAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "CreateAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateAutoLiveStreamRuleRequest::~CreateAutoLiveStreamRuleRequest() {} + +std::string CreateAutoLiveStreamRuleRequest::getRuleName() const { + return ruleName_; +} + +void CreateAutoLiveStreamRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::vector CreateAutoLiveStreamRuleRequest::getChannelIdPrefixes() const { + return channelIdPrefixes_; +} + +void CreateAutoLiveStreamRuleRequest::setChannelIdPrefixes(const std::vector &channelIdPrefixes) { + channelIdPrefixes_ = channelIdPrefixes; +} + +std::string CreateAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void CreateAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +std::string CreateAutoLiveStreamRuleRequest::getPlayDomain() const { + return playDomain_; +} + +void CreateAutoLiveStreamRuleRequest::setPlayDomain(const std::string &playDomain) { + playDomain_ = playDomain; + setParameter(std::string("PlayDomain"), playDomain); +} + +long CreateAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void CreateAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void CreateAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string CreateAutoLiveStreamRuleRequest::getCallBack() const { + return callBack_; +} + +void CreateAutoLiveStreamRuleRequest::setCallBack(const std::string &callBack) { + callBack_ = callBack; + setParameter(std::string("CallBack"), callBack); +} + +int CreateAutoLiveStreamRuleRequest::getMediaEncode() const { + return mediaEncode_; +} + +void CreateAutoLiveStreamRuleRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); +} + +std::vector CreateAutoLiveStreamRuleRequest::getChannelIds() const { + return channelIds_; +} + +void CreateAutoLiveStreamRuleRequest::setChannelIds(const std::vector &channelIds) { + channelIds_ = channelIds; +} + diff --git a/rtc/src/model/CreateMPURuleResult.cc b/rtc/src/model/CreateAutoLiveStreamRuleResult.cc similarity index 70% rename from rtc/src/model/CreateMPURuleResult.cc rename to rtc/src/model/CreateAutoLiveStreamRuleResult.cc index b96a4c337..542c7e3b3 100644 --- a/rtc/src/model/CreateMPURuleResult.cc +++ b/rtc/src/model/CreateAutoLiveStreamRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -CreateMPURuleResult::CreateMPURuleResult() : +CreateAutoLiveStreamRuleResult::CreateAutoLiveStreamRuleResult() : ServiceResult() {} -CreateMPURuleResult::CreateMPURuleResult(const std::string &payload) : +CreateAutoLiveStreamRuleResult::CreateAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateMPURuleResult::~CreateMPURuleResult() +CreateAutoLiveStreamRuleResult::~CreateAutoLiveStreamRuleResult() {} -void CreateMPURuleResult::parse(const std::string &payload) +void CreateAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void CreateMPURuleResult::parse(const std::string &payload) } -long CreateMPURuleResult::getRuleId()const +long CreateAutoLiveStreamRuleResult::getRuleId()const { return ruleId_; } diff --git a/rtc/src/model/CreateChannelRequest.cc b/rtc/src/model/CreateChannelRequest.cc deleted file mode 100644 index 50c40b72e..000000000 --- a/rtc/src/model/CreateChannelRequest.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::CreateChannelRequest; - -CreateChannelRequest::CreateChannelRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateChannel") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateChannelRequest::~CreateChannelRequest() -{} - -std::string CreateChannelRequest::getShowLog()const -{ - return showLog_; -} - -void CreateChannelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long CreateChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateChannelRequest::getAppId()const -{ - return appId_; -} - -void CreateChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string CreateChannelRequest::getChannelId()const -{ - return channelId_; -} - -void CreateChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/CreateChannelResult.cc b/rtc/src/model/CreateChannelResult.cc deleted file mode 100644 index 1e2a4e52a..000000000 --- a/rtc/src/model/CreateChannelResult.cc +++ /dev/null @@ -1,65 +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; - -CreateChannelResult::CreateChannelResult() : - ServiceResult() -{} - -CreateChannelResult::CreateChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateChannelResult::~CreateChannelResult() -{} - -void CreateChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ChannelKey"].isNull()) - channelKey_ = value["ChannelKey"].asString(); - if(!value["Nonce"].isNull()) - nonce_ = value["Nonce"].asString(); - if(!value["Timestamp"].isNull()) - timestamp_ = std::stoi(value["Timestamp"].asString()); - -} - -std::string CreateChannelResult::getNonce()const -{ - return nonce_; -} - -std::string CreateChannelResult::getChannelKey()const -{ - return channelKey_; -} - -int CreateChannelResult::getTimestamp()const -{ - return timestamp_; -} - diff --git a/rtc/src/model/CreateConferenceRequest.cc b/rtc/src/model/CreateConferenceRequest.cc deleted file mode 100644 index 507ab6941..000000000 --- a/rtc/src/model/CreateConferenceRequest.cc +++ /dev/null @@ -1,117 +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::CreateConferenceRequest; - -CreateConferenceRequest::CreateConferenceRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateConference") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateConferenceRequest::~CreateConferenceRequest() -{} - -std::string CreateConferenceRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateConferenceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string CreateConferenceRequest::getStartTime()const -{ - return startTime_; -} - -void CreateConferenceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string CreateConferenceRequest::getType()const -{ - return type_; -} - -void CreateConferenceRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string CreateConferenceRequest::getConferenceName()const -{ - return conferenceName_; -} - -void CreateConferenceRequest::setConferenceName(const std::string& conferenceName) -{ - conferenceName_ = conferenceName; - setParameter("ConferenceName", conferenceName); -} - -std::string CreateConferenceRequest::getShowLog()const -{ - return showLog_; -} - -void CreateConferenceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long CreateConferenceRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateConferenceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateConferenceRequest::getAppId()const -{ - return appId_; -} - -void CreateConferenceRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -int CreateConferenceRequest::getRemindNotice()const -{ - return remindNotice_; -} - -void CreateConferenceRequest::setRemindNotice(int remindNotice) -{ - remindNotice_ = remindNotice; - setParameter("RemindNotice", std::to_string(remindNotice)); -} - diff --git a/rtc/src/model/CreateConferenceResult.cc b/rtc/src/model/CreateConferenceResult.cc deleted file mode 100644 index 8c8dfc14c..000000000 --- a/rtc/src/model/CreateConferenceResult.cc +++ /dev/null @@ -1,63 +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; - -CreateConferenceResult::CreateConferenceResult() : - ServiceResult() -{} - -CreateConferenceResult::CreateConferenceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConferenceResult::~CreateConferenceResult() -{} - -void CreateConferenceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto authInfoNode = value["AuthInfo"]; - if(!authInfoNode["Key"].isNull()) - authInfo_.key = authInfoNode["Key"].asString(); - if(!authInfoNode["Nonce"].isNull()) - authInfo_.nonce = authInfoNode["Nonce"].asString(); - if(!authInfoNode["Timestamp"].isNull()) - authInfo_.timestamp = std::stoi(authInfoNode["Timestamp"].asString()); - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -CreateConferenceResult::AuthInfo CreateConferenceResult::getAuthInfo()const -{ - return authInfo_; -} - -std::string CreateConferenceResult::getConferenceId()const -{ - return conferenceId_; -} - diff --git a/rtc/src/model/CreateEventSubscribeRequest.cc b/rtc/src/model/CreateEventSubscribeRequest.cc new file mode 100644 index 000000000..b8f120599 --- /dev/null +++ b/rtc/src/model/CreateEventSubscribeRequest.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::CreateEventSubscribeRequest; + +CreateEventSubscribeRequest::CreateEventSubscribeRequest() + : RpcServiceRequest("rtc", "2018-01-11", "CreateEventSubscribe") { + setMethod(HttpRequest::Method::Post); +} + +CreateEventSubscribeRequest::~CreateEventSubscribeRequest() {} + +std::string CreateEventSubscribeRequest::getClientToken() const { + return clientToken_; +} + +void CreateEventSubscribeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateEventSubscribeRequest::getEvents() const { + return events_; +} + +void CreateEventSubscribeRequest::setEvents(const std::vector &events) { + events_ = events; +} + +std::string CreateEventSubscribeRequest::getShowLog() const { + return showLog_; +} + +void CreateEventSubscribeRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long CreateEventSubscribeRequest::getOwnerId() const { + return ownerId_; +} + +void CreateEventSubscribeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector CreateEventSubscribeRequest::getUsers() const { + return users_; +} + +void CreateEventSubscribeRequest::setUsers(const std::vector &users) { + users_ = users; +} + +std::string CreateEventSubscribeRequest::getAppId() const { + return appId_; +} + +void CreateEventSubscribeRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string CreateEventSubscribeRequest::getCallbackUrl() const { + return callbackUrl_; +} + +void CreateEventSubscribeRequest::setCallbackUrl(const std::string &callbackUrl) { + callbackUrl_ = callbackUrl; + setParameter(std::string("CallbackUrl"), callbackUrl); +} + +std::string CreateEventSubscribeRequest::getChannelId() const { + return channelId_; +} + +void CreateEventSubscribeRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); +} + diff --git a/rtc/src/model/DescribeRTCAppKeyResult.cc b/rtc/src/model/CreateEventSubscribeResult.cc similarity index 64% rename from rtc/src/model/DescribeRTCAppKeyResult.cc rename to rtc/src/model/CreateEventSubscribeResult.cc index 4a7b05494..b68feb1a4 100644 --- a/rtc/src/model/DescribeRTCAppKeyResult.cc +++ b/rtc/src/model/CreateEventSubscribeResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DescribeRTCAppKeyResult::DescribeRTCAppKeyResult() : +CreateEventSubscribeResult::CreateEventSubscribeResult() : ServiceResult() {} -DescribeRTCAppKeyResult::DescribeRTCAppKeyResult(const std::string &payload) : +CreateEventSubscribeResult::CreateEventSubscribeResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeRTCAppKeyResult::~DescribeRTCAppKeyResult() +CreateEventSubscribeResult::~CreateEventSubscribeResult() {} -void DescribeRTCAppKeyResult::parse(const std::string &payload) +void CreateEventSubscribeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AppKey"].isNull()) - appKey_ = value["AppKey"].asString(); + if(!value["SubscribeId"].isNull()) + subscribeId_ = value["SubscribeId"].asString(); } -std::string DescribeRTCAppKeyResult::getAppKey()const +std::string CreateEventSubscribeResult::getSubscribeId()const { - return appKey_; + return subscribeId_; } diff --git a/rtc/src/model/CreateMPULayoutRequest.cc b/rtc/src/model/CreateMPULayoutRequest.cc index 9569b6a42..9f879d1fa 100644 --- a/rtc/src/model/CreateMPULayoutRequest.cc +++ b/rtc/src/model/CreateMPULayoutRequest.cc @@ -1,105 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::CreateMPULayoutRequest; - -CreateMPULayoutRequest::CreateMPULayoutRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateMPULayout") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMPULayoutRequest::~CreateMPULayoutRequest() -{} - -std::vector CreateMPULayoutRequest::getPanes()const -{ - return panes_; + */ + +#include + +using AlibabaCloud::Rtc::Model::CreateMPULayoutRequest; + +CreateMPULayoutRequest::CreateMPULayoutRequest() + : RpcServiceRequest("rtc", "2018-01-11", "CreateMPULayout") { + setMethod(HttpRequest::Method::Post); } -void CreateMPULayoutRequest::setPanes(const std::vector& panes) -{ - panes_ = panes; - for(int dep1 = 0; dep1!= panes.size(); dep1++) { - auto panesObj = panes.at(dep1); - std::string panesObjStr = "Panes." + std::to_string(dep1 + 1); - setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId)); - setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane)); - setParameter(panesObjStr + ".X", std::to_string(panesObj.x)); - setParameter(panesObjStr + ".Y", std::to_string(panesObj.y)); - setParameter(panesObjStr + ".Width", std::to_string(panesObj.width)); - setParameter(panesObjStr + ".Height", std::to_string(panesObj.height)); - setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder)); - } +CreateMPULayoutRequest::~CreateMPULayoutRequest() {} + +std::vector CreateMPULayoutRequest::getPanes() const { + return panes_; } -std::string CreateMPULayoutRequest::getShowLog()const -{ - return showLog_; +void CreateMPULayoutRequest::setPanes(const std::vector &panes) { + panes_ = panes; + for(int dep1 = 0; dep1 != panes.size(); dep1++) { + auto panesObj = panes.at(dep1); + std::string panesObjStr = std::string("Panes") + "." + std::to_string(dep1 + 1); + setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane)); + setParameter(panesObjStr + ".Width", std::to_string(panesObj.width)); + setParameter(panesObjStr + ".Height", std::to_string(panesObj.height)); + setParameter(panesObjStr + ".Y", std::to_string(panesObj.y)); + setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId)); + setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder)); + setParameter(panesObjStr + ".X", std::to_string(panesObj.x)); + } } -void CreateMPULayoutRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string CreateMPULayoutRequest::getShowLog() const { + return showLog_; } -long CreateMPULayoutRequest::getOwnerId()const -{ - return ownerId_; +void CreateMPULayoutRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void CreateMPULayoutRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateMPULayoutRequest::getOwnerId() const { + return ownerId_; } -std::string CreateMPULayoutRequest::getAppId()const -{ - return appId_; +void CreateMPULayoutRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateMPULayoutRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string CreateMPULayoutRequest::getAppId() const { + return appId_; } -std::string CreateMPULayoutRequest::getName()const -{ - return name_; +void CreateMPULayoutRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void CreateMPULayoutRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateMPULayoutRequest::getName() const { + return name_; } -int CreateMPULayoutRequest::getAudioMixCount()const -{ - return audioMixCount_; +void CreateMPULayoutRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateMPULayoutRequest::setAudioMixCount(int audioMixCount) -{ - audioMixCount_ = audioMixCount; - setParameter("AudioMixCount", std::to_string(audioMixCount)); +int CreateMPULayoutRequest::getAudioMixCount() const { + return audioMixCount_; +} + +void CreateMPULayoutRequest::setAudioMixCount(int audioMixCount) { + audioMixCount_ = audioMixCount; + setParameter(std::string("AudioMixCount"), std::to_string(audioMixCount)); } diff --git a/rtc/src/model/CreateMPURuleRequest.cc b/rtc/src/model/CreateMPURuleRequest.cc deleted file mode 100644 index 475fe8840..000000000 --- a/rtc/src/model/CreateMPURuleRequest.cc +++ /dev/null @@ -1,152 +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::CreateMPURuleRequest; - -CreateMPURuleRequest::CreateMPURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateMPURule") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMPURuleRequest::~CreateMPURuleRequest() -{} - -int CreateMPURuleRequest::getBackgroundColor()const -{ - return backgroundColor_; -} - -void CreateMPURuleRequest::setBackgroundColor(int backgroundColor) -{ - backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); -} - -int CreateMPURuleRequest::getCropMode()const -{ - return cropMode_; -} - -void CreateMPURuleRequest::setCropMode(int cropMode) -{ - cropMode_ = cropMode; - setParameter("CropMode", std::to_string(cropMode)); -} - -std::string CreateMPURuleRequest::getChannelPrefix()const -{ - return channelPrefix_; -} - -void CreateMPURuleRequest::setChannelPrefix(const std::string& channelPrefix) -{ - channelPrefix_ = channelPrefix; - setParameter("ChannelPrefix", channelPrefix); -} - -std::string CreateMPURuleRequest::getTaskProfile()const -{ - return taskProfile_; -} - -void CreateMPURuleRequest::setTaskProfile(const std::string& taskProfile) -{ - taskProfile_ = taskProfile; - setParameter("TaskProfile", taskProfile); -} - -std::vector CreateMPURuleRequest::getLayoutIds()const -{ - return layoutIds_; -} - -void CreateMPURuleRequest::setLayoutIds(const std::vector& layoutIds) -{ - layoutIds_ = layoutIds; - for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) { - setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1))); - } -} - -std::string CreateMPURuleRequest::getShowLog()const -{ - return showLog_; -} - -void CreateMPURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string CreateMPURuleRequest::getPlayDomain()const -{ - return playDomain_; -} - -void CreateMPURuleRequest::setPlayDomain(const std::string& playDomain) -{ - playDomain_ = playDomain; - setParameter("PlayDomain", playDomain); -} - -long CreateMPURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateMPURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateMPURuleRequest::getAppId()const -{ - return appId_; -} - -void CreateMPURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -int CreateMPURuleRequest::getMediaEncode()const -{ - return mediaEncode_; -} - -void CreateMPURuleRequest::setMediaEncode(int mediaEncode) -{ - mediaEncode_ = mediaEncode; - setParameter("MediaEncode", std::to_string(mediaEncode)); -} - -std::string CreateMPURuleRequest::getCallBack()const -{ - return callBack_; -} - -void CreateMPURuleRequest::setCallBack(const std::string& callBack) -{ - callBack_ = callBack; - setParameter("CallBack", callBack); -} - diff --git a/rtc/src/model/CreateRecordIndexFileRequest.cc b/rtc/src/model/CreateRecordIndexFileRequest.cc new file mode 100644 index 000000000..8b5a4a5ee --- /dev/null +++ b/rtc/src/model/CreateRecordIndexFileRequest.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::CreateRecordIndexFileRequest; + +CreateRecordIndexFileRequest::CreateRecordIndexFileRequest() + : RpcServiceRequest("rtc", "2018-01-11", "CreateRecordIndexFile") { + setMethod(HttpRequest::Method::Post); +} + +CreateRecordIndexFileRequest::~CreateRecordIndexFileRequest() {} + +std::string CreateRecordIndexFileRequest::getOssEndpoint() const { + return ossEndpoint_; +} + +void CreateRecordIndexFileRequest::setOssEndpoint(const std::string &ossEndpoint) { + ossEndpoint_ = ossEndpoint; + setParameter(std::string("OssEndpoint"), ossEndpoint); +} + +std::string CreateRecordIndexFileRequest::getStartTime() const { + return startTime_; +} + +void CreateRecordIndexFileRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string CreateRecordIndexFileRequest::getOssObject() const { + return ossObject_; +} + +void CreateRecordIndexFileRequest::setOssObject(const std::string &ossObject) { + ossObject_ = ossObject; + setParameter(std::string("OssObject"), ossObject); +} + +std::string CreateRecordIndexFileRequest::getTaskId() const { + return taskId_; +} + +void CreateRecordIndexFileRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string CreateRecordIndexFileRequest::getShowLog() const { + return showLog_; +} + +void CreateRecordIndexFileRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +std::string CreateRecordIndexFileRequest::getOssBucket() const { + return ossBucket_; +} + +void CreateRecordIndexFileRequest::setOssBucket(const std::string &ossBucket) { + ossBucket_ = ossBucket; + setParameter(std::string("OssBucket"), ossBucket); +} + +std::string CreateRecordIndexFileRequest::getEndTime() const { + return endTime_; +} + +void CreateRecordIndexFileRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long CreateRecordIndexFileRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRecordIndexFileRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateRecordIndexFileRequest::getAppId() const { + return appId_; +} + +void CreateRecordIndexFileRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string CreateRecordIndexFileRequest::getChannelId() const { + return channelId_; +} + +void CreateRecordIndexFileRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); +} + diff --git a/rtc/src/model/DescribeMPULayoutListResult.cc b/rtc/src/model/CreateRecordIndexFileResult.cc similarity index 51% rename from rtc/src/model/DescribeMPULayoutListResult.cc rename to rtc/src/model/CreateRecordIndexFileResult.cc index ecb0d0d00..f98e1d43c 100644 --- a/rtc/src/model/DescribeMPULayoutListResult.cc +++ b/rtc/src/model/CreateRecordIndexFileResult.cc @@ -14,39 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DescribeMPULayoutListResult::DescribeMPULayoutListResult() : +CreateRecordIndexFileResult::CreateRecordIndexFileResult() : ServiceResult() {} -DescribeMPULayoutListResult::DescribeMPULayoutListResult(const std::string &payload) : +CreateRecordIndexFileResult::CreateRecordIndexFileResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeMPULayoutListResult::~DescribeMPULayoutListResult() +CreateRecordIndexFileResult::~CreateRecordIndexFileResult() {} -void DescribeMPULayoutListResult::parse(const std::string &payload) +void CreateRecordIndexFileResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLayoutIds = value["LayoutIds"]["LayoutId"]; - for (const auto &item : allLayoutIds) - layoutIds_.push_back(item.asString()); + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); + if(!value["Duration"].isNull()) + duration_ = std::stof(value["Duration"].asString()); + if(!value["Width"].isNull()) + width_ = std::stoi(value["Width"].asString()); + if(!value["Height"].isNull()) + height_ = std::stoi(value["Height"].asString()); } -std::vector DescribeMPULayoutListResult::getLayoutIds()const +float CreateRecordIndexFileResult::getDuration()const { - return layoutIds_; + return duration_; +} + +int CreateRecordIndexFileResult::getHeight()const +{ + return height_; +} + +int CreateRecordIndexFileResult::getWidth()const +{ + return width_; +} + +std::string CreateRecordIndexFileResult::getUrl()const +{ + return url_; } diff --git a/rtc/src/model/CreateServiceLinkedRoleForRtcRequest.cc b/rtc/src/model/CreateServiceLinkedRoleForRtcRequest.cc deleted file mode 100644 index f2bc7463d..000000000 --- a/rtc/src/model/CreateServiceLinkedRoleForRtcRequest.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 - -using AlibabaCloud::Rtc::Model::CreateServiceLinkedRoleForRtcRequest; - -CreateServiceLinkedRoleForRtcRequest::CreateServiceLinkedRoleForRtcRequest() : - RpcServiceRequest("rtc", "2018-01-11", "CreateServiceLinkedRoleForRtc") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateServiceLinkedRoleForRtcRequest::~CreateServiceLinkedRoleForRtcRequest() -{} - -std::string CreateServiceLinkedRoleForRtcRequest::getShowLog()const -{ - return showLog_; -} - -void CreateServiceLinkedRoleForRtcRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long CreateServiceLinkedRoleForRtcRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateServiceLinkedRoleForRtcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/rtc/src/model/CreateServiceLinkedRoleForRtcResult.cc b/rtc/src/model/CreateServiceLinkedRoleForRtcResult.cc deleted file mode 100644 index 9e7c639ab..000000000 --- a/rtc/src/model/CreateServiceLinkedRoleForRtcResult.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; - -CreateServiceLinkedRoleForRtcResult::CreateServiceLinkedRoleForRtcResult() : - ServiceResult() -{} - -CreateServiceLinkedRoleForRtcResult::CreateServiceLinkedRoleForRtcResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateServiceLinkedRoleForRtcResult::~CreateServiceLinkedRoleForRtcResult() -{} - -void CreateServiceLinkedRoleForRtcResult::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/DeleteAutoLiveStreamRuleRequest.cc b/rtc/src/model/DeleteAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..5b384564b --- /dev/null +++ b/rtc/src/model/DeleteAutoLiveStreamRuleRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DeleteAutoLiveStreamRuleRequest; + +DeleteAutoLiveStreamRuleRequest::DeleteAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DeleteAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAutoLiveStreamRuleRequest::~DeleteAutoLiveStreamRuleRequest() {} + +std::string DeleteAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void DeleteAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long DeleteAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void DeleteAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long DeleteAutoLiveStreamRuleRequest::getRuleId() const { + return ruleId_; +} + +void DeleteAutoLiveStreamRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + diff --git a/rtc/src/model/DeleteChannelResult.cc b/rtc/src/model/DeleteAutoLiveStreamRuleResult.cc similarity index 71% rename from rtc/src/model/DeleteChannelResult.cc rename to rtc/src/model/DeleteAutoLiveStreamRuleResult.cc index 272f3be9f..8855c46d7 100644 --- a/rtc/src/model/DeleteChannelResult.cc +++ b/rtc/src/model/DeleteAutoLiveStreamRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DeleteChannelResult::DeleteChannelResult() : +DeleteAutoLiveStreamRuleResult::DeleteAutoLiveStreamRuleResult() : ServiceResult() {} -DeleteChannelResult::DeleteChannelResult(const std::string &payload) : +DeleteAutoLiveStreamRuleResult::DeleteAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteChannelResult::~DeleteChannelResult() +DeleteAutoLiveStreamRuleResult::~DeleteAutoLiveStreamRuleResult() {} -void DeleteChannelResult::parse(const std::string &payload) +void DeleteAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/DeleteChannelRequest.cc b/rtc/src/model/DeleteChannelRequest.cc deleted file mode 100644 index d2485e19e..000000000 --- a/rtc/src/model/DeleteChannelRequest.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::DeleteChannelRequest; - -DeleteChannelRequest::DeleteChannelRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteChannel") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteChannelRequest::~DeleteChannelRequest() -{} - -std::string DeleteChannelRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteChannelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DeleteChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteChannelRequest::getAppId()const -{ - return appId_; -} - -void DeleteChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DeleteChannelRequest::getChannelId()const -{ - return channelId_; -} - -void DeleteChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/DeleteConferenceRequest.cc b/rtc/src/model/DeleteConferenceRequest.cc deleted file mode 100644 index dd8493fcb..000000000 --- a/rtc/src/model/DeleteConferenceRequest.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::DeleteConferenceRequest; - -DeleteConferenceRequest::DeleteConferenceRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteConference") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteConferenceRequest::~DeleteConferenceRequest() -{} - -std::string DeleteConferenceRequest::getConferenceId()const -{ - return conferenceId_; -} - -void DeleteConferenceRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string DeleteConferenceRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteConferenceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DeleteConferenceRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteConferenceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteConferenceRequest::getAppId()const -{ - return appId_; -} - -void DeleteConferenceRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DeleteEventSubscribeRequest.cc b/rtc/src/model/DeleteEventSubscribeRequest.cc new file mode 100644 index 000000000..58bfdb416 --- /dev/null +++ b/rtc/src/model/DeleteEventSubscribeRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DeleteEventSubscribeRequest; + +DeleteEventSubscribeRequest::DeleteEventSubscribeRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DeleteEventSubscribe") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEventSubscribeRequest::~DeleteEventSubscribeRequest() {} + +std::string DeleteEventSubscribeRequest::getSubscribeId() const { + return subscribeId_; +} + +void DeleteEventSubscribeRequest::setSubscribeId(const std::string &subscribeId) { + subscribeId_ = subscribeId; + setParameter(std::string("SubscribeId"), subscribeId); +} + +std::string DeleteEventSubscribeRequest::getShowLog() const { + return showLog_; +} + +void DeleteEventSubscribeRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long DeleteEventSubscribeRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteEventSubscribeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteEventSubscribeRequest::getAppId() const { + return appId_; +} + +void DeleteEventSubscribeRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/rtc/src/model/DeleteConferenceResult.cc b/rtc/src/model/DeleteEventSubscribeResult.cc similarity index 73% rename from rtc/src/model/DeleteConferenceResult.cc rename to rtc/src/model/DeleteEventSubscribeResult.cc index bac934523..6dd34cff9 100644 --- a/rtc/src/model/DeleteConferenceResult.cc +++ b/rtc/src/model/DeleteEventSubscribeResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DeleteConferenceResult::DeleteConferenceResult() : +DeleteEventSubscribeResult::DeleteEventSubscribeResult() : ServiceResult() {} -DeleteConferenceResult::DeleteConferenceResult(const std::string &payload) : +DeleteEventSubscribeResult::DeleteEventSubscribeResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteConferenceResult::~DeleteConferenceResult() +DeleteEventSubscribeResult::~DeleteEventSubscribeResult() {} -void DeleteConferenceResult::parse(const std::string &payload) +void DeleteEventSubscribeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/DeleteMPULayoutRequest.cc b/rtc/src/model/DeleteMPULayoutRequest.cc index 444b35dc0..4798640a2 100644 --- a/rtc/src/model/DeleteMPULayoutRequest.cc +++ b/rtc/src/model/DeleteMPULayoutRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DeleteMPULayoutRequest; - -DeleteMPULayoutRequest::DeleteMPULayoutRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteMPULayout") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMPULayoutRequest::~DeleteMPULayoutRequest() -{} - -long DeleteMPULayoutRequest::getLayoutId()const -{ - return layoutId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DeleteMPULayoutRequest; + +DeleteMPULayoutRequest::DeleteMPULayoutRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DeleteMPULayout") { + setMethod(HttpRequest::Method::Post); } -void DeleteMPULayoutRequest::setLayoutId(long layoutId) -{ - layoutId_ = layoutId; - setParameter("LayoutId", std::to_string(layoutId)); +DeleteMPULayoutRequest::~DeleteMPULayoutRequest() {} + +long DeleteMPULayoutRequest::getLayoutId() const { + return layoutId_; } -std::string DeleteMPULayoutRequest::getShowLog()const -{ - return showLog_; +void DeleteMPULayoutRequest::setLayoutId(long layoutId) { + layoutId_ = layoutId; + setParameter(std::string("LayoutId"), std::to_string(layoutId)); } -void DeleteMPULayoutRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DeleteMPULayoutRequest::getShowLog() const { + return showLog_; } -long DeleteMPULayoutRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMPULayoutRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DeleteMPULayoutRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMPULayoutRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMPULayoutRequest::getAppId()const -{ - return appId_; +void DeleteMPULayoutRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMPULayoutRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DeleteMPULayoutRequest::getAppId() const { + return appId_; +} + +void DeleteMPULayoutRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/DeleteMPURuleRequest.cc b/rtc/src/model/DeleteMPURuleRequest.cc deleted file mode 100644 index 4071eb8c5..000000000 --- a/rtc/src/model/DeleteMPURuleRequest.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::DeleteMPURuleRequest; - -DeleteMPURuleRequest::DeleteMPURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteMPURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMPURuleRequest::~DeleteMPURuleRequest() -{} - -std::string DeleteMPURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteMPURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DeleteMPURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteMPURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteMPURuleRequest::getAppId()const -{ - return appId_; -} - -void DeleteMPURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long DeleteMPURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void DeleteMPURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/DeleteRecordTemplateRequest.cc b/rtc/src/model/DeleteRecordTemplateRequest.cc index b95cb736e..679d73178 100644 --- a/rtc/src/model/DeleteRecordTemplateRequest.cc +++ b/rtc/src/model/DeleteRecordTemplateRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DeleteRecordTemplateRequest; - -DeleteRecordTemplateRequest::DeleteRecordTemplateRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DeleteRecordTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRecordTemplateRequest::~DeleteRecordTemplateRequest() -{} - -std::string DeleteRecordTemplateRequest::getShowLog()const -{ - return showLog_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DeleteRecordTemplateRequest; + +DeleteRecordTemplateRequest::DeleteRecordTemplateRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DeleteRecordTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteRecordTemplateRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +DeleteRecordTemplateRequest::~DeleteRecordTemplateRequest() {} + +std::string DeleteRecordTemplateRequest::getShowLog() const { + return showLog_; } -long DeleteRecordTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRecordTemplateRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DeleteRecordTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRecordTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteRecordTemplateRequest::getTemplateId()const -{ - return templateId_; +void DeleteRecordTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteRecordTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string DeleteRecordTemplateRequest::getTemplateId() const { + return templateId_; } -std::string DeleteRecordTemplateRequest::getAppId()const -{ - return appId_; +void DeleteRecordTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void DeleteRecordTemplateRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DeleteRecordTemplateRequest::getAppId() const { + return appId_; +} + +void DeleteRecordTemplateRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/DescribeAppsRequest.cc b/rtc/src/model/DescribeAppsRequest.cc deleted file mode 100644 index 4f24b64a7..000000000 --- a/rtc/src/model/DescribeAppsRequest.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::DescribeAppsRequest; - -DescribeAppsRequest::DescribeAppsRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeApps") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAppsRequest::~DescribeAppsRequest() -{} - -int DescribeAppsRequest::getPageNum()const -{ - return pageNum_; -} - -void DescribeAppsRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); -} - -int DescribeAppsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeAppsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeAppsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeAppsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeAppsRequest::getOrder()const -{ - return order_; -} - -void DescribeAppsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); -} - -long DescribeAppsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeAppsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeAppsRequest::getAppId()const -{ - return appId_; -} - -void DescribeAppsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeAppsRequest::getStatus()const -{ - return status_; -} - -void DescribeAppsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); -} - diff --git a/rtc/src/model/DescribeAppsResult.cc b/rtc/src/model/DescribeAppsResult.cc deleted file mode 100644 index e779c2088..000000000 --- a/rtc/src/model/DescribeAppsResult.cc +++ /dev/null @@ -1,84 +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; - -DescribeAppsResult::DescribeAppsResult() : - ServiceResult() -{} - -DescribeAppsResult::DescribeAppsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAppsResult::~DescribeAppsResult() -{} - -void DescribeAppsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAppListNode = value["AppList"]["App"]; - for (auto valueAppListApp : allAppListNode) - { - App appListObject; - if(!valueAppListApp["Status"].isNull()) - appListObject.status = std::stoi(valueAppListApp["Status"].asString()); - if(!valueAppListApp["AppId"].isNull()) - appListObject.appId = valueAppListApp["AppId"].asString(); - if(!valueAppListApp["AppName"].isNull()) - appListObject.appName = valueAppListApp["AppName"].asString(); - if(!valueAppListApp["CreateTime"].isNull()) - appListObject.createTime = valueAppListApp["CreateTime"].asString(); - if(!valueAppListApp["AppType"].isNull()) - appListObject.appType = valueAppListApp["AppType"].asString(); - if(!valueAppListApp["BillType"].isNull()) - appListObject.billType = valueAppListApp["BillType"].asString(); - auto allServiceAreas = value["ServiceAreas"]["ServiceArea"]; - for (auto value : allServiceAreas) - appListObject.serviceAreas.push_back(value.asString()); - appList_.push_back(appListObject); - } - if(!value["TotalNum"].isNull()) - totalNum_ = std::stoi(value["TotalNum"].asString()); - if(!value["TotalPage"].isNull()) - totalPage_ = std::stoi(value["TotalPage"].asString()); - -} - -int DescribeAppsResult::getTotalNum()const -{ - return totalNum_; -} - -int DescribeAppsResult::getTotalPage()const -{ - return totalPage_; -} - -std::vector DescribeAppsResult::getAppList()const -{ - return appList_; -} - diff --git a/rtc/src/model/DescribeAutoLiveStreamRuleRequest.cc b/rtc/src/model/DescribeAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..56773eeff --- /dev/null +++ b/rtc/src/model/DescribeAutoLiveStreamRuleRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeAutoLiveStreamRuleRequest; + +DescribeAutoLiveStreamRuleRequest::DescribeAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAutoLiveStreamRuleRequest::~DescribeAutoLiveStreamRuleRequest() {} + +std::string DescribeAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void DescribeAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long DescribeAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void DescribeAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/rtc/src/model/DescribeMPURuleResult.cc b/rtc/src/model/DescribeAutoLiveStreamRuleResult.cc similarity index 57% rename from rtc/src/model/DescribeMPURuleResult.cc rename to rtc/src/model/DescribeAutoLiveStreamRuleResult.cc index be1726366..44cebe5c2 100644 --- a/rtc/src/model/DescribeMPURuleResult.cc +++ b/rtc/src/model/DescribeAutoLiveStreamRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DescribeMPURuleResult::DescribeMPURuleResult() : +DescribeAutoLiveStreamRuleResult::DescribeAutoLiveStreamRuleResult() : ServiceResult() {} -DescribeMPURuleResult::DescribeMPURuleResult(const std::string &payload) : +DescribeAutoLiveStreamRuleResult::DescribeAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeMPURuleResult::~DescribeMPURuleResult() +DescribeAutoLiveStreamRuleResult::~DescribeAutoLiveStreamRuleResult() {} -void DescribeMPURuleResult::parse(const std::string &payload) +void DescribeAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,33 +43,32 @@ void DescribeMPURuleResult::parse(const std::string &payload) 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["Status"].isNull()) + rulesObject.status = valueRulesRule["Status"].asString(); if(!valueRulesRule["MediaEncode"].isNull()) rulesObject.mediaEncode = std::stoi(valueRulesRule["MediaEncode"].asString()); - if(!valueRulesRule["BackgroudColor"].isNull()) - rulesObject.backgroudColor = std::stoi(valueRulesRule["BackgroudColor"].asString()); - if(!valueRulesRule["CropMode"].isNull()) - rulesObject.cropMode = std::stoi(valueRulesRule["CropMode"].asString()); - if(!valueRulesRule["TaskProfile"].isNull()) - rulesObject.taskProfile = valueRulesRule["TaskProfile"].asString(); if(!valueRulesRule["PlayDomain"].isNull()) rulesObject.playDomain = valueRulesRule["PlayDomain"].asString(); if(!valueRulesRule["CallBack"].isNull()) rulesObject.callBack = valueRulesRule["CallBack"].asString(); - if(!valueRulesRule["IsEnable"].isNull()) - rulesObject.isEnable = std::stoi(valueRulesRule["IsEnable"].asString()); - auto allLayoutIds = value["LayoutIds"]["LayoutId"]; - for (auto value : allLayoutIds) - rulesObject.layoutIds.push_back(value.asString()); + if(!valueRulesRule["CreateTime"].isNull()) + rulesObject.createTime = valueRulesRule["CreateTime"].asString(); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = std::stol(valueRulesRule["RuleId"].asString()); + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + auto allChannelIds = value["ChannelIds"]["ChannelId"]; + for (auto value : allChannelIds) + rulesObject.channelIds.push_back(value.asString()); + auto allChannelIdPrefixes = value["ChannelIdPrefixes"]["ChannelIdPrefix"]; + for (auto value : allChannelIdPrefixes) + rulesObject.channelIdPrefixes.push_back(value.asString()); rules_.push_back(rulesObject); } } -std::vector DescribeMPURuleResult::getRules()const +std::vector DescribeAutoLiveStreamRuleResult::getRules()const { return rules_; } diff --git a/rtc/src/model/DescribeChannelParticipantsRequest.cc b/rtc/src/model/DescribeChannelParticipantsRequest.cc index 6d455b7b9..238c5ced2 100644 --- a/rtc/src/model/DescribeChannelParticipantsRequest.cc +++ b/rtc/src/model/DescribeChannelParticipantsRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DescribeChannelParticipantsRequest; - -DescribeChannelParticipantsRequest::DescribeChannelParticipantsRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelParticipants") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeChannelParticipantsRequest::~DescribeChannelParticipantsRequest() -{} - -int DescribeChannelParticipantsRequest::getPageNum()const -{ - return pageNum_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeChannelParticipantsRequest; + +DescribeChannelParticipantsRequest::DescribeChannelParticipantsRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelParticipants") { + setMethod(HttpRequest::Method::Post); } -void DescribeChannelParticipantsRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +DescribeChannelParticipantsRequest::~DescribeChannelParticipantsRequest() {} + +int DescribeChannelParticipantsRequest::getPageNum() const { + return pageNum_; } -int DescribeChannelParticipantsRequest::getPageSize()const -{ - return pageSize_; +void DescribeChannelParticipantsRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeChannelParticipantsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeChannelParticipantsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeChannelParticipantsRequest::getShowLog()const -{ - return showLog_; +void DescribeChannelParticipantsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeChannelParticipantsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeChannelParticipantsRequest::getShowLog() const { + return showLog_; } -std::string DescribeChannelParticipantsRequest::getOrder()const -{ - return order_; +void DescribeChannelParticipantsRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeChannelParticipantsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeChannelParticipantsRequest::getOrder() const { + return order_; } -long DescribeChannelParticipantsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeChannelParticipantsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeChannelParticipantsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeChannelParticipantsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeChannelParticipantsRequest::getAppId()const -{ - return appId_; +void DescribeChannelParticipantsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeChannelParticipantsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeChannelParticipantsRequest::getAppId() const { + return appId_; } -std::string DescribeChannelParticipantsRequest::getChannelId()const -{ - return channelId_; +void DescribeChannelParticipantsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeChannelParticipantsRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string DescribeChannelParticipantsRequest::getChannelId() const { + return channelId_; +} + +void DescribeChannelParticipantsRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/DescribeChannelParticipantsResult.cc b/rtc/src/model/DescribeChannelParticipantsResult.cc index 1a2f6f5dc..bb3840084 100644 --- a/rtc/src/model/DescribeChannelParticipantsResult.cc +++ b/rtc/src/model/DescribeChannelParticipantsResult.cc @@ -42,12 +42,12 @@ void DescribeChannelParticipantsResult::parse(const std::string &payload) auto allUserList = value["UserList"]["User"]; for (const auto &item : allUserList) userList_.push_back(item.asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); if(!value["Timestamp"].isNull()) timestamp_ = std::stoi(value["Timestamp"].asString()); if(!value["TotalNum"].isNull()) totalNum_ = std::stoi(value["TotalNum"].asString()); - if(!value["TotalPage"].isNull()) - totalPage_ = std::stoi(value["TotalPage"].asString()); } diff --git a/rtc/src/model/DescribeChannelUsersRequest.cc b/rtc/src/model/DescribeChannelUsersRequest.cc index 8d792e719..e2eb595cf 100644 --- a/rtc/src/model/DescribeChannelUsersRequest.cc +++ b/rtc/src/model/DescribeChannelUsersRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DescribeChannelUsersRequest; - -DescribeChannelUsersRequest::DescribeChannelUsersRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeChannelUsersRequest::~DescribeChannelUsersRequest() -{} - -std::string DescribeChannelUsersRequest::getShowLog()const -{ - return showLog_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeChannelUsersRequest; + +DescribeChannelUsersRequest::DescribeChannelUsersRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelUsers") { + setMethod(HttpRequest::Method::Post); } -void DescribeChannelUsersRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +DescribeChannelUsersRequest::~DescribeChannelUsersRequest() {} + +std::string DescribeChannelUsersRequest::getShowLog() const { + return showLog_; } -long DescribeChannelUsersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeChannelUsersRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeChannelUsersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeChannelUsersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeChannelUsersRequest::getAppId()const -{ - return appId_; +void DescribeChannelUsersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeChannelUsersRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeChannelUsersRequest::getAppId() const { + return appId_; } -std::string DescribeChannelUsersRequest::getChannelId()const -{ - return channelId_; +void DescribeChannelUsersRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeChannelUsersRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string DescribeChannelUsersRequest::getChannelId() const { + return channelId_; +} + +void DescribeChannelUsersRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/DescribeChannelUsersResult.cc b/rtc/src/model/DescribeChannelUsersResult.cc index 1f2293f25..dccc55fc2 100644 --- a/rtc/src/model/DescribeChannelUsersResult.cc +++ b/rtc/src/model/DescribeChannelUsersResult.cc @@ -48,18 +48,18 @@ void DescribeChannelUsersResult::parse(const std::string &payload) auto allLiveUserList = value["LiveUserList"]["LiveUser"]; for (const auto &item : allLiveUserList) liveUserList_.push_back(item.asString()); - if(!value["Timestamp"].isNull()) - timestamp_ = std::stoi(value["Timestamp"].asString()); - if(!value["IsChannelExist"].isNull()) - isChannelExist_ = value["IsChannelExist"].asString() == "true"; - if(!value["ChannelProfile"].isNull()) - channelProfile_ = std::stoi(value["ChannelProfile"].asString()); if(!value["CommTotalNum"].isNull()) commTotalNum_ = std::stoi(value["CommTotalNum"].asString()); - if(!value["InteractiveUserNum"].isNull()) - interactiveUserNum_ = std::stoi(value["InteractiveUserNum"].asString()); + if(!value["IsChannelExist"].isNull()) + isChannelExist_ = value["IsChannelExist"].asString() == "true"; if(!value["LiveUserNum"].isNull()) liveUserNum_ = std::stoi(value["LiveUserNum"].asString()); + if(!value["Timestamp"].isNull()) + timestamp_ = std::stoi(value["Timestamp"].asString()); + if(!value["ChannelProfile"].isNull()) + channelProfile_ = std::stoi(value["ChannelProfile"].asString()); + if(!value["InteractiveUserNum"].isNull()) + interactiveUserNum_ = std::stoi(value["InteractiveUserNum"].asString()); } @@ -93,16 +93,16 @@ std::vector DescribeChannelUsersResult::getLiveUserList()const return liveUserList_; } -int DescribeChannelUsersResult::getTimestamp()const -{ - return timestamp_; -} - bool DescribeChannelUsersResult::getIsChannelExist()const { return isChannelExist_; } +int DescribeChannelUsersResult::getTimestamp()const +{ + return timestamp_; +} + int DescribeChannelUsersResult::getCommTotalNum()const { return commTotalNum_; diff --git a/rtc/src/model/DescribeConferenceAuthInfoRequest.cc b/rtc/src/model/DescribeConferenceAuthInfoRequest.cc deleted file mode 100644 index 1af3110b8..000000000 --- a/rtc/src/model/DescribeConferenceAuthInfoRequest.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::DescribeConferenceAuthInfoRequest; - -DescribeConferenceAuthInfoRequest::DescribeConferenceAuthInfoRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeConferenceAuthInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeConferenceAuthInfoRequest::~DescribeConferenceAuthInfoRequest() -{} - -std::string DescribeConferenceAuthInfoRequest::getConferenceId()const -{ - return conferenceId_; -} - -void DescribeConferenceAuthInfoRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string DescribeConferenceAuthInfoRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeConferenceAuthInfoRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeConferenceAuthInfoRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeConferenceAuthInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeConferenceAuthInfoRequest::getAppId()const -{ - return appId_; -} - -void DescribeConferenceAuthInfoRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeConferenceAuthInfoResult.cc b/rtc/src/model/DescribeConferenceAuthInfoResult.cc deleted file mode 100644 index 49db0a573..000000000 --- a/rtc/src/model/DescribeConferenceAuthInfoResult.cc +++ /dev/null @@ -1,63 +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; - -DescribeConferenceAuthInfoResult::DescribeConferenceAuthInfoResult() : - ServiceResult() -{} - -DescribeConferenceAuthInfoResult::DescribeConferenceAuthInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConferenceAuthInfoResult::~DescribeConferenceAuthInfoResult() -{} - -void DescribeConferenceAuthInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto authInfoNode = value["AuthInfo"]; - if(!authInfoNode["Key"].isNull()) - authInfo_.key = authInfoNode["Key"].asString(); - if(!authInfoNode["Nonce"].isNull()) - authInfo_.nonce = authInfoNode["Nonce"].asString(); - if(!authInfoNode["Timestamp"].isNull()) - authInfo_.timestamp = std::stoi(authInfoNode["Timestamp"].asString()); - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -DescribeConferenceAuthInfoResult::AuthInfo DescribeConferenceAuthInfoResult::getAuthInfo()const -{ - return authInfo_; -} - -std::string DescribeConferenceAuthInfoResult::getConferenceId()const -{ - return conferenceId_; -} - diff --git a/rtc/src/model/DescribeMPULayoutInfoListRequest.cc b/rtc/src/model/DescribeMPULayoutInfoListRequest.cc index c3dcd2ce6..a182b44e0 100644 --- a/rtc/src/model/DescribeMPULayoutInfoListRequest.cc +++ b/rtc/src/model/DescribeMPULayoutInfoListRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DescribeMPULayoutInfoListRequest; - -DescribeMPULayoutInfoListRequest::DescribeMPULayoutInfoListRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutInfoList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMPULayoutInfoListRequest::~DescribeMPULayoutInfoListRequest() -{} - -long DescribeMPULayoutInfoListRequest::getPageNum()const -{ - return pageNum_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeMPULayoutInfoListRequest; + +DescribeMPULayoutInfoListRequest::DescribeMPULayoutInfoListRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutInfoList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMPULayoutInfoListRequest::setPageNum(long pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +DescribeMPULayoutInfoListRequest::~DescribeMPULayoutInfoListRequest() {} + +long DescribeMPULayoutInfoListRequest::getPageNum() const { + return pageNum_; } -long DescribeMPULayoutInfoListRequest::getLayoutId()const -{ - return layoutId_; +void DescribeMPULayoutInfoListRequest::setPageNum(long pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeMPULayoutInfoListRequest::setLayoutId(long layoutId) -{ - layoutId_ = layoutId; - setParameter("LayoutId", std::to_string(layoutId)); +long DescribeMPULayoutInfoListRequest::getLayoutId() const { + return layoutId_; } -long DescribeMPULayoutInfoListRequest::getPageSize()const -{ - return pageSize_; +void DescribeMPULayoutInfoListRequest::setLayoutId(long layoutId) { + layoutId_ = layoutId; + setParameter(std::string("LayoutId"), std::to_string(layoutId)); } -void DescribeMPULayoutInfoListRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeMPULayoutInfoListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMPULayoutInfoListRequest::getShowLog()const -{ - return showLog_; +void DescribeMPULayoutInfoListRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMPULayoutInfoListRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeMPULayoutInfoListRequest::getShowLog() const { + return showLog_; } -long DescribeMPULayoutInfoListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeMPULayoutInfoListRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeMPULayoutInfoListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeMPULayoutInfoListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeMPULayoutInfoListRequest::getAppId()const -{ - return appId_; +void DescribeMPULayoutInfoListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeMPULayoutInfoListRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeMPULayoutInfoListRequest::getAppId() const { + return appId_; } -std::string DescribeMPULayoutInfoListRequest::getName()const -{ - return name_; +void DescribeMPULayoutInfoListRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeMPULayoutInfoListRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeMPULayoutInfoListRequest::getName() const { + return name_; +} + +void DescribeMPULayoutInfoListRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/rtc/src/model/DescribeMPULayoutInfoListResult.cc b/rtc/src/model/DescribeMPULayoutInfoListResult.cc index 7997ee3a0..f04078695 100644 --- a/rtc/src/model/DescribeMPULayoutInfoListResult.cc +++ b/rtc/src/model/DescribeMPULayoutInfoListResult.cc @@ -53,28 +53,28 @@ void DescribeMPULayoutInfoListResult::parse(const std::string &payload) for (auto valueLayoutsLayoutPanesPanesItem : allPanesNode) { Layout::PanesItem panesObject; - 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["Y"].isNull()) + panesObject.y = std::stof(valueLayoutsLayoutPanesPanesItem["Y"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["PaneId"].isNull()) + panesObject.paneId = std::stoi(valueLayoutsLayoutPanesPanesItem["PaneId"].asString()); if(!valueLayoutsLayoutPanesPanesItem["ZOrder"].isNull()) panesObject.zOrder = std::stoi(valueLayoutsLayoutPanesPanesItem["ZOrder"].asString()); + if(!valueLayoutsLayoutPanesPanesItem["X"].isNull()) + panesObject.x = std::stof(valueLayoutsLayoutPanesPanesItem["X"].asString()); layoutsObject.panes.push_back(panesObject); } layouts_.push_back(layoutsObject); } - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); if(!value["TotalPage"].isNull()) totalPage_ = std::stol(value["TotalPage"].asString()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); } diff --git a/rtc/src/model/DescribeMPULayoutInfoRequest.cc b/rtc/src/model/DescribeMPULayoutInfoRequest.cc deleted file mode 100644 index bf8fdc3fc..000000000 --- a/rtc/src/model/DescribeMPULayoutInfoRequest.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::DescribeMPULayoutInfoRequest; - -DescribeMPULayoutInfoRequest::DescribeMPULayoutInfoRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMPULayoutInfoRequest::~DescribeMPULayoutInfoRequest() -{} - -long DescribeMPULayoutInfoRequest::getLayoutId()const -{ - return layoutId_; -} - -void DescribeMPULayoutInfoRequest::setLayoutId(long layoutId) -{ - layoutId_ = layoutId; - setParameter("LayoutId", std::to_string(layoutId)); -} - -std::string DescribeMPULayoutInfoRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeMPULayoutInfoRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeMPULayoutInfoRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeMPULayoutInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeMPULayoutInfoRequest::getAppId()const -{ - return appId_; -} - -void DescribeMPULayoutInfoRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeMPULayoutInfoResult.cc b/rtc/src/model/DescribeMPULayoutInfoResult.cc deleted file mode 100644 index 76156db4e..000000000 --- a/rtc/src/model/DescribeMPULayoutInfoResult.cc +++ /dev/null @@ -1,76 +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; - -DescribeMPULayoutInfoResult::DescribeMPULayoutInfoResult() : - ServiceResult() -{} - -DescribeMPULayoutInfoResult::DescribeMPULayoutInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMPULayoutInfoResult::~DescribeMPULayoutInfoResult() -{} - -void DescribeMPULayoutInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto layoutNode = value["Layout"]; - if(!layoutNode["LayoutId"].isNull()) - layout_.layoutId = std::stol(layoutNode["LayoutId"].asString()); - if(!layoutNode["Name"].isNull()) - layout_.name = layoutNode["Name"].asString(); - if(!layoutNode["AudioMixCount"].isNull()) - layout_.audioMixCount = std::stoi(layoutNode["AudioMixCount"].asString()); - auto allPanesNode = layoutNode["Panes"]["PanesItem"]; - for (auto layoutNodePanesPanesItem : allPanesNode) - { - Layout::PanesItem panesItemObject; - if(!layoutNodePanesPanesItem["PaneId"].isNull()) - panesItemObject.paneId = std::stoi(layoutNodePanesPanesItem["PaneId"].asString()); - if(!layoutNodePanesPanesItem["MajorPane"].isNull()) - panesItemObject.majorPane = std::stoi(layoutNodePanesPanesItem["MajorPane"].asString()); - if(!layoutNodePanesPanesItem["X"].isNull()) - panesItemObject.x = std::stof(layoutNodePanesPanesItem["X"].asString()); - if(!layoutNodePanesPanesItem["Y"].isNull()) - panesItemObject.y = std::stof(layoutNodePanesPanesItem["Y"].asString()); - if(!layoutNodePanesPanesItem["Width"].isNull()) - panesItemObject.width = std::stof(layoutNodePanesPanesItem["Width"].asString()); - if(!layoutNodePanesPanesItem["Height"].isNull()) - panesItemObject.height = std::stof(layoutNodePanesPanesItem["Height"].asString()); - if(!layoutNodePanesPanesItem["ZOrder"].isNull()) - panesItemObject.zOrder = std::stoi(layoutNodePanesPanesItem["ZOrder"].asString()); - layout_.panes.push_back(panesItemObject); - } - -} - -DescribeMPULayoutInfoResult::Layout DescribeMPULayoutInfoResult::getLayout()const -{ - return layout_; -} - diff --git a/rtc/src/model/DescribeMPULayoutListRequest.cc b/rtc/src/model/DescribeMPULayoutListRequest.cc deleted file mode 100644 index e9fd2cac7..000000000 --- a/rtc/src/model/DescribeMPULayoutListRequest.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::DescribeMPULayoutListRequest; - -DescribeMPULayoutListRequest::DescribeMPULayoutListRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMPULayoutListRequest::~DescribeMPULayoutListRequest() -{} - -std::string DescribeMPULayoutListRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeMPULayoutListRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeMPULayoutListRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeMPULayoutListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeMPULayoutListRequest::getAppId()const -{ - return appId_; -} - -void DescribeMPULayoutListRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeMPURuleRequest.cc b/rtc/src/model/DescribeMPURuleRequest.cc deleted file mode 100644 index d3e72781a..000000000 --- a/rtc/src/model/DescribeMPURuleRequest.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::DescribeMPURuleRequest; - -DescribeMPURuleRequest::DescribeMPURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeMPURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMPURuleRequest::~DescribeMPURuleRequest() -{} - -std::string DescribeMPURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeMPURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeMPURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeMPURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeMPURuleRequest::getAppId()const -{ - return appId_; -} - -void DescribeMPURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeRTCAppKeyRequest.cc b/rtc/src/model/DescribeRTCAppKeyRequest.cc deleted file mode 100644 index d0e9f1b2a..000000000 --- a/rtc/src/model/DescribeRTCAppKeyRequest.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::DescribeRTCAppKeyRequest; - -DescribeRTCAppKeyRequest::DescribeRTCAppKeyRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRTCAppKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRTCAppKeyRequest::~DescribeRTCAppKeyRequest() -{} - -std::string DescribeRTCAppKeyRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRTCAppKeyRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeRTCAppKeyRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRTCAppKeyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRTCAppKeyRequest::getAppId()const -{ - return appId_; -} - -void DescribeRTCAppKeyRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeRecordFilesRequest.cc b/rtc/src/model/DescribeRecordFilesRequest.cc index 5126940e4..082762682 100644 --- a/rtc/src/model/DescribeRecordFilesRequest.cc +++ b/rtc/src/model/DescribeRecordFilesRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRecordFilesRequest; + +DescribeRecordFilesRequest::DescribeRecordFilesRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordFiles") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordFilesRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +DescribeRecordFilesRequest::~DescribeRecordFilesRequest() {} + +std::string DescribeRecordFilesRequest::getStartTime() const { + return startTime_; } -int DescribeRecordFilesRequest::getPageNum()const -{ - return pageNum_; +void DescribeRecordFilesRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeRecordFilesRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeRecordFilesRequest::getPageNum() const { + return pageNum_; } -std::vector DescribeRecordFilesRequest::getTaskIds()const -{ - return taskIds_; +void DescribeRecordFilesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -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)); - } +std::vector DescribeRecordFilesRequest::getTaskIds() const { + return taskIds_; } -int DescribeRecordFilesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRecordFilesRequest::setTaskIds(const std::vector &taskIds) { + taskIds_ = taskIds; } -void DescribeRecordFilesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRecordFilesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRecordFilesRequest::getShowLog()const -{ - return showLog_; +void DescribeRecordFilesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRecordFilesRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeRecordFilesRequest::getShowLog() const { + return showLog_; } -std::string DescribeRecordFilesRequest::getEndTime()const -{ - return endTime_; +void DescribeRecordFilesRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeRecordFilesRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeRecordFilesRequest::getEndTime() const { + return endTime_; } -long DescribeRecordFilesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRecordFilesRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeRecordFilesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRecordFilesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRecordFilesRequest::getAppId()const -{ - return appId_; +void DescribeRecordFilesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRecordFilesRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeRecordFilesRequest::getAppId() const { + return appId_; } -std::string DescribeRecordFilesRequest::getChannelId()const -{ - return channelId_; +void DescribeRecordFilesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeRecordFilesRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string DescribeRecordFilesRequest::getChannelId() const { + return channelId_; +} + +void DescribeRecordFilesRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/DescribeRecordFilesResult.cc b/rtc/src/model/DescribeRecordFilesResult.cc index 6d58d4f1a..e8199c60c 100644 --- a/rtc/src/model/DescribeRecordFilesResult.cc +++ b/rtc/src/model/DescribeRecordFilesResult.cc @@ -43,28 +43,28 @@ void DescribeRecordFilesResult::parse(const std::string &payload) for (auto valueRecordFilesRecordFile : allRecordFilesNode) { RecordFile recordFilesObject; + if(!valueRecordFilesRecordFile["StartTime"].isNull()) + recordFilesObject.startTime = valueRecordFilesRecordFile["StartTime"].asString(); 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()); + if(!valueRecordFilesRecordFile["TaskId"].isNull()) + recordFilesObject.taskId = valueRecordFilesRecordFile["TaskId"].asString(); + if(!valueRecordFilesRecordFile["StopTime"].isNull()) + recordFilesObject.stopTime = valueRecordFilesRecordFile["StopTime"].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()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); } diff --git a/rtc/src/model/DescribeRecordTasksRequest.cc b/rtc/src/model/DescribeRecordTasksRequest.cc index ff64f2c35..b4a8ee848 100644 --- a/rtc/src/model/DescribeRecordTasksRequest.cc +++ b/rtc/src/model/DescribeRecordTasksRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRecordTasksRequest; + +DescribeRecordTasksRequest::DescribeRecordTasksRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTasks") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordTasksRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +DescribeRecordTasksRequest::~DescribeRecordTasksRequest() {} + +std::string DescribeRecordTasksRequest::getStartTime() const { + return startTime_; } -std::vector DescribeRecordTasksRequest::getTaskIds()const -{ - return taskIds_; +void DescribeRecordTasksRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -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_; } -int DescribeRecordTasksRequest::getPageNum()const -{ - return pageNum_; +void DescribeRecordTasksRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeRecordTasksRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +std::vector DescribeRecordTasksRequest::getTaskIds() const { + return taskIds_; } -int DescribeRecordTasksRequest::getPageSize()const -{ - return pageSize_; +void DescribeRecordTasksRequest::setTaskIds(const std::vector &taskIds) { + taskIds_ = taskIds; } -void DescribeRecordTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRecordTasksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRecordTasksRequest::getShowLog()const -{ - return showLog_; +void DescribeRecordTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRecordTasksRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeRecordTasksRequest::getShowLog() const { + return showLog_; } -std::string DescribeRecordTasksRequest::getEndTime()const -{ - return endTime_; +void DescribeRecordTasksRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeRecordTasksRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeRecordTasksRequest::getEndTime() const { + return endTime_; } -long DescribeRecordTasksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRecordTasksRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeRecordTasksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRecordTasksRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRecordTasksRequest::getAppId()const -{ - return appId_; +void DescribeRecordTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRecordTasksRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeRecordTasksRequest::getAppId() const { + return appId_; } -std::string DescribeRecordTasksRequest::getChannelId()const -{ - return channelId_; +void DescribeRecordTasksRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeRecordTasksRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string DescribeRecordTasksRequest::getChannelId() const { + return channelId_; } -std::string DescribeRecordTasksRequest::getStatus()const -{ - return status_; +void DescribeRecordTasksRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } -void DescribeRecordTasksRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeRecordTasksRequest::getStatus() const { + return status_; +} + +void DescribeRecordTasksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/rtc/src/model/DescribeRecordTasksResult.cc b/rtc/src/model/DescribeRecordTasksResult.cc index 9b9174379..9842b81e4 100644 --- a/rtc/src/model/DescribeRecordTasksResult.cc +++ b/rtc/src/model/DescribeRecordTasksResult.cc @@ -43,6 +43,8 @@ void DescribeRecordTasksResult::parse(const std::string &payload) for (auto valueRecordTasksRecordTask : allRecordTasksNode) { RecordTask recordTasksObject; + if(!valueRecordTasksRecordTask["Status"].isNull()) + recordTasksObject.status = std::stoi(valueRecordTasksRecordTask["Status"].asString()); if(!valueRecordTasksRecordTask["CreateTime"].isNull()) recordTasksObject.createTime = valueRecordTasksRecordTask["CreateTime"].asString(); if(!valueRecordTasksRecordTask["AppId"].isNull()) @@ -53,18 +55,16 @@ void DescribeRecordTasksResult::parse(const std::string &payload) 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(); + if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].isNull()) + userPanesObject.userId = valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].asString(); recordTasksObject.userPanes.push_back(userPanesObject); } auto allSubSpecUsers = value["SubSpecUsers"]["SubSpecUser"]; @@ -72,10 +72,10 @@ void DescribeRecordTasksResult::parse(const std::string &payload) 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()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); } diff --git a/rtc/src/model/DescribeRecordTemplatesRequest.cc b/rtc/src/model/DescribeRecordTemplatesRequest.cc index f9e3ee0fe..1c90ea519 100644 --- a/rtc/src/model/DescribeRecordTemplatesRequest.cc +++ b/rtc/src/model/DescribeRecordTemplatesRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DescribeRecordTemplatesRequest; - -DescribeRecordTemplatesRequest::DescribeRecordTemplatesRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTemplates") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRecordTemplatesRequest::~DescribeRecordTemplatesRequest() -{} - -std::vector DescribeRecordTemplatesRequest::getTemplateIds()const -{ - return templateIds_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeRecordTemplatesRequest; + +DescribeRecordTemplatesRequest::DescribeRecordTemplatesRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTemplates") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordTemplatesRequest::setTemplateIds(const std::vector& templateIds) -{ - templateIds_ = templateIds; - for(int dep1 = 0; dep1!= templateIds.size(); dep1++) { - setParameter("TemplateIds."+ std::to_string(dep1), templateIds.at(dep1)); - } +DescribeRecordTemplatesRequest::~DescribeRecordTemplatesRequest() {} + +std::vector DescribeRecordTemplatesRequest::getTemplateIds() const { + return templateIds_; } -int DescribeRecordTemplatesRequest::getPageNum()const -{ - return pageNum_; +void DescribeRecordTemplatesRequest::setTemplateIds(const std::vector &templateIds) { + templateIds_ = templateIds; } -void DescribeRecordTemplatesRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeRecordTemplatesRequest::getPageNum() const { + return pageNum_; } -int DescribeRecordTemplatesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRecordTemplatesRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeRecordTemplatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRecordTemplatesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRecordTemplatesRequest::getShowLog()const -{ - return showLog_; +void DescribeRecordTemplatesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRecordTemplatesRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeRecordTemplatesRequest::getShowLog() const { + return showLog_; } -long DescribeRecordTemplatesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRecordTemplatesRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeRecordTemplatesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRecordTemplatesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRecordTemplatesRequest::getAppId()const -{ - return appId_; +void DescribeRecordTemplatesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRecordTemplatesRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeRecordTemplatesRequest::getAppId() const { + return appId_; +} + +void DescribeRecordTemplatesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/DescribeRecordTemplatesResult.cc b/rtc/src/model/DescribeRecordTemplatesResult.cc index d97d5e073..c37bbdee3 100644 --- a/rtc/src/model/DescribeRecordTemplatesResult.cc +++ b/rtc/src/model/DescribeRecordTemplatesResult.cc @@ -43,26 +43,92 @@ void DescribeRecordTemplatesResult::parse(const std::string &payload) for (auto valueTemplatesTemplate : allTemplatesNode) { _Template templatesObject; - if(!valueTemplatesTemplate["CreateTime"].isNull()) - templatesObject.createTime = valueTemplatesTemplate["CreateTime"].asString(); - if(!valueTemplatesTemplate["TemplateId"].isNull()) - templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString(); - if(!valueTemplatesTemplate["Name"].isNull()) - templatesObject.name = valueTemplatesTemplate["Name"].asString(); - if(!valueTemplatesTemplate["MediaEncode"].isNull()) - templatesObject.mediaEncode = std::stoi(valueTemplatesTemplate["MediaEncode"].asString()); - if(!valueTemplatesTemplate["BackgroundColor"].isNull()) - templatesObject.backgroundColor = std::stoi(valueTemplatesTemplate["BackgroundColor"].asString()); - if(!valueTemplatesTemplate["FileSplitInterval"].isNull()) - templatesObject.fileSplitInterval = std::stoi(valueTemplatesTemplate["FileSplitInterval"].asString()); - if(!valueTemplatesTemplate["TaskProfile"].isNull()) - templatesObject.taskProfile = valueTemplatesTemplate["TaskProfile"].asString(); - if(!valueTemplatesTemplate["OssBucket"].isNull()) - templatesObject.ossBucket = valueTemplatesTemplate["OssBucket"].asString(); - if(!valueTemplatesTemplate["OssFilePrefix"].isNull()) - templatesObject.ossFilePrefix = valueTemplatesTemplate["OssFilePrefix"].asString(); if(!valueTemplatesTemplate["MnsQueue"].isNull()) templatesObject.mnsQueue = valueTemplatesTemplate["MnsQueue"].asString(); + if(!valueTemplatesTemplate["OssFilePrefix"].isNull()) + templatesObject.ossFilePrefix = valueTemplatesTemplate["OssFilePrefix"].asString(); + if(!valueTemplatesTemplate["CreateTime"].isNull()) + templatesObject.createTime = valueTemplatesTemplate["CreateTime"].asString(); + if(!valueTemplatesTemplate["OssBucket"].isNull()) + templatesObject.ossBucket = valueTemplatesTemplate["OssBucket"].asString(); + if(!valueTemplatesTemplate["DelayStopTime"].isNull()) + templatesObject.delayStopTime = std::stoi(valueTemplatesTemplate["DelayStopTime"].asString()); + if(!valueTemplatesTemplate["MediaEncode"].isNull()) + templatesObject.mediaEncode = std::stoi(valueTemplatesTemplate["MediaEncode"].asString()); + if(!valueTemplatesTemplate["FileSplitInterval"].isNull()) + templatesObject.fileSplitInterval = std::stoi(valueTemplatesTemplate["FileSplitInterval"].asString()); + if(!valueTemplatesTemplate["HttpCallbackUrl"].isNull()) + templatesObject.httpCallbackUrl = valueTemplatesTemplate["HttpCallbackUrl"].asString(); + if(!valueTemplatesTemplate["EnableM3u8DateTime"].isNull()) + templatesObject.enableM3u8DateTime = valueTemplatesTemplate["EnableM3u8DateTime"].asString() == "true"; + if(!valueTemplatesTemplate["BackgroundColor"].isNull()) + templatesObject.backgroundColor = std::stoi(valueTemplatesTemplate["BackgroundColor"].asString()); + if(!valueTemplatesTemplate["Name"].isNull()) + templatesObject.name = valueTemplatesTemplate["Name"].asString(); + if(!valueTemplatesTemplate["TemplateId"].isNull()) + templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString(); + if(!valueTemplatesTemplate["TaskProfile"].isNull()) + templatesObject.taskProfile = valueTemplatesTemplate["TaskProfile"].asString(); + auto allBackgroundsNode = valueTemplatesTemplate["Backgrounds"]["Background"]; + for (auto valueTemplatesTemplateBackgroundsBackground : allBackgroundsNode) + { + _Template::Background backgroundsObject; + if(!valueTemplatesTemplateBackgroundsBackground["Width"].isNull()) + backgroundsObject.width = std::stof(valueTemplatesTemplateBackgroundsBackground["Width"].asString()); + if(!valueTemplatesTemplateBackgroundsBackground["Height"].isNull()) + backgroundsObject.height = std::stof(valueTemplatesTemplateBackgroundsBackground["Height"].asString()); + if(!valueTemplatesTemplateBackgroundsBackground["Y"].isNull()) + backgroundsObject.y = std::stof(valueTemplatesTemplateBackgroundsBackground["Y"].asString()); + if(!valueTemplatesTemplateBackgroundsBackground["Url"].isNull()) + backgroundsObject.url = valueTemplatesTemplateBackgroundsBackground["Url"].asString(); + if(!valueTemplatesTemplateBackgroundsBackground["Display"].isNull()) + backgroundsObject.display = std::stoi(valueTemplatesTemplateBackgroundsBackground["Display"].asString()); + if(!valueTemplatesTemplateBackgroundsBackground["ZOrder"].isNull()) + backgroundsObject.zOrder = std::stoi(valueTemplatesTemplateBackgroundsBackground["ZOrder"].asString()); + if(!valueTemplatesTemplateBackgroundsBackground["X"].isNull()) + backgroundsObject.x = std::stof(valueTemplatesTemplateBackgroundsBackground["X"].asString()); + templatesObject.backgrounds.push_back(backgroundsObject); + } + auto allWatermarksNode = valueTemplatesTemplate["Watermarks"]["Watermark"]; + for (auto valueTemplatesTemplateWatermarksWatermark : allWatermarksNode) + { + _Template::Watermark watermarksObject; + if(!valueTemplatesTemplateWatermarksWatermark["Alpha"].isNull()) + watermarksObject.alpha = std::stof(valueTemplatesTemplateWatermarksWatermark["Alpha"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["Width"].isNull()) + watermarksObject.width = std::stof(valueTemplatesTemplateWatermarksWatermark["Width"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["Height"].isNull()) + watermarksObject.height = std::stof(valueTemplatesTemplateWatermarksWatermark["Height"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["Y"].isNull()) + watermarksObject.y = std::stof(valueTemplatesTemplateWatermarksWatermark["Y"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["Url"].isNull()) + watermarksObject.url = valueTemplatesTemplateWatermarksWatermark["Url"].asString(); + if(!valueTemplatesTemplateWatermarksWatermark["Display"].isNull()) + watermarksObject.display = std::stoi(valueTemplatesTemplateWatermarksWatermark["Display"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["ZOrder"].isNull()) + watermarksObject.zOrder = std::stoi(valueTemplatesTemplateWatermarksWatermark["ZOrder"].asString()); + if(!valueTemplatesTemplateWatermarksWatermark["X"].isNull()) + watermarksObject.x = std::stof(valueTemplatesTemplateWatermarksWatermark["X"].asString()); + templatesObject.watermarks.push_back(watermarksObject); + } + auto allClockWidgetsNode = valueTemplatesTemplate["ClockWidgets"]["Watermark"]; + for (auto valueTemplatesTemplateClockWidgetsWatermark : allClockWidgetsNode) + { + _Template::Watermark1 clockWidgetsObject; + if(!valueTemplatesTemplateClockWidgetsWatermark["FontType"].isNull()) + clockWidgetsObject.fontType = std::stoi(valueTemplatesTemplateClockWidgetsWatermark["FontType"].asString()); + if(!valueTemplatesTemplateClockWidgetsWatermark["FontColor"].isNull()) + clockWidgetsObject.fontColor = std::stoi(valueTemplatesTemplateClockWidgetsWatermark["FontColor"].asString()); + if(!valueTemplatesTemplateClockWidgetsWatermark["Y"].isNull()) + clockWidgetsObject.y = std::stof(valueTemplatesTemplateClockWidgetsWatermark["Y"].asString()); + if(!valueTemplatesTemplateClockWidgetsWatermark["ZOrder"].isNull()) + clockWidgetsObject.zOrder = std::stoi(valueTemplatesTemplateClockWidgetsWatermark["ZOrder"].asString()); + if(!valueTemplatesTemplateClockWidgetsWatermark["X"].isNull()) + clockWidgetsObject.x = std::stof(valueTemplatesTemplateClockWidgetsWatermark["X"].asString()); + if(!valueTemplatesTemplateClockWidgetsWatermark["FontSize"].isNull()) + clockWidgetsObject.fontSize = std::stoi(valueTemplatesTemplateClockWidgetsWatermark["FontSize"].asString()); + templatesObject.clockWidgets.push_back(clockWidgetsObject); + } auto allLayoutIds = value["LayoutIds"]["LayoutId"]; for (auto value : allLayoutIds) templatesObject.layoutIds.push_back(value.asString()); @@ -71,10 +137,10 @@ void DescribeRecordTemplatesResult::parse(const std::string &payload) templatesObject.formats.push_back(value.asString()); templates_.push_back(templatesObject); } - if(!value["TotalNum"].isNull()) - totalNum_ = std::stol(value["TotalNum"].asString()); if(!value["TotalPage"].isNull()) totalPage_ = std::stol(value["TotalPage"].asString()); + if(!value["TotalNum"].isNull()) + totalNum_ = std::stol(value["TotalNum"].asString()); } diff --git a/rtc/src/model/DescribeRtcChannelCntDataRequest.cc b/rtc/src/model/DescribeRtcChannelCntDataRequest.cc deleted file mode 100644 index 34ee75c59..000000000 --- a/rtc/src/model/DescribeRtcChannelCntDataRequest.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::DescribeRtcChannelCntDataRequest; - -DescribeRtcChannelCntDataRequest::DescribeRtcChannelCntDataRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelCntData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcChannelCntDataRequest::~DescribeRtcChannelCntDataRequest() -{} - -std::string DescribeRtcChannelCntDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcChannelCntDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcChannelCntDataRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcChannelCntDataRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -std::string DescribeRtcChannelCntDataRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcChannelCntDataRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcChannelCntDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcChannelCntDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcChannelCntDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcChannelCntDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcChannelCntDataRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcChannelCntDataRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcChannelCntDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeRtcChannelCntDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/rtc/src/model/DescribeRtcChannelCntDataResult.cc b/rtc/src/model/DescribeRtcChannelCntDataResult.cc deleted file mode 100644 index 017cb5b22..000000000 --- a/rtc/src/model/DescribeRtcChannelCntDataResult.cc +++ /dev/null @@ -1,59 +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; - -DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult() : - ServiceResult() -{} - -DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcChannelCntDataResult::~DescribeRtcChannelCntDataResult() -{} - -void DescribeRtcChannelCntDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allChannelCntDataPerIntervalNode = value["ChannelCntDataPerInterval"]["ChannelCntModule"]; - for (auto valueChannelCntDataPerIntervalChannelCntModule : allChannelCntDataPerIntervalNode) - { - ChannelCntModule channelCntDataPerIntervalObject; - if(!valueChannelCntDataPerIntervalChannelCntModule["TimeStamp"].isNull()) - channelCntDataPerIntervalObject.timeStamp = valueChannelCntDataPerIntervalChannelCntModule["TimeStamp"].asString(); - if(!valueChannelCntDataPerIntervalChannelCntModule["ActiveChannelCnt"].isNull()) - channelCntDataPerIntervalObject.activeChannelCnt = std::stol(valueChannelCntDataPerIntervalChannelCntModule["ActiveChannelCnt"].asString()); - channelCntDataPerInterval_.push_back(channelCntDataPerIntervalObject); - } - -} - -std::vector DescribeRtcChannelCntDataResult::getChannelCntDataPerInterval()const -{ - return channelCntDataPerInterval_; -} - diff --git a/rtc/src/model/DescribeRtcChannelDetailRequest.cc b/rtc/src/model/DescribeRtcChannelDetailRequest.cc deleted file mode 100644 index de552e6c3..000000000 --- a/rtc/src/model/DescribeRtcChannelDetailRequest.cc +++ /dev/null @@ -1,117 +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::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 deleted file mode 100644 index 1c952b5a0..000000000 --- a/rtc/src/model/DescribeRtcChannelDetailResult.cc +++ /dev/null @@ -1,99 +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; - -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/DescribeRtcChannelListRequest.cc b/rtc/src/model/DescribeRtcChannelListRequest.cc deleted file mode 100644 index da1109565..000000000 --- a/rtc/src/model/DescribeRtcChannelListRequest.cc +++ /dev/null @@ -1,139 +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::DescribeRtcChannelListRequest; - -DescribeRtcChannelListRequest::DescribeRtcChannelListRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcChannelListRequest::~DescribeRtcChannelListRequest() -{} - -std::string DescribeRtcChannelListRequest::getSortType()const -{ - return sortType_; -} - -void DescribeRtcChannelListRequest::setSortType(const std::string& sortType) -{ - sortType_ = sortType; - setParameter("SortType", sortType); -} - -std::string DescribeRtcChannelListRequest::getUserId()const -{ - return userId_; -} - -void DescribeRtcChannelListRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); -} - -std::string DescribeRtcChannelListRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcChannelListRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -long DescribeRtcChannelListRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeRtcChannelListRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeRtcChannelListRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcChannelListRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeRtcChannelListRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcChannelListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -long DescribeRtcChannelListRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeRtcChannelListRequest::setPageNo(long pageNo) -{ - pageNo_ = pageNo; - setParameter("PageNo", std::to_string(pageNo)); -} - -std::string DescribeRtcChannelListRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcChannelListRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcChannelListRequest::getChannelId()const -{ - return channelId_; -} - -void DescribeRtcChannelListRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - -std::string DescribeRtcChannelListRequest::getTimePoint()const -{ - return timePoint_; -} - -void DescribeRtcChannelListRequest::setTimePoint(const std::string& timePoint) -{ - timePoint_ = timePoint; - setParameter("TimePoint", timePoint); -} - diff --git a/rtc/src/model/DescribeRtcChannelListResult.cc b/rtc/src/model/DescribeRtcChannelListResult.cc deleted file mode 100644 index 873094618..000000000 --- a/rtc/src/model/DescribeRtcChannelListResult.cc +++ /dev/null @@ -1,87 +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; - -DescribeRtcChannelListResult::DescribeRtcChannelListResult() : - ServiceResult() -{} - -DescribeRtcChannelListResult::DescribeRtcChannelListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcChannelListResult::~DescribeRtcChannelListResult() -{} - -void DescribeRtcChannelListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allChannelListNode = value["ChannelList"]["ChannelListItem"]; - for (auto valueChannelListChannelListItem : allChannelListNode) - { - ChannelListItem channelListObject; - if(!valueChannelListChannelListItem["ChannelId"].isNull()) - channelListObject.channelId = valueChannelListChannelListItem["ChannelId"].asString(); - if(!valueChannelListChannelListItem["StartTime"].isNull()) - channelListObject.startTime = valueChannelListChannelListItem["StartTime"].asString(); - if(!valueChannelListChannelListItem["EndTime"].isNull()) - channelListObject.endTime = valueChannelListChannelListItem["EndTime"].asString(); - if(!valueChannelListChannelListItem["TotalUserCnt"].isNull()) - channelListObject.totalUserCnt = std::stol(valueChannelListChannelListItem["TotalUserCnt"].asString()); - auto allCallArea = value["CallArea"]["CallArea"]; - for (auto value : allCallArea) - channelListObject.callArea.push_back(value.asString()); - channelList_.push_back(channelListObject); - } - 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 DescribeRtcChannelListResult::getPageSize()const -{ - return pageSize_; -} - -long DescribeRtcChannelListResult::getTotalCnt()const -{ - return totalCnt_; -} - -long DescribeRtcChannelListResult::getPageNo()const -{ - return pageNo_; -} - -std::vector DescribeRtcChannelListResult::getChannelList()const -{ - return channelList_; -} - diff --git a/rtc/src/model/DescribeRtcChannelMetricRequest.cc b/rtc/src/model/DescribeRtcChannelMetricRequest.cc deleted file mode 100644 index f2d5e8afe..000000000 --- a/rtc/src/model/DescribeRtcChannelMetricRequest.cc +++ /dev/null @@ -1,84 +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::DescribeRtcChannelMetricRequest; - -DescribeRtcChannelMetricRequest::DescribeRtcChannelMetricRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelMetric") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcChannelMetricRequest::~DescribeRtcChannelMetricRequest() -{} - -std::string DescribeRtcChannelMetricRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcChannelMetricRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeRtcChannelMetricRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcChannelMetricRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcChannelMetricRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcChannelMetricRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcChannelMetricRequest::getChannelId()const -{ - return channelId_; -} - -void DescribeRtcChannelMetricRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - -std::string DescribeRtcChannelMetricRequest::getTimePoint()const -{ - return timePoint_; -} - -void DescribeRtcChannelMetricRequest::setTimePoint(const std::string& timePoint) -{ - timePoint_ = timePoint; - setParameter("TimePoint", timePoint); -} - diff --git a/rtc/src/model/DescribeRtcChannelMetricResult.cc b/rtc/src/model/DescribeRtcChannelMetricResult.cc deleted file mode 100644 index 6cdd10270..000000000 --- a/rtc/src/model/DescribeRtcChannelMetricResult.cc +++ /dev/null @@ -1,86 +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; - -DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult() : - ServiceResult() -{} - -DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcChannelMetricResult::~DescribeRtcChannelMetricResult() -{} - -void DescribeRtcChannelMetricResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto channelMetricInfoNode = value["ChannelMetricInfo"]; - auto channelMetricNode = channelMetricInfoNode["ChannelMetric"]; - if(!channelMetricNode["ChannelId"].isNull()) - channelMetricInfo_.channelMetric.channelId = channelMetricNode["ChannelId"].asString(); - if(!channelMetricNode["UserCount"].isNull()) - channelMetricInfo_.channelMetric.userCount = std::stoi(channelMetricNode["UserCount"].asString()); - if(!channelMetricNode["PubUserCount"].isNull()) - channelMetricInfo_.channelMetric.pubUserCount = std::stoi(channelMetricNode["PubUserCount"].asString()); - if(!channelMetricNode["SubUserCount"].isNull()) - channelMetricInfo_.channelMetric.subUserCount = std::stoi(channelMetricNode["SubUserCount"].asString()); - if(!channelMetricNode["StartTime"].isNull()) - channelMetricInfo_.channelMetric.startTime = channelMetricNode["StartTime"].asString(); - if(!channelMetricNode["EndTime"].isNull()) - channelMetricInfo_.channelMetric.endTime = channelMetricNode["EndTime"].asString(); - auto durationNode = channelMetricInfoNode["Duration"]; - auto pubDurationNode = durationNode["PubDuration"]; - if(!pubDurationNode["Audio"].isNull()) - channelMetricInfo_.duration.pubDuration.audio = std::stoi(pubDurationNode["Audio"].asString()); - if(!pubDurationNode["Video360"].isNull()) - channelMetricInfo_.duration.pubDuration.video360 = std::stoi(pubDurationNode["Video360"].asString()); - if(!pubDurationNode["Video720"].isNull()) - channelMetricInfo_.duration.pubDuration.video720 = std::stoi(pubDurationNode["Video720"].asString()); - if(!pubDurationNode["Video1080"].isNull()) - channelMetricInfo_.duration.pubDuration.video1080 = std::stoi(pubDurationNode["Video1080"].asString()); - if(!pubDurationNode["Content"].isNull()) - channelMetricInfo_.duration.pubDuration.content = std::stoi(pubDurationNode["Content"].asString()); - auto subDurationNode = durationNode["SubDuration"]; - if(!subDurationNode["Audio"].isNull()) - channelMetricInfo_.duration.subDuration.audio = std::stoi(subDurationNode["Audio"].asString()); - if(!subDurationNode["Video360"].isNull()) - channelMetricInfo_.duration.subDuration.video360 = std::stoi(subDurationNode["Video360"].asString()); - if(!subDurationNode["Video720"].isNull()) - channelMetricInfo_.duration.subDuration.video720 = std::stoi(subDurationNode["Video720"].asString()); - if(!subDurationNode["Video1080"].isNull()) - channelMetricInfo_.duration.subDuration.video1080 = std::stoi(subDurationNode["Video1080"].asString()); - if(!subDurationNode["Content"].isNull()) - channelMetricInfo_.duration.subDuration.content = std::stoi(subDurationNode["Content"].asString()); - -} - -DescribeRtcChannelMetricResult::ChannelMetricInfo DescribeRtcChannelMetricResult::getChannelMetricInfo()const -{ - return channelMetricInfo_; -} - diff --git a/rtc/src/model/DescribeRtcChannelMetricsRequest.cc b/rtc/src/model/DescribeRtcChannelMetricsRequest.cc deleted file mode 100644 index eb5f9c94d..000000000 --- a/rtc/src/model/DescribeRtcChannelMetricsRequest.cc +++ /dev/null @@ -1,117 +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::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 deleted file mode 100644 index 2b6e1b1e1..000000000 --- a/rtc/src/model/DescribeRtcChannelMetricsResult.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 -#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/DescribeRtcChannelUserListRequest.cc b/rtc/src/model/DescribeRtcChannelUserListRequest.cc deleted file mode 100644 index f2915e1f5..000000000 --- a/rtc/src/model/DescribeRtcChannelUserListRequest.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::DescribeRtcChannelUserListRequest; - -DescribeRtcChannelUserListRequest::DescribeRtcChannelUserListRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelUserList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcChannelUserListRequest::~DescribeRtcChannelUserListRequest() -{} - -long DescribeRtcChannelUserListRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeRtcChannelUserListRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeRtcChannelUserListRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcChannelUserListRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DescribeRtcChannelUserListRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcChannelUserListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -long DescribeRtcChannelUserListRequest::getPageNo()const -{ - return pageNo_; -} - -void DescribeRtcChannelUserListRequest::setPageNo(long pageNo) -{ - pageNo_ = pageNo; - setParameter("PageNo", std::to_string(pageNo)); -} - -std::string DescribeRtcChannelUserListRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcChannelUserListRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcChannelUserListRequest::getChannelId()const -{ - return channelId_; -} - -void DescribeRtcChannelUserListRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - -std::string DescribeRtcChannelUserListRequest::getTimePoint()const -{ - return timePoint_; -} - -void DescribeRtcChannelUserListRequest::setTimePoint(const std::string& timePoint) -{ - timePoint_ = timePoint; - setParameter("TimePoint", timePoint); -} - diff --git a/rtc/src/model/DescribeRtcChannelUserListResult.cc b/rtc/src/model/DescribeRtcChannelUserListResult.cc deleted file mode 100644 index b4482713e..000000000 --- a/rtc/src/model/DescribeRtcChannelUserListResult.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 -#include - -using namespace AlibabaCloud::Rtc; -using namespace AlibabaCloud::Rtc::Model; - -DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult() : - ServiceResult() -{} - -DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcChannelUserListResult::~DescribeRtcChannelUserListResult() -{} - -void DescribeRtcChannelUserListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allUserListNode = value["UserList"]["UserListItem"]; - for (auto valueUserListUserListItem : allUserListNode) - { - UserListItem userListObject; - if(!valueUserListUserListItem["ChannelId"].isNull()) - userListObject.channelId = valueUserListUserListItem["ChannelId"].asString(); - if(!valueUserListUserListItem["UserId"].isNull()) - userListObject.userId = valueUserListUserListItem["UserId"].asString(); - if(!valueUserListUserListItem["StartTime"].isNull()) - userListObject.startTime = valueUserListUserListItem["StartTime"].asString(); - if(!valueUserListUserListItem["EndTime"].isNull()) - userListObject.endTime = valueUserListUserListItem["EndTime"].asString(); - if(!valueUserListUserListItem["ServiceArea"].isNull()) - userListObject.serviceArea = valueUserListUserListItem["ServiceArea"].asString(); - if(!valueUserListUserListItem["SubAudio"].isNull()) - userListObject.subAudio = std::stoi(valueUserListUserListItem["SubAudio"].asString()); - if(!valueUserListUserListItem["PubAudio"].isNull()) - userListObject.pubAudio = std::stoi(valueUserListUserListItem["PubAudio"].asString()); - if(!valueUserListUserListItem["SubVideo360"].isNull()) - userListObject.subVideo360 = std::stoi(valueUserListUserListItem["SubVideo360"].asString()); - if(!valueUserListUserListItem["PubVideo360"].isNull()) - userListObject.pubVideo360 = std::stoi(valueUserListUserListItem["PubVideo360"].asString()); - if(!valueUserListUserListItem["SubVideo720"].isNull()) - userListObject.subVideo720 = std::stoi(valueUserListUserListItem["SubVideo720"].asString()); - if(!valueUserListUserListItem["PubVideo720"].isNull()) - userListObject.pubVideo720 = std::stoi(valueUserListUserListItem["PubVideo720"].asString()); - if(!valueUserListUserListItem["SubVideo1080"].isNull()) - userListObject.subVideo1080 = std::stoi(valueUserListUserListItem["SubVideo1080"].asString()); - if(!valueUserListUserListItem["PubVideo1080"].isNull()) - userListObject.pubVideo1080 = std::stoi(valueUserListUserListItem["PubVideo1080"].asString()); - if(!valueUserListUserListItem["SubContent"].isNull()) - userListObject.subContent = std::stoi(valueUserListUserListItem["SubContent"].asString()); - if(!valueUserListUserListItem["PubContent"].isNull()) - userListObject.pubContent = std::stoi(valueUserListUserListItem["PubContent"].asString()); - userList_.push_back(userListObject); - } - 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 DescribeRtcChannelUserListResult::getPageSize()const -{ - return pageSize_; -} - -long DescribeRtcChannelUserListResult::getTotalCnt()const -{ - return totalCnt_; -} - -long DescribeRtcChannelUserListResult::getPageNo()const -{ - return pageNo_; -} - -std::vector DescribeRtcChannelUserListResult::getUserList()const -{ - return userList_; -} - diff --git a/rtc/src/model/DescribeRtcChannelsRequest.cc b/rtc/src/model/DescribeRtcChannelsRequest.cc deleted file mode 100644 index e0b2651c6..000000000 --- a/rtc/src/model/DescribeRtcChannelsRequest.cc +++ /dev/null @@ -1,117 +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::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 deleted file mode 100644 index bd2d143fb..000000000 --- a/rtc/src/model/DescribeRtcChannelsResult.cc +++ /dev/null @@ -1,84 +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; - -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/DescribeRtcDurationDataRequest.cc b/rtc/src/model/DescribeRtcDurationDataRequest.cc deleted file mode 100644 index 067561bf7..000000000 --- a/rtc/src/model/DescribeRtcDurationDataRequest.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::DescribeRtcDurationDataRequest; - -DescribeRtcDurationDataRequest::DescribeRtcDurationDataRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcDurationData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcDurationDataRequest::~DescribeRtcDurationDataRequest() -{} - -std::string DescribeRtcDurationDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcDurationDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcDurationDataRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcDurationDataRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -std::string DescribeRtcDurationDataRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcDurationDataRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcDurationDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcDurationDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcDurationDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcDurationDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcDurationDataRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcDurationDataRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcDurationDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeRtcDurationDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/rtc/src/model/DescribeRtcDurationDataResult.cc b/rtc/src/model/DescribeRtcDurationDataResult.cc deleted file mode 100644 index a35c60c80..000000000 --- a/rtc/src/model/DescribeRtcDurationDataResult.cc +++ /dev/null @@ -1,69 +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; - -DescribeRtcDurationDataResult::DescribeRtcDurationDataResult() : - ServiceResult() -{} - -DescribeRtcDurationDataResult::DescribeRtcDurationDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcDurationDataResult::~DescribeRtcDurationDataResult() -{} - -void DescribeRtcDurationDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDurationDataPerIntervalNode = value["DurationDataPerInterval"]["DurationModule"]; - for (auto valueDurationDataPerIntervalDurationModule : allDurationDataPerIntervalNode) - { - DurationModule durationDataPerIntervalObject; - if(!valueDurationDataPerIntervalDurationModule["TimeStamp"].isNull()) - durationDataPerIntervalObject.timeStamp = valueDurationDataPerIntervalDurationModule["TimeStamp"].asString(); - if(!valueDurationDataPerIntervalDurationModule["TotalDuration"].isNull()) - durationDataPerIntervalObject.totalDuration = std::stol(valueDurationDataPerIntervalDurationModule["TotalDuration"].asString()); - if(!valueDurationDataPerIntervalDurationModule["AudioDuration"].isNull()) - durationDataPerIntervalObject.audioDuration = std::stol(valueDurationDataPerIntervalDurationModule["AudioDuration"].asString()); - if(!valueDurationDataPerIntervalDurationModule["V360Duration"].isNull()) - durationDataPerIntervalObject.v360Duration = std::stol(valueDurationDataPerIntervalDurationModule["V360Duration"].asString()); - if(!valueDurationDataPerIntervalDurationModule["V720Duration"].isNull()) - durationDataPerIntervalObject.v720Duration = std::stol(valueDurationDataPerIntervalDurationModule["V720Duration"].asString()); - if(!valueDurationDataPerIntervalDurationModule["V1080Duration"].isNull()) - durationDataPerIntervalObject.v1080Duration = std::stol(valueDurationDataPerIntervalDurationModule["V1080Duration"].asString()); - if(!valueDurationDataPerIntervalDurationModule["ContentDuration"].isNull()) - durationDataPerIntervalObject.contentDuration = std::stol(valueDurationDataPerIntervalDurationModule["ContentDuration"].asString()); - durationDataPerInterval_.push_back(durationDataPerIntervalObject); - } - -} - -std::vector DescribeRtcDurationDataResult::getDurationDataPerInterval()const -{ - return durationDataPerInterval_; -} - diff --git a/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc b/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc deleted file mode 100644 index 211693dae..000000000 --- a/rtc/src/model/DescribeRtcPeakChannelCntDataRequest.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::DescribeRtcPeakChannelCntDataRequest; - -DescribeRtcPeakChannelCntDataRequest::DescribeRtcPeakChannelCntDataRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakChannelCntData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcPeakChannelCntDataRequest::~DescribeRtcPeakChannelCntDataRequest() -{} - -std::string DescribeRtcPeakChannelCntDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcPeakChannelCntDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcPeakChannelCntDataRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcPeakChannelCntDataRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -std::string DescribeRtcPeakChannelCntDataRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcPeakChannelCntDataRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcPeakChannelCntDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcPeakChannelCntDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcPeakChannelCntDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcPeakChannelCntDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcPeakChannelCntDataRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcPeakChannelCntDataRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcPeakChannelCntDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeRtcPeakChannelCntDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc b/rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc deleted file mode 100644 index 12952b319..000000000 --- a/rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc +++ /dev/null @@ -1,61 +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; - -DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult() : - ServiceResult() -{} - -DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcPeakChannelCntDataResult::~DescribeRtcPeakChannelCntDataResult() -{} - -void DescribeRtcPeakChannelCntDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPeakChannelCntDataPerIntervalNode = value["PeakChannelCntDataPerInterval"]["PeakChannelCntModule"]; - for (auto valuePeakChannelCntDataPerIntervalPeakChannelCntModule : allPeakChannelCntDataPerIntervalNode) - { - PeakChannelCntModule peakChannelCntDataPerIntervalObject; - if(!valuePeakChannelCntDataPerIntervalPeakChannelCntModule["TimeStamp"].isNull()) - peakChannelCntDataPerIntervalObject.timeStamp = valuePeakChannelCntDataPerIntervalPeakChannelCntModule["TimeStamp"].asString(); - if(!valuePeakChannelCntDataPerIntervalPeakChannelCntModule["ActiveChannelPeak"].isNull()) - peakChannelCntDataPerIntervalObject.activeChannelPeak = std::stol(valuePeakChannelCntDataPerIntervalPeakChannelCntModule["ActiveChannelPeak"].asString()); - if(!valuePeakChannelCntDataPerIntervalPeakChannelCntModule["ActiveChannelPeakTime"].isNull()) - peakChannelCntDataPerIntervalObject.activeChannelPeakTime = valuePeakChannelCntDataPerIntervalPeakChannelCntModule["ActiveChannelPeakTime"].asString(); - peakChannelCntDataPerInterval_.push_back(peakChannelCntDataPerIntervalObject); - } - -} - -std::vector DescribeRtcPeakChannelCntDataResult::getPeakChannelCntDataPerInterval()const -{ - return peakChannelCntDataPerInterval_; -} - diff --git a/rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc b/rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc deleted file mode 100644 index a540efb5c..000000000 --- a/rtc/src/model/DescribeRtcPeakUserCntDataRequest.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::DescribeRtcPeakUserCntDataRequest; - -DescribeRtcPeakUserCntDataRequest::DescribeRtcPeakUserCntDataRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakUserCntData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcPeakUserCntDataRequest::~DescribeRtcPeakUserCntDataRequest() -{} - -std::string DescribeRtcPeakUserCntDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcPeakUserCntDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcPeakUserCntDataRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcPeakUserCntDataRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -std::string DescribeRtcPeakUserCntDataRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcPeakUserCntDataRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcPeakUserCntDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcPeakUserCntDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcPeakUserCntDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcPeakUserCntDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcPeakUserCntDataRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcPeakUserCntDataRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcPeakUserCntDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeRtcPeakUserCntDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/rtc/src/model/DescribeRtcPeakUserCntDataResult.cc b/rtc/src/model/DescribeRtcPeakUserCntDataResult.cc deleted file mode 100644 index c17af60a3..000000000 --- a/rtc/src/model/DescribeRtcPeakUserCntDataResult.cc +++ /dev/null @@ -1,61 +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; - -DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult() : - ServiceResult() -{} - -DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcPeakUserCntDataResult::~DescribeRtcPeakUserCntDataResult() -{} - -void DescribeRtcPeakUserCntDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPeakUserCntDataPerIntervalNode = value["PeakUserCntDataPerInterval"]["PeakUserCntModule"]; - for (auto valuePeakUserCntDataPerIntervalPeakUserCntModule : allPeakUserCntDataPerIntervalNode) - { - PeakUserCntModule peakUserCntDataPerIntervalObject; - if(!valuePeakUserCntDataPerIntervalPeakUserCntModule["TimeStamp"].isNull()) - peakUserCntDataPerIntervalObject.timeStamp = valuePeakUserCntDataPerIntervalPeakUserCntModule["TimeStamp"].asString(); - if(!valuePeakUserCntDataPerIntervalPeakUserCntModule["ActiveUserPeak"].isNull()) - peakUserCntDataPerIntervalObject.activeUserPeak = std::stol(valuePeakUserCntDataPerIntervalPeakUserCntModule["ActiveUserPeak"].asString()); - if(!valuePeakUserCntDataPerIntervalPeakUserCntModule["ActiveUserPeakTime"].isNull()) - peakUserCntDataPerIntervalObject.activeUserPeakTime = valuePeakUserCntDataPerIntervalPeakUserCntModule["ActiveUserPeakTime"].asString(); - peakUserCntDataPerInterval_.push_back(peakUserCntDataPerIntervalObject); - } - -} - -std::vector DescribeRtcPeakUserCntDataResult::getPeakUserCntDataPerInterval()const -{ - return peakUserCntDataPerInterval_; -} - diff --git a/rtc/src/model/DescribeRtcQualityMetricRequest.cc b/rtc/src/model/DescribeRtcQualityMetricRequest.cc deleted file mode 100644 index 1465e40b8..000000000 --- a/rtc/src/model/DescribeRtcQualityMetricRequest.cc +++ /dev/null @@ -1,117 +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::DescribeRtcQualityMetricRequest; - -DescribeRtcQualityMetricRequest::DescribeRtcQualityMetricRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcQualityMetric") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcQualityMetricRequest::~DescribeRtcQualityMetricRequest() -{} - -std::string DescribeRtcQualityMetricRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcQualityMetricRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcQualityMetricRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcQualityMetricRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcQualityMetricRequest::getSubUser()const -{ - return subUser_; -} - -void DescribeRtcQualityMetricRequest::setSubUser(const std::string& subUser) -{ - subUser_ = subUser; - setParameter("SubUser", subUser); -} - -std::string DescribeRtcQualityMetricRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcQualityMetricRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcQualityMetricRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcQualityMetricRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcQualityMetricRequest::getPubUser()const -{ - return pubUser_; -} - -void DescribeRtcQualityMetricRequest::setPubUser(const std::string& pubUser) -{ - pubUser_ = pubUser; - setParameter("PubUser", pubUser); -} - -std::string DescribeRtcQualityMetricRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcQualityMetricRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcQualityMetricRequest::getChannelId()const -{ - return channelId_; -} - -void DescribeRtcQualityMetricRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/DescribeRtcQualityMetricResult.cc b/rtc/src/model/DescribeRtcQualityMetricResult.cc deleted file mode 100644 index 9d2957971..000000000 --- a/rtc/src/model/DescribeRtcQualityMetricResult.cc +++ /dev/null @@ -1,190 +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; - -DescribeRtcQualityMetricResult::DescribeRtcQualityMetricResult() : - ServiceResult() -{} - -DescribeRtcQualityMetricResult::DescribeRtcQualityMetricResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcQualityMetricResult::~DescribeRtcQualityMetricResult() -{} - -void DescribeRtcQualityMetricResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto qualityMetricNode = value["QualityMetric"]; - auto subInfoNode = qualityMetricNode["SubInfo"]; - auto allDataNode = subInfoNode["Data"]["DataItem"]; - for (auto subInfoNodeDataDataItem : allDataNode) - { - QualityMetric::SubInfo::DataItem dataItemObject; - if(!subInfoNodeDataDataItem["Time"].isNull()) - dataItemObject.time = subInfoNodeDataDataItem["Time"].asString(); - auto fpsNode = value["Fps"]; - if(!fpsNode["Small"].isNull()) - dataItemObject.fps.small = std::stol(fpsNode["Small"].asString()); - if(!fpsNode["Large"].isNull()) - dataItemObject.fps.large = std::stol(fpsNode["Large"].asString()); - if(!fpsNode["Super"].isNull()) - dataItemObject.fps.super = std::stol(fpsNode["Super"].asString()); - if(!fpsNode["Share"].isNull()) - dataItemObject.fps.share = std::stol(fpsNode["Share"].asString()); - auto resolutionNode = value["Resolution"]; - if(!resolutionNode["Small"].isNull()) - dataItemObject.resolution.small = std::stol(resolutionNode["Small"].asString()); - if(!resolutionNode["Large"].isNull()) - dataItemObject.resolution.large = std::stol(resolutionNode["Large"].asString()); - if(!resolutionNode["Super"].isNull()) - dataItemObject.resolution.super = std::stol(resolutionNode["Super"].asString()); - if(!resolutionNode["Share"].isNull()) - dataItemObject.resolution.share = std::stol(resolutionNode["Share"].asString()); - auto bitRateNode = value["BitRate"]; - if(!bitRateNode["Audio"].isNull()) - dataItemObject.bitRate.audio = std::stol(bitRateNode["Audio"].asString()); - if(!bitRateNode["Small"].isNull()) - dataItemObject.bitRate.small = std::stol(bitRateNode["Small"].asString()); - if(!bitRateNode["Large"].isNull()) - dataItemObject.bitRate.large = std::stol(bitRateNode["Large"].asString()); - if(!bitRateNode["Super"].isNull()) - dataItemObject.bitRate.super = std::stol(bitRateNode["Super"].asString()); - if(!bitRateNode["Share"].isNull()) - dataItemObject.bitRate.share = std::stol(bitRateNode["Share"].asString()); - auto networkNode = value["Network"]; - if(!networkNode["Loss"].isNull()) - dataItemObject.network.loss = std::stof(networkNode["Loss"].asString()); - if(!networkNode["Rtt"].isNull()) - dataItemObject.network.rtt = std::stol(networkNode["Rtt"].asString()); - qualityMetric_.subInfo.data.push_back(dataItemObject); - } - auto allEventsNode = subInfoNode["Events"]["EventsItem"]; - for (auto subInfoNodeEventsEventsItem : allEventsNode) - { - QualityMetric::SubInfo::EventsItem eventsItemObject; - if(!subInfoNodeEventsEventsItem["Time"].isNull()) - eventsItemObject.time = subInfoNodeEventsEventsItem["Time"].asString(); - if(!subInfoNodeEventsEventsItem["EventId"].isNull()) - eventsItemObject.eventId = std::stol(subInfoNodeEventsEventsItem["EventId"].asString()); - if(!subInfoNodeEventsEventsItem["Name"].isNull()) - eventsItemObject.name = subInfoNodeEventsEventsItem["Name"].asString(); - if(!subInfoNodeEventsEventsItem["Category"].isNull()) - eventsItemObject.category = subInfoNodeEventsEventsItem["Category"].asString(); - if(!subInfoNodeEventsEventsItem["Result"].isNull()) - eventsItemObject.result = subInfoNodeEventsEventsItem["Result"].asString(); - if(!subInfoNodeEventsEventsItem["Description"].isNull()) - eventsItemObject.description = subInfoNodeEventsEventsItem["Description"].asString(); - qualityMetric_.subInfo.events.push_back(eventsItemObject); - } - auto userNode = subInfoNode["User"]; - if(!userNode["UserId"].isNull()) - qualityMetric_.subInfo.user.userId = userNode["UserId"].asString(); - if(!userNode["SDKVersion"].isNull()) - qualityMetric_.subInfo.user.sDKVersion = userNode["SDKVersion"].asString(); - if(!userNode["OS"].isNull()) - qualityMetric_.subInfo.user.oS = userNode["OS"].asString(); - if(!userNode["Province"].isNull()) - qualityMetric_.subInfo.user.province = userNode["Province"].asString(); - auto pubInfoNode = qualityMetricNode["PubInfo"]; - auto allData2Node = pubInfoNode["Data"]["DataItem"]; - for (auto pubInfoNodeDataDataItem : allData2Node) - { - QualityMetric::PubInfo::DataItem4 dataItem4Object; - if(!pubInfoNodeDataDataItem["Time"].isNull()) - dataItem4Object.time = pubInfoNodeDataDataItem["Time"].asString(); - auto fps5Node = value["Fps"]; - if(!fps5Node["Small"].isNull()) - dataItem4Object.fps5.small = std::stol(fps5Node["Small"].asString()); - if(!fps5Node["Large"].isNull()) - dataItem4Object.fps5.large = std::stol(fps5Node["Large"].asString()); - if(!fps5Node["Super"].isNull()) - dataItem4Object.fps5.super = std::stol(fps5Node["Super"].asString()); - if(!fps5Node["Share"].isNull()) - dataItem4Object.fps5.share = std::stol(fps5Node["Share"].asString()); - auto resolution6Node = value["Resolution"]; - if(!resolution6Node["Small"].isNull()) - dataItem4Object.resolution6.small = std::stol(resolution6Node["Small"].asString()); - if(!resolution6Node["Large"].isNull()) - dataItem4Object.resolution6.large = std::stol(resolution6Node["Large"].asString()); - if(!resolution6Node["Super"].isNull()) - dataItem4Object.resolution6.super = std::stol(resolution6Node["Super"].asString()); - if(!resolution6Node["Share"].isNull()) - dataItem4Object.resolution6.share = std::stol(resolution6Node["Share"].asString()); - auto bitRate7Node = value["BitRate"]; - if(!bitRate7Node["Audio"].isNull()) - dataItem4Object.bitRate7.audio = std::stol(bitRate7Node["Audio"].asString()); - if(!bitRate7Node["Small"].isNull()) - dataItem4Object.bitRate7.small = std::stol(bitRate7Node["Small"].asString()); - if(!bitRate7Node["Large"].isNull()) - dataItem4Object.bitRate7.large = std::stol(bitRate7Node["Large"].asString()); - if(!bitRate7Node["Super"].isNull()) - dataItem4Object.bitRate7.super = std::stol(bitRate7Node["Super"].asString()); - if(!bitRate7Node["Share"].isNull()) - dataItem4Object.bitRate7.share = std::stol(bitRate7Node["Share"].asString()); - auto network8Node = value["Network"]; - if(!network8Node["Loss"].isNull()) - dataItem4Object.network8.loss = std::stof(network8Node["Loss"].asString()); - if(!network8Node["Rtt"].isNull()) - dataItem4Object.network8.rtt = std::stol(network8Node["Rtt"].asString()); - qualityMetric_.pubInfo.data2.push_back(dataItem4Object); - } - auto allEvents3Node = pubInfoNode["Events"]["EventsItem"]; - for (auto pubInfoNodeEventsEventsItem : allEvents3Node) - { - QualityMetric::PubInfo::EventsItem9 eventsItem9Object; - if(!pubInfoNodeEventsEventsItem["Time"].isNull()) - eventsItem9Object.time = pubInfoNodeEventsEventsItem["Time"].asString(); - if(!pubInfoNodeEventsEventsItem["EventId"].isNull()) - eventsItem9Object.eventId = std::stol(pubInfoNodeEventsEventsItem["EventId"].asString()); - if(!pubInfoNodeEventsEventsItem["Name"].isNull()) - eventsItem9Object.name = pubInfoNodeEventsEventsItem["Name"].asString(); - if(!pubInfoNodeEventsEventsItem["Category"].isNull()) - eventsItem9Object.category = pubInfoNodeEventsEventsItem["Category"].asString(); - if(!pubInfoNodeEventsEventsItem["Result"].isNull()) - eventsItem9Object.result = pubInfoNodeEventsEventsItem["Result"].asString(); - if(!pubInfoNodeEventsEventsItem["Description"].isNull()) - eventsItem9Object.description = pubInfoNodeEventsEventsItem["Description"].asString(); - qualityMetric_.pubInfo.events3.push_back(eventsItem9Object); - } - auto user1Node = pubInfoNode["User"]; - if(!user1Node["UserId"].isNull()) - qualityMetric_.pubInfo.user1.userId = user1Node["UserId"].asString(); - if(!user1Node["SDKVersion"].isNull()) - qualityMetric_.pubInfo.user1.sDKVersion = user1Node["SDKVersion"].asString(); - if(!user1Node["OS"].isNull()) - qualityMetric_.pubInfo.user1.oS = user1Node["OS"].asString(); - if(!user1Node["Province"].isNull()) - qualityMetric_.pubInfo.user1.province = user1Node["Province"].asString(); - -} - -DescribeRtcQualityMetricResult::QualityMetric DescribeRtcQualityMetricResult::getQualityMetric()const -{ - return qualityMetric_; -} - diff --git a/rtc/src/model/DescribeRtcScaleDetailRequest.cc b/rtc/src/model/DescribeRtcScaleDetailRequest.cc deleted file mode 100644 index d99252fa6..000000000 --- a/rtc/src/model/DescribeRtcScaleDetailRequest.cc +++ /dev/null @@ -1,84 +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::DescribeRtcScaleDetailRequest; - -DescribeRtcScaleDetailRequest::DescribeRtcScaleDetailRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcScaleDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcScaleDetailRequest::~DescribeRtcScaleDetailRequest() -{} - -std::string DescribeRtcScaleDetailRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcScaleDetailRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcScaleDetailRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcScaleDetailRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcScaleDetailRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcScaleDetailRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcScaleDetailRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcScaleDetailRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcScaleDetailRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcScaleDetailRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeRtcScaleDetailResult.cc b/rtc/src/model/DescribeRtcScaleDetailResult.cc deleted file mode 100644 index 07aa081c0..000000000 --- a/rtc/src/model/DescribeRtcScaleDetailResult.cc +++ /dev/null @@ -1,61 +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; - -DescribeRtcScaleDetailResult::DescribeRtcScaleDetailResult() : - ServiceResult() -{} - -DescribeRtcScaleDetailResult::DescribeRtcScaleDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcScaleDetailResult::~DescribeRtcScaleDetailResult() -{} - -void DescribeRtcScaleDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allScaleNode = value["Scale"]["ScaleItem"]; - for (auto valueScaleScaleItem : allScaleNode) - { - ScaleItem scaleObject; - if(!valueScaleScaleItem["TS"].isNull()) - scaleObject.tS = valueScaleScaleItem["TS"].asString(); - if(!valueScaleScaleItem["CC"].isNull()) - scaleObject.cC = std::stol(valueScaleScaleItem["CC"].asString()); - if(!valueScaleScaleItem["UC"].isNull()) - scaleObject.uC = std::stol(valueScaleScaleItem["UC"].asString()); - scale_.push_back(scaleObject); - } - -} - -std::vector DescribeRtcScaleDetailResult::getScale()const -{ - return scale_; -} - diff --git a/rtc/src/model/DescribeRtcScaleRequest.cc b/rtc/src/model/DescribeRtcScaleRequest.cc deleted file mode 100644 index 7b709f092..000000000 --- a/rtc/src/model/DescribeRtcScaleRequest.cc +++ /dev/null @@ -1,84 +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::DescribeRtcScaleRequest; - -DescribeRtcScaleRequest::DescribeRtcScaleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcScale") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcScaleRequest::~DescribeRtcScaleRequest() -{} - -std::string DescribeRtcScaleRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcScaleRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcScaleRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcScaleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcScaleRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcScaleRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcScaleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcScaleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcScaleRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcScaleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/DescribeRtcScaleResult.cc b/rtc/src/model/DescribeRtcScaleResult.cc deleted file mode 100644 index 7d1d2dd17..000000000 --- a/rtc/src/model/DescribeRtcScaleResult.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; - -DescribeRtcScaleResult::DescribeRtcScaleResult() : - ServiceResult() -{} - -DescribeRtcScaleResult::DescribeRtcScaleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcScaleResult::~DescribeRtcScaleResult() -{} - -void DescribeRtcScaleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allScaleNode = value["Scale"]["ScaleItem"]; - for (auto valueScaleScaleItem : allScaleNode) - { - ScaleItem scaleObject; - if(!valueScaleScaleItem["Time"].isNull()) - scaleObject.time = valueScaleScaleItem["Time"].asString(); - if(!valueScaleScaleItem["ChannelCount"].isNull()) - scaleObject.channelCount = std::stol(valueScaleScaleItem["ChannelCount"].asString()); - if(!valueScaleScaleItem["UserCount"].isNull()) - scaleObject.userCount = std::stol(valueScaleScaleItem["UserCount"].asString()); - if(!valueScaleScaleItem["SessionCount"].isNull()) - scaleObject.sessionCount = std::stol(valueScaleScaleItem["SessionCount"].asString()); - if(!valueScaleScaleItem["AudioDuration"].isNull()) - scaleObject.audioDuration = std::stol(valueScaleScaleItem["AudioDuration"].asString()); - if(!valueScaleScaleItem["VideoDuration"].isNull()) - scaleObject.videoDuration = std::stol(valueScaleScaleItem["VideoDuration"].asString()); - scale_.push_back(scaleObject); - } - -} - -std::vector DescribeRtcScaleResult::getScale()const -{ - return scale_; -} - diff --git a/rtc/src/model/DescribeRtcUserCntDataRequest.cc b/rtc/src/model/DescribeRtcUserCntDataRequest.cc deleted file mode 100644 index cd28314ce..000000000 --- a/rtc/src/model/DescribeRtcUserCntDataRequest.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::DescribeRtcUserCntDataRequest; - -DescribeRtcUserCntDataRequest::DescribeRtcUserCntDataRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcUserCntData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcUserCntDataRequest::~DescribeRtcUserCntDataRequest() -{} - -std::string DescribeRtcUserCntDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcUserCntDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcUserCntDataRequest::getServiceArea()const -{ - return serviceArea_; -} - -void DescribeRtcUserCntDataRequest::setServiceArea(const std::string& serviceArea) -{ - serviceArea_ = serviceArea; - setParameter("ServiceArea", serviceArea); -} - -std::string DescribeRtcUserCntDataRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcUserCntDataRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcUserCntDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcUserCntDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcUserCntDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcUserCntDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcUserCntDataRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcUserCntDataRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcUserCntDataRequest::getInterval()const -{ - return interval_; -} - -void DescribeRtcUserCntDataRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); -} - diff --git a/rtc/src/model/DescribeRtcUserCntDataResult.cc b/rtc/src/model/DescribeRtcUserCntDataResult.cc deleted file mode 100644 index b735f2656..000000000 --- a/rtc/src/model/DescribeRtcUserCntDataResult.cc +++ /dev/null @@ -1,59 +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; - -DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult() : - ServiceResult() -{} - -DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcUserCntDataResult::~DescribeRtcUserCntDataResult() -{} - -void DescribeRtcUserCntDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allUserCntDataPerIntervalNode = value["UserCntDataPerInterval"]["UserCntModule"]; - for (auto valueUserCntDataPerIntervalUserCntModule : allUserCntDataPerIntervalNode) - { - UserCntModule userCntDataPerIntervalObject; - if(!valueUserCntDataPerIntervalUserCntModule["TimeStamp"].isNull()) - userCntDataPerIntervalObject.timeStamp = valueUserCntDataPerIntervalUserCntModule["TimeStamp"].asString(); - if(!valueUserCntDataPerIntervalUserCntModule["ActiveUserCnt"].isNull()) - userCntDataPerIntervalObject.activeUserCnt = std::stol(valueUserCntDataPerIntervalUserCntModule["ActiveUserCnt"].asString()); - userCntDataPerInterval_.push_back(userCntDataPerIntervalObject); - } - -} - -std::vector DescribeRtcUserCntDataResult::getUserCntDataPerInterval()const -{ - return userCntDataPerInterval_; -} - diff --git a/rtc/src/model/DescribeRtcUserEventsRequest.cc b/rtc/src/model/DescribeRtcUserEventsRequest.cc deleted file mode 100644 index bf153ab2d..000000000 --- a/rtc/src/model/DescribeRtcUserEventsRequest.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::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 deleted file mode 100644 index 9647195e8..000000000 --- a/rtc/src/model/DescribeRtcUserEventsResult.cc +++ /dev/null @@ -1,61 +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; - -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/DescribeRtcUserListRequest.cc b/rtc/src/model/DescribeRtcUserListRequest.cc deleted file mode 100644 index c170d63b7..000000000 --- a/rtc/src/model/DescribeRtcUserListRequest.cc +++ /dev/null @@ -1,117 +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::DescribeRtcUserListRequest; - -DescribeRtcUserListRequest::DescribeRtcUserListRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcUserList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRtcUserListRequest::~DescribeRtcUserListRequest() -{} - -std::string DescribeRtcUserListRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeRtcUserListRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeRtcUserListRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeRtcUserListRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string DescribeRtcUserListRequest::getSubUser()const -{ - return subUser_; -} - -void DescribeRtcUserListRequest::setSubUser(const std::string& subUser) -{ - subUser_ = subUser; - setParameter("SubUser", subUser); -} - -std::string DescribeRtcUserListRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeRtcUserListRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeRtcUserListRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeRtcUserListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeRtcUserListRequest::getPubUser()const -{ - return pubUser_; -} - -void DescribeRtcUserListRequest::setPubUser(const std::string& pubUser) -{ - pubUser_ = pubUser; - setParameter("PubUser", pubUser); -} - -std::string DescribeRtcUserListRequest::getAppId()const -{ - return appId_; -} - -void DescribeRtcUserListRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string DescribeRtcUserListRequest::getChannelId()const -{ - return channelId_; -} - -void DescribeRtcUserListRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/DescribeRtcUserListResult.cc b/rtc/src/model/DescribeRtcUserListResult.cc deleted file mode 100644 index 21ee9ddd7..000000000 --- a/rtc/src/model/DescribeRtcUserListResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Rtc; -using namespace AlibabaCloud::Rtc::Model; - -DescribeRtcUserListResult::DescribeRtcUserListResult() : - ServiceResult() -{} - -DescribeRtcUserListResult::DescribeRtcUserListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRtcUserListResult::~DescribeRtcUserListResult() -{} - -void DescribeRtcUserListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allUserListNode = value["UserList"]["UserListItem"]; - for (auto valueUserListUserListItem : allUserListNode) - { - UserListItem userListObject; - if(!valueUserListUserListItem["User"].isNull()) - userListObject.user = valueUserListUserListItem["User"].asString(); - userList_.push_back(userListObject); - } - -} - -std::vector DescribeRtcUserListResult::getUserList()const -{ - return userList_; -} - diff --git a/rtc/src/model/DescribeUserInfoInChannelRequest.cc b/rtc/src/model/DescribeUserInfoInChannelRequest.cc index 634c4c9ce..e2e445455 100644 --- a/rtc/src/model/DescribeUserInfoInChannelRequest.cc +++ b/rtc/src/model/DescribeUserInfoInChannelRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::DescribeUserInfoInChannelRequest; - -DescribeUserInfoInChannelRequest::DescribeUserInfoInChannelRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DescribeUserInfoInChannel") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserInfoInChannelRequest::~DescribeUserInfoInChannelRequest() -{} - -std::string DescribeUserInfoInChannelRequest::getUserId()const -{ - return userId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::DescribeUserInfoInChannelRequest; + +DescribeUserInfoInChannelRequest::DescribeUserInfoInChannelRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DescribeUserInfoInChannel") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserInfoInChannelRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +DescribeUserInfoInChannelRequest::~DescribeUserInfoInChannelRequest() {} + +std::string DescribeUserInfoInChannelRequest::getUserId() const { + return userId_; } -std::string DescribeUserInfoInChannelRequest::getShowLog()const -{ - return showLog_; +void DescribeUserInfoInChannelRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void DescribeUserInfoInChannelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeUserInfoInChannelRequest::getShowLog() const { + return showLog_; } -long DescribeUserInfoInChannelRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserInfoInChannelRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void DescribeUserInfoInChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserInfoInChannelRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserInfoInChannelRequest::getAppId()const -{ - return appId_; +void DescribeUserInfoInChannelRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserInfoInChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string DescribeUserInfoInChannelRequest::getAppId() const { + return appId_; } -std::string DescribeUserInfoInChannelRequest::getChannelId()const -{ - return channelId_; +void DescribeUserInfoInChannelRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void DescribeUserInfoInChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string DescribeUserInfoInChannelRequest::getChannelId() const { + return channelId_; +} + +void DescribeUserInfoInChannelRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/DescribeUserInfoInChannelResult.cc b/rtc/src/model/DescribeUserInfoInChannelResult.cc index 350bba20c..557c502e0 100644 --- a/rtc/src/model/DescribeUserInfoInChannelResult.cc +++ b/rtc/src/model/DescribeUserInfoInChannelResult.cc @@ -45,18 +45,18 @@ void DescribeUserInfoInChannelResult::parse(const std::string &payload) PropertyItem propertyObject; if(!valuePropertyPropertyItem["Session"].isNull()) propertyObject.session = valuePropertyPropertyItem["Session"].asString(); - if(!valuePropertyPropertyItem["Join"].isNull()) - propertyObject.join = std::stoi(valuePropertyPropertyItem["Join"].asString()); if(!valuePropertyPropertyItem["Role"].isNull()) propertyObject.role = std::stoi(valuePropertyPropertyItem["Role"].asString()); + if(!valuePropertyPropertyItem["Join"].isNull()) + propertyObject.join = std::stoi(valuePropertyPropertyItem["Join"].asString()); property_.push_back(propertyObject); } if(!value["Timestamp"].isNull()) timestamp_ = std::stoi(value["Timestamp"].asString()); - if(!value["IsChannelExist"].isNull()) - isChannelExist_ = value["IsChannelExist"].asString() == "true"; if(!value["IsInChannel"].isNull()) isInChannel_ = value["IsInChannel"].asString() == "true"; + if(!value["IsChannelExist"].isNull()) + isChannelExist_ = value["IsChannelExist"].asString() == "true"; } diff --git a/rtc/src/model/DisableAutoLiveStreamRuleRequest.cc b/rtc/src/model/DisableAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..367004c53 --- /dev/null +++ b/rtc/src/model/DisableAutoLiveStreamRuleRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::DisableAutoLiveStreamRuleRequest; + +DisableAutoLiveStreamRuleRequest::DisableAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "DisableAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +DisableAutoLiveStreamRuleRequest::~DisableAutoLiveStreamRuleRequest() {} + +std::string DisableAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void DisableAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long DisableAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DisableAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DisableAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void DisableAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long DisableAutoLiveStreamRuleRequest::getRuleId() const { + return ruleId_; +} + +void DisableAutoLiveStreamRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + diff --git a/rtc/src/model/DeleteMPURuleResult.cc b/rtc/src/model/DisableAutoLiveStreamRuleResult.cc similarity index 71% rename from rtc/src/model/DeleteMPURuleResult.cc rename to rtc/src/model/DisableAutoLiveStreamRuleResult.cc index ccc243d94..0b0a597e7 100644 --- a/rtc/src/model/DeleteMPURuleResult.cc +++ b/rtc/src/model/DisableAutoLiveStreamRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DeleteMPURuleResult::DeleteMPURuleResult() : +DisableAutoLiveStreamRuleResult::DisableAutoLiveStreamRuleResult() : ServiceResult() {} -DeleteMPURuleResult::DeleteMPURuleResult(const std::string &payload) : +DisableAutoLiveStreamRuleResult::DisableAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteMPURuleResult::~DeleteMPURuleResult() +DisableAutoLiveStreamRuleResult::~DisableAutoLiveStreamRuleResult() {} -void DeleteMPURuleResult::parse(const std::string &payload) +void DisableAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/DisableMPURuleRequest.cc b/rtc/src/model/DisableMPURuleRequest.cc deleted file mode 100644 index 6c03bb5f3..000000000 --- a/rtc/src/model/DisableMPURuleRequest.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::DisableMPURuleRequest; - -DisableMPURuleRequest::DisableMPURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "DisableMPURule") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableMPURuleRequest::~DisableMPURuleRequest() -{} - -std::string DisableMPURuleRequest::getShowLog()const -{ - return showLog_; -} - -void DisableMPURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long DisableMPURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void DisableMPURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DisableMPURuleRequest::getAppId()const -{ - return appId_; -} - -void DisableMPURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long DisableMPURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void DisableMPURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/EnableAutoLiveStreamRuleRequest.cc b/rtc/src/model/EnableAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..93011939b --- /dev/null +++ b/rtc/src/model/EnableAutoLiveStreamRuleRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Rtc::Model::EnableAutoLiveStreamRuleRequest; + +EnableAutoLiveStreamRuleRequest::EnableAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "EnableAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +EnableAutoLiveStreamRuleRequest::~EnableAutoLiveStreamRuleRequest() {} + +std::string EnableAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void EnableAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +long EnableAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void EnableAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string EnableAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void EnableAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long EnableAutoLiveStreamRuleRequest::getRuleId() const { + return ruleId_; +} + +void EnableAutoLiveStreamRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + diff --git a/rtc/src/model/DisableMPURuleResult.cc b/rtc/src/model/EnableAutoLiveStreamRuleResult.cc similarity index 71% rename from rtc/src/model/DisableMPURuleResult.cc rename to rtc/src/model/EnableAutoLiveStreamRuleResult.cc index 20c5d0050..ae5a13917 100644 --- a/rtc/src/model/DisableMPURuleResult.cc +++ b/rtc/src/model/EnableAutoLiveStreamRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -DisableMPURuleResult::DisableMPURuleResult() : +EnableAutoLiveStreamRuleResult::EnableAutoLiveStreamRuleResult() : ServiceResult() {} -DisableMPURuleResult::DisableMPURuleResult(const std::string &payload) : +EnableAutoLiveStreamRuleResult::EnableAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableMPURuleResult::~DisableMPURuleResult() +EnableAutoLiveStreamRuleResult::~EnableAutoLiveStreamRuleResult() {} -void DisableMPURuleResult::parse(const std::string &payload) +void EnableAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/EnableMPURuleRequest.cc b/rtc/src/model/EnableMPURuleRequest.cc deleted file mode 100644 index ead194399..000000000 --- a/rtc/src/model/EnableMPURuleRequest.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::EnableMPURuleRequest; - -EnableMPURuleRequest::EnableMPURuleRequest() : - RpcServiceRequest("rtc", "2018-01-11", "EnableMPURule") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableMPURuleRequest::~EnableMPURuleRequest() -{} - -std::string EnableMPURuleRequest::getShowLog()const -{ - return showLog_; -} - -void EnableMPURuleRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long EnableMPURuleRequest::getOwnerId()const -{ - return ownerId_; -} - -void EnableMPURuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string EnableMPURuleRequest::getAppId()const -{ - return appId_; -} - -void EnableMPURuleRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -long EnableMPURuleRequest::getRuleId()const -{ - return ruleId_; -} - -void EnableMPURuleRequest::setRuleId(long ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", std::to_string(ruleId)); -} - diff --git a/rtc/src/model/GetMPUTaskStatusRequest.cc b/rtc/src/model/GetMPUTaskStatusRequest.cc index 8c4f7b369..0bb88a1b6 100644 --- a/rtc/src/model/GetMPUTaskStatusRequest.cc +++ b/rtc/src/model/GetMPUTaskStatusRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::GetMPUTaskStatusRequest; - -GetMPUTaskStatusRequest::GetMPUTaskStatusRequest() : - RpcServiceRequest("rtc", "2018-01-11", "GetMPUTaskStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMPUTaskStatusRequest::~GetMPUTaskStatusRequest() -{} - -std::string GetMPUTaskStatusRequest::getTaskId()const -{ - return taskId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::GetMPUTaskStatusRequest; + +GetMPUTaskStatusRequest::GetMPUTaskStatusRequest() + : RpcServiceRequest("rtc", "2018-01-11", "GetMPUTaskStatus") { + setMethod(HttpRequest::Method::Post); } -void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +GetMPUTaskStatusRequest::~GetMPUTaskStatusRequest() {} + +std::string GetMPUTaskStatusRequest::getTaskId() const { + return taskId_; } -std::string GetMPUTaskStatusRequest::getShowLog()const -{ - return showLog_; +void GetMPUTaskStatusRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void GetMPUTaskStatusRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string GetMPUTaskStatusRequest::getShowLog() const { + return showLog_; } -long GetMPUTaskStatusRequest::getOwnerId()const -{ - return ownerId_; +void GetMPUTaskStatusRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void GetMPUTaskStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetMPUTaskStatusRequest::getOwnerId() const { + return ownerId_; } -std::string GetMPUTaskStatusRequest::getAppId()const -{ - return appId_; +void GetMPUTaskStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetMPUTaskStatusRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string GetMPUTaskStatusRequest::getAppId() const { + return appId_; +} + +void GetMPUTaskStatusRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/ModifyAppRequest.cc b/rtc/src/model/ModifyAppRequest.cc deleted file mode 100644 index 355daea70..000000000 --- a/rtc/src/model/ModifyAppRequest.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::ModifyAppRequest; - -ModifyAppRequest::ModifyAppRequest() : - RpcServiceRequest("rtc", "2018-01-11", "ModifyApp") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAppRequest::~ModifyAppRequest() -{} - -std::string ModifyAppRequest::getAppName()const -{ - return appName_; -} - -void ModifyAppRequest::setAppName(const std::string& appName) -{ - appName_ = appName; - setParameter("AppName", appName); -} - -std::string ModifyAppRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyAppRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long ModifyAppRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyAppRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyAppRequest::getAppId()const -{ - return appId_; -} - -void ModifyAppRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/ModifyAppResult.cc b/rtc/src/model/ModifyAppResult.cc deleted file mode 100644 index eaa0a0013..000000000 --- a/rtc/src/model/ModifyAppResult.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; - -ModifyAppResult::ModifyAppResult() : - ServiceResult() -{} - -ModifyAppResult::ModifyAppResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAppResult::~ModifyAppResult() -{} - -void ModifyAppResult::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/ModifyConferenceRequest.cc b/rtc/src/model/ModifyConferenceRequest.cc deleted file mode 100644 index 1d8bf50d6..000000000 --- a/rtc/src/model/ModifyConferenceRequest.cc +++ /dev/null @@ -1,117 +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::ModifyConferenceRequest; - -ModifyConferenceRequest::ModifyConferenceRequest() : - RpcServiceRequest("rtc", "2018-01-11", "ModifyConference") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyConferenceRequest::~ModifyConferenceRequest() -{} - -std::string ModifyConferenceRequest::getStartTime()const -{ - return startTime_; -} - -void ModifyConferenceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string ModifyConferenceRequest::getType()const -{ - return type_; -} - -void ModifyConferenceRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string ModifyConferenceRequest::getConferenceId()const -{ - return conferenceId_; -} - -void ModifyConferenceRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string ModifyConferenceRequest::getConferenceName()const -{ - return conferenceName_; -} - -void ModifyConferenceRequest::setConferenceName(const std::string& conferenceName) -{ - conferenceName_ = conferenceName; - setParameter("ConferenceName", conferenceName); -} - -std::string ModifyConferenceRequest::getShowLog()const -{ - return showLog_; -} - -void ModifyConferenceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long ModifyConferenceRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyConferenceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyConferenceRequest::getAppId()const -{ - return appId_; -} - -void ModifyConferenceRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -int ModifyConferenceRequest::getRemindNotice()const -{ - return remindNotice_; -} - -void ModifyConferenceRequest::setRemindNotice(int remindNotice) -{ - remindNotice_ = remindNotice; - setParameter("RemindNotice", std::to_string(remindNotice)); -} - diff --git a/rtc/src/model/ModifyMPULayoutRequest.cc b/rtc/src/model/ModifyMPULayoutRequest.cc index 9bd4f6edd..b38d39e76 100644 --- a/rtc/src/model/ModifyMPULayoutRequest.cc +++ b/rtc/src/model/ModifyMPULayoutRequest.cc @@ -1,116 +1,100 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::ModifyMPULayoutRequest; - -ModifyMPULayoutRequest::ModifyMPULayoutRequest() : - RpcServiceRequest("rtc", "2018-01-11", "ModifyMPULayout") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyMPULayoutRequest::~ModifyMPULayoutRequest() -{} - -long ModifyMPULayoutRequest::getLayoutId()const -{ - return layoutId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::ModifyMPULayoutRequest; + +ModifyMPULayoutRequest::ModifyMPULayoutRequest() + : RpcServiceRequest("rtc", "2018-01-11", "ModifyMPULayout") { + setMethod(HttpRequest::Method::Post); } -void ModifyMPULayoutRequest::setLayoutId(long layoutId) -{ - layoutId_ = layoutId; - setParameter("LayoutId", std::to_string(layoutId)); +ModifyMPULayoutRequest::~ModifyMPULayoutRequest() {} + +long ModifyMPULayoutRequest::getLayoutId() const { + return layoutId_; } -std::vector ModifyMPULayoutRequest::getPanes()const -{ - return panes_; +void ModifyMPULayoutRequest::setLayoutId(long layoutId) { + layoutId_ = layoutId; + setParameter(std::string("LayoutId"), std::to_string(layoutId)); } -void ModifyMPULayoutRequest::setPanes(const std::vector& panes) -{ - panes_ = panes; - for(int dep1 = 0; dep1!= panes.size(); dep1++) { - auto panesObj = panes.at(dep1); - std::string panesObjStr = "Panes." + std::to_string(dep1 + 1); - setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId)); - setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane)); - setParameter(panesObjStr + ".X", std::to_string(panesObj.x)); - setParameter(panesObjStr + ".Y", std::to_string(panesObj.y)); - setParameter(panesObjStr + ".Width", std::to_string(panesObj.width)); - setParameter(panesObjStr + ".Height", std::to_string(panesObj.height)); - setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder)); - } +std::vector ModifyMPULayoutRequest::getPanes() const { + return panes_; } -std::string ModifyMPULayoutRequest::getShowLog()const -{ - return showLog_; +void ModifyMPULayoutRequest::setPanes(const std::vector &panes) { + panes_ = panes; + for(int dep1 = 0; dep1 != panes.size(); dep1++) { + auto panesObj = panes.at(dep1); + std::string panesObjStr = std::string("Panes") + "." + std::to_string(dep1 + 1); + setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane)); + setParameter(panesObjStr + ".Width", std::to_string(panesObj.width)); + setParameter(panesObjStr + ".Height", std::to_string(panesObj.height)); + setParameter(panesObjStr + ".Y", std::to_string(panesObj.y)); + setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId)); + setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder)); + setParameter(panesObjStr + ".X", std::to_string(panesObj.x)); + } } -void ModifyMPULayoutRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string ModifyMPULayoutRequest::getShowLog() const { + return showLog_; } -long ModifyMPULayoutRequest::getOwnerId()const -{ - return ownerId_; +void ModifyMPULayoutRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void ModifyMPULayoutRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyMPULayoutRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyMPULayoutRequest::getAppId()const -{ - return appId_; +void ModifyMPULayoutRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyMPULayoutRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string ModifyMPULayoutRequest::getAppId() const { + return appId_; } -std::string ModifyMPULayoutRequest::getName()const -{ - return name_; +void ModifyMPULayoutRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void ModifyMPULayoutRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyMPULayoutRequest::getName() const { + return name_; } -int ModifyMPULayoutRequest::getAudioMixCount()const -{ - return audioMixCount_; +void ModifyMPULayoutRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyMPULayoutRequest::setAudioMixCount(int audioMixCount) -{ - audioMixCount_ = audioMixCount; - setParameter("AudioMixCount", std::to_string(audioMixCount)); +int ModifyMPULayoutRequest::getAudioMixCount() const { + return audioMixCount_; +} + +void ModifyMPULayoutRequest::setAudioMixCount(int audioMixCount) { + audioMixCount_ = audioMixCount; + setParameter(std::string("AudioMixCount"), std::to_string(audioMixCount)); } diff --git a/rtc/src/model/MuteAudioAllRequest.cc b/rtc/src/model/MuteAudioAllRequest.cc deleted file mode 100644 index a81059d3e..000000000 --- a/rtc/src/model/MuteAudioAllRequest.cc +++ /dev/null @@ -1,84 +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::MuteAudioAllRequest; - -MuteAudioAllRequest::MuteAudioAllRequest() : - RpcServiceRequest("rtc", "2018-01-11", "MuteAudioAll") -{ - setMethod(HttpRequest::Method::Post); -} - -MuteAudioAllRequest::~MuteAudioAllRequest() -{} - -std::string MuteAudioAllRequest::getConferenceId()const -{ - return conferenceId_; -} - -void MuteAudioAllRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string MuteAudioAllRequest::getShowLog()const -{ - return showLog_; -} - -void MuteAudioAllRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long MuteAudioAllRequest::getOwnerId()const -{ - return ownerId_; -} - -void MuteAudioAllRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string MuteAudioAllRequest::getParticipantId()const -{ - return participantId_; -} - -void MuteAudioAllRequest::setParticipantId(const std::string& participantId) -{ - participantId_ = participantId; - setParameter("ParticipantId", participantId); -} - -std::string MuteAudioAllRequest::getAppId()const -{ - return appId_; -} - -void MuteAudioAllRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/MuteAudioAllResult.cc b/rtc/src/model/MuteAudioAllResult.cc deleted file mode 100644 index 05e538758..000000000 --- a/rtc/src/model/MuteAudioAllResult.cc +++ /dev/null @@ -1,68 +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; - -MuteAudioAllResult::MuteAudioAllResult() : - ServiceResult() -{} - -MuteAudioAllResult::MuteAudioAllResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MuteAudioAllResult::~MuteAudioAllResult() -{} - -void MuteAudioAllResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allParticipantsNode = value["Participants"]["Participant"]; - for (auto valueParticipantsParticipant : allParticipantsNode) - { - Participant participantsObject; - if(!valueParticipantsParticipant["Id"].isNull()) - participantsObject.id = valueParticipantsParticipant["Id"].asString(); - if(!valueParticipantsParticipant["Code"].isNull()) - participantsObject.code = valueParticipantsParticipant["Code"].asString(); - if(!valueParticipantsParticipant["Message"].isNull()) - participantsObject.message = valueParticipantsParticipant["Message"].asString(); - participants_.push_back(participantsObject); - } - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -std::string MuteAudioAllResult::getConferenceId()const -{ - return conferenceId_; -} - -std::vector MuteAudioAllResult::getParticipants()const -{ - return participants_; -} - diff --git a/rtc/src/model/MuteAudioRequest.cc b/rtc/src/model/MuteAudioRequest.cc deleted file mode 100644 index 1a10c4b18..000000000 --- a/rtc/src/model/MuteAudioRequest.cc +++ /dev/null @@ -1,86 +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::MuteAudioRequest; - -MuteAudioRequest::MuteAudioRequest() : - RpcServiceRequest("rtc", "2018-01-11", "MuteAudio") -{ - setMethod(HttpRequest::Method::Post); -} - -MuteAudioRequest::~MuteAudioRequest() -{} - -std::vector MuteAudioRequest::getParticipantIds()const -{ - return participantIds_; -} - -void MuteAudioRequest::setParticipantIds(const std::vector& participantIds) -{ - participantIds_ = participantIds; - for(int dep1 = 0; dep1!= participantIds.size(); dep1++) { - setParameter("ParticipantIds."+ std::to_string(dep1), participantIds.at(dep1)); - } -} - -std::string MuteAudioRequest::getConferenceId()const -{ - return conferenceId_; -} - -void MuteAudioRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string MuteAudioRequest::getShowLog()const -{ - return showLog_; -} - -void MuteAudioRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long MuteAudioRequest::getOwnerId()const -{ - return ownerId_; -} - -void MuteAudioRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string MuteAudioRequest::getAppId()const -{ - return appId_; -} - -void MuteAudioRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/MuteAudioResult.cc b/rtc/src/model/MuteAudioResult.cc deleted file mode 100644 index 68e957058..000000000 --- a/rtc/src/model/MuteAudioResult.cc +++ /dev/null @@ -1,68 +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; - -MuteAudioResult::MuteAudioResult() : - ServiceResult() -{} - -MuteAudioResult::MuteAudioResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -MuteAudioResult::~MuteAudioResult() -{} - -void MuteAudioResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allParticipantsNode = value["Participants"]["Participant"]; - for (auto valueParticipantsParticipant : allParticipantsNode) - { - Participant participantsObject; - if(!valueParticipantsParticipant["Id"].isNull()) - participantsObject.id = valueParticipantsParticipant["Id"].asString(); - if(!valueParticipantsParticipant["Code"].isNull()) - participantsObject.code = valueParticipantsParticipant["Code"].asString(); - if(!valueParticipantsParticipant["Message"].isNull()) - participantsObject.message = valueParticipantsParticipant["Message"].asString(); - participants_.push_back(participantsObject); - } - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -std::string MuteAudioResult::getConferenceId()const -{ - return conferenceId_; -} - -std::vector MuteAudioResult::getParticipants()const -{ - return participants_; -} - diff --git a/rtc/src/model/ReceiveNotifyRequest.cc b/rtc/src/model/ReceiveNotifyRequest.cc deleted file mode 100644 index 7d2dd159a..000000000 --- a/rtc/src/model/ReceiveNotifyRequest.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::ReceiveNotifyRequest; - -ReceiveNotifyRequest::ReceiveNotifyRequest() : - RpcServiceRequest("rtc", "2018-01-11", "ReceiveNotify") -{ - setMethod(HttpRequest::Method::Post); -} - -ReceiveNotifyRequest::~ReceiveNotifyRequest() -{} - -std::string ReceiveNotifyRequest::getTraceId()const -{ - return traceId_; -} - -void ReceiveNotifyRequest::setTraceId(const std::string& traceId) -{ - traceId_ = traceId; - setParameter("TraceId", traceId); -} - -std::string ReceiveNotifyRequest::getContent()const -{ - return content_; -} - -void ReceiveNotifyRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); -} - -std::string ReceiveNotifyRequest::getEvent()const -{ - return event_; -} - -void ReceiveNotifyRequest::setEvent(const std::string& event) -{ - event_ = event; - setParameter("Event", event); -} - -std::string ReceiveNotifyRequest::getShowLog()const -{ - return showLog_; -} - -void ReceiveNotifyRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long ReceiveNotifyRequest::getOwnerId()const -{ - return ownerId_; -} - -void ReceiveNotifyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ReceiveNotifyRequest::getContentType()const -{ - return contentType_; -} - -void ReceiveNotifyRequest::setContentType(const std::string& contentType) -{ - contentType_ = contentType; - setParameter("ContentType", contentType); -} - -std::string ReceiveNotifyRequest::getBizId()const -{ - return bizId_; -} - -void ReceiveNotifyRequest::setBizId(const std::string& bizId) -{ - bizId_ = bizId; - setParameter("BizId", bizId); -} - diff --git a/rtc/src/model/ReceiveNotifyResult.cc b/rtc/src/model/ReceiveNotifyResult.cc deleted file mode 100644 index 6b84ab5f9..000000000 --- a/rtc/src/model/ReceiveNotifyResult.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; - -ReceiveNotifyResult::ReceiveNotifyResult() : - ServiceResult() -{} - -ReceiveNotifyResult::ReceiveNotifyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ReceiveNotifyResult::~ReceiveNotifyResult() -{} - -void ReceiveNotifyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["TraceId"].isNull()) - traceId_ = value["TraceId"].asString(); - -} - -std::string ReceiveNotifyResult::getTraceId()const -{ - return traceId_; -} - diff --git a/rtc/src/model/RemoveParticipantsRequest.cc b/rtc/src/model/RemoveParticipantsRequest.cc deleted file mode 100644 index be3c2d592..000000000 --- a/rtc/src/model/RemoveParticipantsRequest.cc +++ /dev/null @@ -1,86 +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::RemoveParticipantsRequest; - -RemoveParticipantsRequest::RemoveParticipantsRequest() : - RpcServiceRequest("rtc", "2018-01-11", "RemoveParticipants") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveParticipantsRequest::~RemoveParticipantsRequest() -{} - -std::vector RemoveParticipantsRequest::getParticipantIds()const -{ - return participantIds_; -} - -void RemoveParticipantsRequest::setParticipantIds(const std::vector& participantIds) -{ - participantIds_ = participantIds; - for(int dep1 = 0; dep1!= participantIds.size(); dep1++) { - setParameter("ParticipantIds."+ std::to_string(dep1), participantIds.at(dep1)); - } -} - -std::string RemoveParticipantsRequest::getConferenceId()const -{ - return conferenceId_; -} - -void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string RemoveParticipantsRequest::getShowLog()const -{ - return showLog_; -} - -void RemoveParticipantsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long RemoveParticipantsRequest::getOwnerId()const -{ - return ownerId_; -} - -void RemoveParticipantsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string RemoveParticipantsRequest::getAppId()const -{ - return appId_; -} - -void RemoveParticipantsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/RemoveParticipantsResult.cc b/rtc/src/model/RemoveParticipantsResult.cc deleted file mode 100644 index 0046867a4..000000000 --- a/rtc/src/model/RemoveParticipantsResult.cc +++ /dev/null @@ -1,68 +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; - -RemoveParticipantsResult::RemoveParticipantsResult() : - ServiceResult() -{} - -RemoveParticipantsResult::RemoveParticipantsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RemoveParticipantsResult::~RemoveParticipantsResult() -{} - -void RemoveParticipantsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allParticipantsNode = value["Participants"]["Participant"]; - for (auto valueParticipantsParticipant : allParticipantsNode) - { - Participant participantsObject; - if(!valueParticipantsParticipant["Id"].isNull()) - participantsObject.id = valueParticipantsParticipant["Id"].asString(); - if(!valueParticipantsParticipant["Code"].isNull()) - participantsObject.code = valueParticipantsParticipant["Code"].asString(); - if(!valueParticipantsParticipant["Message"].isNull()) - participantsObject.message = valueParticipantsParticipant["Message"].asString(); - participants_.push_back(participantsObject); - } - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -std::string RemoveParticipantsResult::getConferenceId()const -{ - return conferenceId_; -} - -std::vector RemoveParticipantsResult::getParticipants()const -{ - return participants_; -} - diff --git a/rtc/src/model/RemoveTerminalsRequest.cc b/rtc/src/model/RemoveTerminalsRequest.cc index 23bd33114..c861a5eb5 100644 --- a/rtc/src/model/RemoveTerminalsRequest.cc +++ b/rtc/src/model/RemoveTerminalsRequest.cc @@ -1,86 +1,71 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::RemoveTerminalsRequest; - -RemoveTerminalsRequest::RemoveTerminalsRequest() : - RpcServiceRequest("rtc", "2018-01-11", "RemoveTerminals") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveTerminalsRequest::~RemoveTerminalsRequest() -{} - -std::vector RemoveTerminalsRequest::getTerminalIds()const -{ - return terminalIds_; + */ + +#include + +using AlibabaCloud::Rtc::Model::RemoveTerminalsRequest; + +RemoveTerminalsRequest::RemoveTerminalsRequest() + : RpcServiceRequest("rtc", "2018-01-11", "RemoveTerminals") { + setMethod(HttpRequest::Method::Post); } -void RemoveTerminalsRequest::setTerminalIds(const std::vector& terminalIds) -{ - terminalIds_ = terminalIds; - for(int dep1 = 0; dep1!= terminalIds.size(); dep1++) { - setParameter("TerminalIds."+ std::to_string(dep1), terminalIds.at(dep1)); - } +RemoveTerminalsRequest::~RemoveTerminalsRequest() {} + +std::vector RemoveTerminalsRequest::getTerminalIds() const { + return terminalIds_; } -std::string RemoveTerminalsRequest::getShowLog()const -{ - return showLog_; +void RemoveTerminalsRequest::setTerminalIds(const std::vector &terminalIds) { + terminalIds_ = terminalIds; } -void RemoveTerminalsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string RemoveTerminalsRequest::getShowLog() const { + return showLog_; } -long RemoveTerminalsRequest::getOwnerId()const -{ - return ownerId_; +void RemoveTerminalsRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void RemoveTerminalsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveTerminalsRequest::getOwnerId() const { + return ownerId_; } -std::string RemoveTerminalsRequest::getAppId()const -{ - return appId_; +void RemoveTerminalsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RemoveTerminalsRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string RemoveTerminalsRequest::getAppId() const { + return appId_; } -std::string RemoveTerminalsRequest::getChannelId()const -{ - return channelId_; +void RemoveTerminalsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void RemoveTerminalsRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string RemoveTerminalsRequest::getChannelId() const { + return channelId_; +} + +void RemoveTerminalsRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/RemoveTerminalsResult.cc b/rtc/src/model/RemoveTerminalsResult.cc index 92fce5c7c..b2a2e64e7 100644 --- a/rtc/src/model/RemoveTerminalsResult.cc +++ b/rtc/src/model/RemoveTerminalsResult.cc @@ -43,12 +43,12 @@ void RemoveTerminalsResult::parse(const std::string &payload) for (auto valueTerminalsTerminal : allTerminalsNode) { Terminal terminalsObject; - if(!valueTerminalsTerminal["Id"].isNull()) - terminalsObject.id = valueTerminalsTerminal["Id"].asString(); if(!valueTerminalsTerminal["Code"].isNull()) terminalsObject.code = std::stoi(valueTerminalsTerminal["Code"].asString()); if(!valueTerminalsTerminal["Message"].isNull()) terminalsObject.message = valueTerminalsTerminal["Message"].asString(); + if(!valueTerminalsTerminal["Id"].isNull()) + terminalsObject.id = valueTerminalsTerminal["Id"].asString(); terminals_.push_back(terminalsObject); } diff --git a/rtc/src/model/SetChannelPropertyRequest.cc b/rtc/src/model/SetChannelPropertyRequest.cc deleted file mode 100644 index 5d3a25eba..000000000 --- a/rtc/src/model/SetChannelPropertyRequest.cc +++ /dev/null @@ -1,128 +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::SetChannelPropertyRequest; - -SetChannelPropertyRequest::SetChannelPropertyRequest() : - RpcServiceRequest("rtc", "2018-01-11", "SetChannelProperty") -{ - setMethod(HttpRequest::Method::Post); -} - -SetChannelPropertyRequest::~SetChannelPropertyRequest() -{} - -int SetChannelPropertyRequest::getStartTime()const -{ - return startTime_; -} - -void SetChannelPropertyRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); -} - -int SetChannelPropertyRequest::getMaxUserNum()const -{ - return maxUserNum_; -} - -void SetChannelPropertyRequest::setMaxUserNum(int maxUserNum) -{ - maxUserNum_ = maxUserNum; - setParameter("MaxUserNum", std::to_string(maxUserNum)); -} - -int SetChannelPropertyRequest::getDuration()const -{ - return duration_; -} - -void SetChannelPropertyRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); -} - -std::string SetChannelPropertyRequest::getShowLog()const -{ - return showLog_; -} - -void SetChannelPropertyRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::string SetChannelPropertyRequest::getTopics()const -{ - return topics_; -} - -void SetChannelPropertyRequest::setTopics(const std::string& topics) -{ - topics_ = topics; - setParameter("Topics", topics); -} - -long SetChannelPropertyRequest::getOwnerId()const -{ - return ownerId_; -} - -void SetChannelPropertyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string SetChannelPropertyRequest::getPriority()const -{ - return priority_; -} - -void SetChannelPropertyRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); -} - -std::string SetChannelPropertyRequest::getAppId()const -{ - return appId_; -} - -void SetChannelPropertyRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string SetChannelPropertyRequest::getChannelId()const -{ - return channelId_; -} - -void SetChannelPropertyRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/SetChannelPropertyResult.cc b/rtc/src/model/SetChannelPropertyResult.cc deleted file mode 100644 index 593bf63b2..000000000 --- a/rtc/src/model/SetChannelPropertyResult.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; - -SetChannelPropertyResult::SetChannelPropertyResult() : - ServiceResult() -{} - -SetChannelPropertyResult::SetChannelPropertyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetChannelPropertyResult::~SetChannelPropertyResult() -{} - -void SetChannelPropertyResult::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/StartMPUTaskRequest.cc b/rtc/src/model/StartMPUTaskRequest.cc index 9e2ca587f..92de3de85 100644 --- a/rtc/src/model/StartMPUTaskRequest.cc +++ b/rtc/src/model/StartMPUTaskRequest.cc @@ -1,355 +1,371 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::StartMPUTaskRequest; - -StartMPUTaskRequest::StartMPUTaskRequest() : - RpcServiceRequest("rtc", "2018-01-11", "StartMPUTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StartMPUTaskRequest::~StartMPUTaskRequest() -{} - -int StartMPUTaskRequest::getPayloadType()const -{ - return payloadType_; + */ + +#include + +using AlibabaCloud::Rtc::Model::StartMPUTaskRequest; + +StartMPUTaskRequest::StartMPUTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "StartMPUTask") { + setMethod(HttpRequest::Method::Post); } -void StartMPUTaskRequest::setPayloadType(int payloadType) -{ - payloadType_ = payloadType; - setParameter("PayloadType", std::to_string(payloadType)); +StartMPUTaskRequest::~StartMPUTaskRequest() {} + +int StartMPUTaskRequest::getPayloadType() const { + return payloadType_; } -std::vector StartMPUTaskRequest::getUserPanes()const -{ - return userPanes_; +void StartMPUTaskRequest::setPayloadType(int payloadType) { + payloadType_ = payloadType; + setParameter(std::string("PayloadType"), std::to_string(payloadType)); } -void StartMPUTaskRequest::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::vector StartMPUTaskRequest::getUserPanes() const { + return userPanes_; } -int StartMPUTaskRequest::getBackgroundColor()const -{ - return backgroundColor_; +void StartMPUTaskRequest::setUserPanes(const std::vector &userPanes) { + userPanes_ = userPanes; + for(int dep1 = 0; dep1 != userPanes.size(); dep1++) { + auto userPanesObj = userPanes.at(dep1); + std::string userPanesObjStr = std::string("UserPanes") + "." + std::to_string(dep1 + 1); + 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 + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + } + setParameter(userPanesObjStr + ".SegmentType", std::to_string(userPanesObj.segmentType)); + setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); + 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 + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + } + setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); + } } -void StartMPUTaskRequest::setBackgroundColor(int backgroundColor) -{ - backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); +int StartMPUTaskRequest::getBackgroundColor() const { + return backgroundColor_; } -int StartMPUTaskRequest::getReportVad()const -{ - return reportVad_; +void StartMPUTaskRequest::setBackgroundColor(int backgroundColor) { + backgroundColor_ = backgroundColor; + setParameter(std::string("BackgroundColor"), std::to_string(backgroundColor)); } -void StartMPUTaskRequest::setReportVad(int reportVad) -{ - reportVad_ = reportVad; - setParameter("ReportVad", std::to_string(reportVad)); +int StartMPUTaskRequest::getReportVad() const { + return reportVad_; } -std::string StartMPUTaskRequest::getSourceType()const -{ - return sourceType_; +void StartMPUTaskRequest::setReportVad(int reportVad) { + reportVad_ = reportVad; + setParameter(std::string("ReportVad"), std::to_string(reportVad)); } -void StartMPUTaskRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string StartMPUTaskRequest::getSourceType() const { + return sourceType_; } -std::string StartMPUTaskRequest::getTaskId()const -{ - return taskId_; +void StartMPUTaskRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void StartMPUTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string StartMPUTaskRequest::getTaskId() const { + return taskId_; } -std::vector StartMPUTaskRequest::getClockWidgets()const -{ - return clockWidgets_; +void StartMPUTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void StartMPUTaskRequest::setClockWidgets(const std::vector& clockWidgets) -{ - clockWidgets_ = clockWidgets; - for(int dep1 = 0; dep1!= clockWidgets.size(); dep1++) { - auto clockWidgetsObj = clockWidgets.at(dep1); - std::string clockWidgetsObjStr = "ClockWidgets." + std::to_string(dep1 + 1); - setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); - setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); - setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); - setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); - setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); - setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); - } +std::vector StartMPUTaskRequest::getClockWidgets() const { + return clockWidgets_; } -std::string StartMPUTaskRequest::getShowLog()const -{ - return showLog_; +void StartMPUTaskRequest::setClockWidgets(const std::vector &clockWidgets) { + clockWidgets_ = clockWidgets; + for(int dep1 = 0; dep1 != clockWidgets.size(); dep1++) { + auto clockWidgetsObj = clockWidgets.at(dep1); + std::string clockWidgetsObjStr = std::string("ClockWidgets") + "." + std::to_string(dep1 + 1); + setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); + setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); + setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); + setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); + setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); + setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); + } } -void StartMPUTaskRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string StartMPUTaskRequest::getShowLog() const { + return showLog_; } -long StartMPUTaskRequest::getVadInterval()const -{ - return vadInterval_; +void StartMPUTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void StartMPUTaskRequest::setVadInterval(long vadInterval) -{ - vadInterval_ = vadInterval; - setParameter("VadInterval", std::to_string(vadInterval)); +std::vector StartMPUTaskRequest::getUnsubSpecCameraUsers() const { + return unsubSpecCameraUsers_; } -std::vector StartMPUTaskRequest::getWatermarks()const -{ - return watermarks_; +void StartMPUTaskRequest::setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers) { + unsubSpecCameraUsers_ = unsubSpecCameraUsers; } -void StartMPUTaskRequest::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)); - } +int StartMPUTaskRequest::getTaskType() const { + return taskType_; } -long StartMPUTaskRequest::getOwnerId()const -{ - return ownerId_; +void StartMPUTaskRequest::setTaskType(int taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), std::to_string(taskType)); } -void StartMPUTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::vector StartMPUTaskRequest::getUnsubSpecAudioUsers() const { + return unsubSpecAudioUsers_; } -int StartMPUTaskRequest::getMediaEncode()const -{ - return mediaEncode_; +void StartMPUTaskRequest::setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers) { + unsubSpecAudioUsers_ = unsubSpecAudioUsers; } -void StartMPUTaskRequest::setMediaEncode(int mediaEncode) -{ - mediaEncode_ = mediaEncode; - setParameter("MediaEncode", std::to_string(mediaEncode)); +long StartMPUTaskRequest::getVadInterval() const { + return vadInterval_; } -int StartMPUTaskRequest::getRtpExtInfo()const -{ - return rtpExtInfo_; +void StartMPUTaskRequest::setVadInterval(long vadInterval) { + vadInterval_ = vadInterval; + setParameter(std::string("VadInterval"), std::to_string(vadInterval)); } -void StartMPUTaskRequest::setRtpExtInfo(int rtpExtInfo) -{ - rtpExtInfo_ = rtpExtInfo; - setParameter("RtpExtInfo", std::to_string(rtpExtInfo)); +std::vector StartMPUTaskRequest::getWatermarks() const { + return watermarks_; } -int StartMPUTaskRequest::getCropMode()const -{ - return cropMode_; +void StartMPUTaskRequest::setWatermarks(const std::vector &watermarks) { + watermarks_ = watermarks; + for(int dep1 = 0; dep1 != watermarks.size(); dep1++) { + auto watermarksObj = watermarks.at(dep1); + std::string watermarksObjStr = std::string("Watermarks") + "." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + } } -void StartMPUTaskRequest::setCropMode(int cropMode) -{ - cropMode_ = cropMode; - setParameter("CropMode", std::to_string(cropMode)); +long StartMPUTaskRequest::getOwnerId() const { + return ownerId_; } -std::string StartMPUTaskRequest::getTaskProfile()const -{ - return taskProfile_; +void StartMPUTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StartMPUTaskRequest::setTaskProfile(const std::string& taskProfile) -{ - taskProfile_ = taskProfile; - setParameter("TaskProfile", taskProfile); +std::vector StartMPUTaskRequest::getSubSpecAudioUsers() const { + return subSpecAudioUsers_; } -std::vector StartMPUTaskRequest::getLayoutIds()const -{ - return layoutIds_; +void StartMPUTaskRequest::setSubSpecAudioUsers(const std::vector &subSpecAudioUsers) { + subSpecAudioUsers_ = subSpecAudioUsers; } -void StartMPUTaskRequest::setLayoutIds(const std::vector& layoutIds) -{ - layoutIds_ = layoutIds; - for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) { - setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1))); - } +int StartMPUTaskRequest::getMediaEncode() const { + return mediaEncode_; } -std::string StartMPUTaskRequest::getStreamURL()const -{ - return streamURL_; +void StartMPUTaskRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); } -void StartMPUTaskRequest::setStreamURL(const std::string& streamURL) -{ - streamURL_ = streamURL; - setParameter("StreamURL", streamURL); +StartMPUTaskRequest::EnhancedParam StartMPUTaskRequest::getEnhancedParam() const { + return enhancedParam_; } -int StartMPUTaskRequest::getStreamType()const -{ - return streamType_; +void StartMPUTaskRequest::setEnhancedParam(const StartMPUTaskRequest::EnhancedParam &enhancedParam) { + enhancedParam_ = enhancedParam; + setBodyParameter(std::string("EnhancedParam") + ".EnablePortraitSegmentation", enhancedParam.enablePortraitSegmentation ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableVirtualConference", enhancedParam.enableVirtualConference ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableCartoonPortrait", enhancedParam.enableCartoonPortrait ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableVoiceChanger", enhancedParam.enableVoiceChanger ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableUserPaneBackground", enhancedParam.enableUserPaneBackground ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".BackgroundPath", enhancedParam.backgroundPath); } -void StartMPUTaskRequest::setStreamType(int streamType) -{ - streamType_ = streamType; - setParameter("StreamType", std::to_string(streamType)); +int StartMPUTaskRequest::getRtpExtInfo() const { + return rtpExtInfo_; } -std::vector StartMPUTaskRequest::getSubSpecUsers()const -{ - return subSpecUsers_; +void StartMPUTaskRequest::setRtpExtInfo(int rtpExtInfo) { + rtpExtInfo_ = rtpExtInfo; + setParameter(std::string("RtpExtInfo"), std::to_string(rtpExtInfo)); } -void StartMPUTaskRequest::setSubSpecUsers(const std::vector& subSpecUsers) -{ - subSpecUsers_ = subSpecUsers; - for(int dep1 = 0; dep1!= subSpecUsers.size(); dep1++) { - setParameter("SubSpecUsers."+ std::to_string(dep1), subSpecUsers.at(dep1)); - } +int StartMPUTaskRequest::getCropMode() const { + return cropMode_; } -std::string StartMPUTaskRequest::getAppId()const -{ - return appId_; +void StartMPUTaskRequest::setCropMode(int cropMode) { + cropMode_ = cropMode; + setParameter(std::string("CropMode"), std::to_string(cropMode)); } -void StartMPUTaskRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::vector StartMPUTaskRequest::getSubSpecCameraUsers() const { + return subSpecCameraUsers_; } -std::vector StartMPUTaskRequest::getBackgrounds()const -{ - return backgrounds_; +void StartMPUTaskRequest::setSubSpecCameraUsers(const std::vector &subSpecCameraUsers) { + subSpecCameraUsers_ = subSpecCameraUsers; } -void StartMPUTaskRequest::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 StartMPUTaskRequest::getTaskProfile() const { + return taskProfile_; } -long StartMPUTaskRequest::getTimeStampRef()const -{ - return timeStampRef_; +void StartMPUTaskRequest::setTaskProfile(const std::string &taskProfile) { + taskProfile_ = taskProfile; + setParameter(std::string("TaskProfile"), taskProfile); } -void StartMPUTaskRequest::setTimeStampRef(long timeStampRef) -{ - timeStampRef_ = timeStampRef; - setParameter("TimeStampRef", std::to_string(timeStampRef)); +std::vector StartMPUTaskRequest::getLayoutIds() const { + return layoutIds_; } -int StartMPUTaskRequest::getMixMode()const -{ - return mixMode_; +void StartMPUTaskRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; } -void StartMPUTaskRequest::setMixMode(int mixMode) -{ - mixMode_ = mixMode; - setParameter("MixMode", std::to_string(mixMode)); +std::string StartMPUTaskRequest::getStreamURL() const { + return streamURL_; } -std::string StartMPUTaskRequest::getChannelId()const -{ - return channelId_; +void StartMPUTaskRequest::setStreamURL(const std::string &streamURL) { + streamURL_ = streamURL; + setParameter(std::string("StreamURL"), streamURL); } -void StartMPUTaskRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +int StartMPUTaskRequest::getStreamType() const { + return streamType_; +} + +void StartMPUTaskRequest::setStreamType(int streamType) { + streamType_ = streamType; + setParameter(std::string("StreamType"), std::to_string(streamType)); +} + +std::vector StartMPUTaskRequest::getUnsubSpecShareScreenUsers() const { + return unsubSpecShareScreenUsers_; +} + +void StartMPUTaskRequest::setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers) { + unsubSpecShareScreenUsers_ = unsubSpecShareScreenUsers; +} + +std::vector StartMPUTaskRequest::getSubSpecShareScreenUsers() const { + return subSpecShareScreenUsers_; +} + +void StartMPUTaskRequest::setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers) { + subSpecShareScreenUsers_ = subSpecShareScreenUsers; +} + +std::vector StartMPUTaskRequest::getSubSpecUsers() const { + return subSpecUsers_; +} + +void StartMPUTaskRequest::setSubSpecUsers(const std::vector &subSpecUsers) { + subSpecUsers_ = subSpecUsers; +} + +std::string StartMPUTaskRequest::getAppId() const { + return appId_; +} + +void StartMPUTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::vector StartMPUTaskRequest::getBackgrounds() const { + return backgrounds_; +} + +void StartMPUTaskRequest::setBackgrounds(const std::vector &backgrounds) { + backgrounds_ = backgrounds; + for(int dep1 = 0; dep1 != backgrounds.size(); dep1++) { + auto backgroundsObj = backgrounds.at(dep1); + std::string backgroundsObjStr = std::string("Backgrounds") + "." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + } +} + +long StartMPUTaskRequest::getTimeStampRef() const { + return timeStampRef_; +} + +void StartMPUTaskRequest::setTimeStampRef(long timeStampRef) { + timeStampRef_ = timeStampRef; + setParameter(std::string("TimeStampRef"), std::to_string(timeStampRef)); +} + +int StartMPUTaskRequest::getMixMode() const { + return mixMode_; +} + +void StartMPUTaskRequest::setMixMode(int mixMode) { + mixMode_ = mixMode; + setParameter(std::string("MixMode"), std::to_string(mixMode)); +} + +std::string StartMPUTaskRequest::getChannelId() const { + return channelId_; +} + +void StartMPUTaskRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/StartRecordTaskRequest.cc b/rtc/src/model/StartRecordTaskRequest.cc index 41ed8e5ca..cd34ea8a7 100644 --- a/rtc/src/model/StartRecordTaskRequest.cc +++ b/rtc/src/model/StartRecordTaskRequest.cc @@ -1,147 +1,236 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::StartRecordTaskRequest; - -StartRecordTaskRequest::StartRecordTaskRequest() : - RpcServiceRequest("rtc", "2018-01-11", "StartRecordTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StartRecordTaskRequest::~StartRecordTaskRequest() -{} - -std::vector StartRecordTaskRequest::getUserPanes()const -{ - return userPanes_; + */ + +#include + +using AlibabaCloud::Rtc::Model::StartRecordTaskRequest; + +StartRecordTaskRequest::StartRecordTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "StartRecordTask") { + setMethod(HttpRequest::Method::Post); } -void StartRecordTaskRequest::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)); - } - } +StartRecordTaskRequest::~StartRecordTaskRequest() {} + +std::vector StartRecordTaskRequest::getUserPanes() const { + return userPanes_; } -std::string StartRecordTaskRequest::getTaskId()const -{ - return taskId_; +void StartRecordTaskRequest::setUserPanes(const std::vector &userPanes) { + userPanes_ = userPanes; + for(int dep1 = 0; dep1 != userPanes.size(); dep1++) { + auto userPanesObj = userPanes.at(dep1); + std::string userPanesObjStr = std::string("UserPanes") + "." + std::to_string(dep1 + 1); + 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 + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + } + setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); + 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 + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + } + setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); + } } -void StartRecordTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +long StartRecordTaskRequest::getCropMode() const { + return cropMode_; } -std::string StartRecordTaskRequest::getShowLog()const -{ - return showLog_; +void StartRecordTaskRequest::setCropMode(long cropMode) { + cropMode_ = cropMode; + setParameter(std::string("CropMode"), std::to_string(cropMode)); } -void StartRecordTaskRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::vector StartRecordTaskRequest::getSubSpecCameraUsers() const { + return subSpecCameraUsers_; } -long StartRecordTaskRequest::getOwnerId()const -{ - return ownerId_; +void StartRecordTaskRequest::setSubSpecCameraUsers(const std::vector &subSpecCameraUsers) { + subSpecCameraUsers_ = subSpecCameraUsers; } -void StartRecordTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string StartRecordTaskRequest::getSourceType() const { + return sourceType_; } -std::string StartRecordTaskRequest::getTemplateId()const -{ - return templateId_; +void StartRecordTaskRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void StartRecordTaskRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string StartRecordTaskRequest::getTaskProfile() const { + return taskProfile_; } -std::vector StartRecordTaskRequest::getSubSpecUsers()const -{ - return subSpecUsers_; +void StartRecordTaskRequest::setTaskProfile(const std::string &taskProfile) { + taskProfile_ = taskProfile; + setParameter(std::string("TaskProfile"), taskProfile); } -void StartRecordTaskRequest::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::vector StartRecordTaskRequest::getLayoutIds() const { + return layoutIds_; } -std::string StartRecordTaskRequest::getAppId()const -{ - return appId_; +void StartRecordTaskRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; } -void StartRecordTaskRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string StartRecordTaskRequest::getTaskId() const { + return taskId_; } -std::string StartRecordTaskRequest::getChannelId()const -{ - return channelId_; +void StartRecordTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void StartRecordTaskRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string StartRecordTaskRequest::getShowLog() const { + return showLog_; +} + +void StartRecordTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +std::vector StartRecordTaskRequest::getUnsubSpecCameraUsers() const { + return unsubSpecCameraUsers_; +} + +void StartRecordTaskRequest::setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers) { + unsubSpecCameraUsers_ = unsubSpecCameraUsers; +} + +int StartRecordTaskRequest::getStreamType() const { + return streamType_; +} + +void StartRecordTaskRequest::setStreamType(int streamType) { + streamType_ = streamType; + setParameter(std::string("StreamType"), std::to_string(streamType)); +} + +std::vector StartRecordTaskRequest::getUnsubSpecAudioUsers() const { + return unsubSpecAudioUsers_; +} + +void StartRecordTaskRequest::setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers) { + unsubSpecAudioUsers_ = unsubSpecAudioUsers; +} + +std::vector StartRecordTaskRequest::getUnsubSpecShareScreenUsers() const { + return unsubSpecShareScreenUsers_; +} + +void StartRecordTaskRequest::setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers) { + unsubSpecShareScreenUsers_ = unsubSpecShareScreenUsers; +} + +long StartRecordTaskRequest::getOwnerId() const { + return ownerId_; +} + +void StartRecordTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string StartRecordTaskRequest::getTemplateId() const { + return templateId_; +} + +void StartRecordTaskRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +std::vector StartRecordTaskRequest::getSubSpecAudioUsers() const { + return subSpecAudioUsers_; +} + +void StartRecordTaskRequest::setSubSpecAudioUsers(const std::vector &subSpecAudioUsers) { + subSpecAudioUsers_ = subSpecAudioUsers; +} + +std::vector StartRecordTaskRequest::getSubSpecShareScreenUsers() const { + return subSpecShareScreenUsers_; +} + +void StartRecordTaskRequest::setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers) { + subSpecShareScreenUsers_ = subSpecShareScreenUsers; +} + +std::vector StartRecordTaskRequest::getSubSpecUsers() const { + return subSpecUsers_; +} + +void StartRecordTaskRequest::setSubSpecUsers(const std::vector &subSpecUsers) { + subSpecUsers_ = subSpecUsers; +} + +std::string StartRecordTaskRequest::getAppId() const { + return appId_; +} + +void StartRecordTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +int StartRecordTaskRequest::getMediaEncode() const { + return mediaEncode_; +} + +void StartRecordTaskRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); +} + +int StartRecordTaskRequest::getMixMode() const { + return mixMode_; +} + +void StartRecordTaskRequest::setMixMode(int mixMode) { + mixMode_ = mixMode; + setParameter(std::string("MixMode"), std::to_string(mixMode)); +} + +std::string StartRecordTaskRequest::getChannelId() const { + return channelId_; +} + +void StartRecordTaskRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/StopChannelUserPublishRequest.cc b/rtc/src/model/StopChannelUserPublishRequest.cc index fa5160b8a..9768c8402 100644 --- a/rtc/src/model/StopChannelUserPublishRequest.cc +++ b/rtc/src/model/StopChannelUserPublishRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::StopChannelUserPublishRequest; - -StopChannelUserPublishRequest::StopChannelUserPublishRequest() : - RpcServiceRequest("rtc", "2018-01-11", "StopChannelUserPublish") -{ - setMethod(HttpRequest::Method::Post); -} - -StopChannelUserPublishRequest::~StopChannelUserPublishRequest() -{} - -std::string StopChannelUserPublishRequest::getUserId()const -{ - return userId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::StopChannelUserPublishRequest; + +StopChannelUserPublishRequest::StopChannelUserPublishRequest() + : RpcServiceRequest("rtc", "2018-01-11", "StopChannelUserPublish") { + setMethod(HttpRequest::Method::Post); } -void StopChannelUserPublishRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +StopChannelUserPublishRequest::~StopChannelUserPublishRequest() {} + +std::string StopChannelUserPublishRequest::getUserId() const { + return userId_; } -std::string StopChannelUserPublishRequest::getShowLog()const -{ - return showLog_; +void StopChannelUserPublishRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void StopChannelUserPublishRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string StopChannelUserPublishRequest::getShowLog() const { + return showLog_; } -long StopChannelUserPublishRequest::getOwnerId()const -{ - return ownerId_; +void StopChannelUserPublishRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void StopChannelUserPublishRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopChannelUserPublishRequest::getOwnerId() const { + return ownerId_; } -std::string StopChannelUserPublishRequest::getAppId()const -{ - return appId_; +void StopChannelUserPublishRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopChannelUserPublishRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string StopChannelUserPublishRequest::getAppId() const { + return appId_; } -std::string StopChannelUserPublishRequest::getChannelId()const -{ - return channelId_; +void StopChannelUserPublishRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } -void StopChannelUserPublishRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::string StopChannelUserPublishRequest::getChannelId() const { + return channelId_; +} + +void StopChannelUserPublishRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/StopMPUTaskRequest.cc b/rtc/src/model/StopMPUTaskRequest.cc index 9480afe18..e65288eb9 100644 --- a/rtc/src/model/StopMPUTaskRequest.cc +++ b/rtc/src/model/StopMPUTaskRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::StopMPUTaskRequest; - -StopMPUTaskRequest::StopMPUTaskRequest() : - RpcServiceRequest("rtc", "2018-01-11", "StopMPUTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StopMPUTaskRequest::~StopMPUTaskRequest() -{} - -std::string StopMPUTaskRequest::getTaskId()const -{ - return taskId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::StopMPUTaskRequest; + +StopMPUTaskRequest::StopMPUTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "StopMPUTask") { + setMethod(HttpRequest::Method::Post); } -void StopMPUTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +StopMPUTaskRequest::~StopMPUTaskRequest() {} + +std::string StopMPUTaskRequest::getTaskId() const { + return taskId_; } -std::string StopMPUTaskRequest::getShowLog()const -{ - return showLog_; +void StopMPUTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void StopMPUTaskRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string StopMPUTaskRequest::getShowLog() const { + return showLog_; } -long StopMPUTaskRequest::getOwnerId()const -{ - return ownerId_; +void StopMPUTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void StopMPUTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopMPUTaskRequest::getOwnerId() const { + return ownerId_; } -std::string StopMPUTaskRequest::getAppId()const -{ - return appId_; +void StopMPUTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopMPUTaskRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string StopMPUTaskRequest::getAppId() const { + return appId_; +} + +void StopMPUTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/StopRecordTaskRequest.cc b/rtc/src/model/StopRecordTaskRequest.cc index 2fba614a1..2ed82122f 100644 --- a/rtc/src/model/StopRecordTaskRequest.cc +++ b/rtc/src/model/StopRecordTaskRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Rtc::Model::StopRecordTaskRequest; - -StopRecordTaskRequest::StopRecordTaskRequest() : - RpcServiceRequest("rtc", "2018-01-11", "StopRecordTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StopRecordTaskRequest::~StopRecordTaskRequest() -{} - -std::string StopRecordTaskRequest::getTaskId()const -{ - return taskId_; + */ + +#include + +using AlibabaCloud::Rtc::Model::StopRecordTaskRequest; + +StopRecordTaskRequest::StopRecordTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "StopRecordTask") { + setMethod(HttpRequest::Method::Post); } -void StopRecordTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +StopRecordTaskRequest::~StopRecordTaskRequest() {} + +std::string StopRecordTaskRequest::getTaskId() const { + return taskId_; } -std::string StopRecordTaskRequest::getShowLog()const -{ - return showLog_; +void StopRecordTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void StopRecordTaskRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string StopRecordTaskRequest::getShowLog() const { + return showLog_; } -long StopRecordTaskRequest::getOwnerId()const -{ - return ownerId_; +void StopRecordTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void StopRecordTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopRecordTaskRequest::getOwnerId() const { + return ownerId_; } -std::string StopRecordTaskRequest::getAppId()const -{ - return appId_; +void StopRecordTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopRecordTaskRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::string StopRecordTaskRequest::getAppId() const { + return appId_; +} + +void StopRecordTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); } diff --git a/rtc/src/model/UnmuteAudioAllRequest.cc b/rtc/src/model/UnmuteAudioAllRequest.cc deleted file mode 100644 index 364be5cef..000000000 --- a/rtc/src/model/UnmuteAudioAllRequest.cc +++ /dev/null @@ -1,84 +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::UnmuteAudioAllRequest; - -UnmuteAudioAllRequest::UnmuteAudioAllRequest() : - RpcServiceRequest("rtc", "2018-01-11", "UnmuteAudioAll") -{ - setMethod(HttpRequest::Method::Post); -} - -UnmuteAudioAllRequest::~UnmuteAudioAllRequest() -{} - -std::string UnmuteAudioAllRequest::getConferenceId()const -{ - return conferenceId_; -} - -void UnmuteAudioAllRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string UnmuteAudioAllRequest::getShowLog()const -{ - return showLog_; -} - -void UnmuteAudioAllRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long UnmuteAudioAllRequest::getOwnerId()const -{ - return ownerId_; -} - -void UnmuteAudioAllRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UnmuteAudioAllRequest::getParticipantId()const -{ - return participantId_; -} - -void UnmuteAudioAllRequest::setParticipantId(const std::string& participantId) -{ - participantId_ = participantId; - setParameter("ParticipantId", participantId); -} - -std::string UnmuteAudioAllRequest::getAppId()const -{ - return appId_; -} - -void UnmuteAudioAllRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/UnmuteAudioAllResult.cc b/rtc/src/model/UnmuteAudioAllResult.cc deleted file mode 100644 index 1cb8ba659..000000000 --- a/rtc/src/model/UnmuteAudioAllResult.cc +++ /dev/null @@ -1,68 +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; - -UnmuteAudioAllResult::UnmuteAudioAllResult() : - ServiceResult() -{} - -UnmuteAudioAllResult::UnmuteAudioAllResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnmuteAudioAllResult::~UnmuteAudioAllResult() -{} - -void UnmuteAudioAllResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allParticipantsNode = value["Participants"]["Participant"]; - for (auto valueParticipantsParticipant : allParticipantsNode) - { - Participant participantsObject; - if(!valueParticipantsParticipant["Id"].isNull()) - participantsObject.id = valueParticipantsParticipant["Id"].asString(); - if(!valueParticipantsParticipant["Code"].isNull()) - participantsObject.code = valueParticipantsParticipant["Code"].asString(); - if(!valueParticipantsParticipant["Message"].isNull()) - participantsObject.message = valueParticipantsParticipant["Message"].asString(); - participants_.push_back(participantsObject); - } - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -std::string UnmuteAudioAllResult::getConferenceId()const -{ - return conferenceId_; -} - -std::vector UnmuteAudioAllResult::getParticipants()const -{ - return participants_; -} - diff --git a/rtc/src/model/UnmuteAudioRequest.cc b/rtc/src/model/UnmuteAudioRequest.cc deleted file mode 100644 index 6bba23b07..000000000 --- a/rtc/src/model/UnmuteAudioRequest.cc +++ /dev/null @@ -1,86 +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::UnmuteAudioRequest; - -UnmuteAudioRequest::UnmuteAudioRequest() : - RpcServiceRequest("rtc", "2018-01-11", "UnmuteAudio") -{ - setMethod(HttpRequest::Method::Post); -} - -UnmuteAudioRequest::~UnmuteAudioRequest() -{} - -std::vector UnmuteAudioRequest::getParticipantIds()const -{ - return participantIds_; -} - -void UnmuteAudioRequest::setParticipantIds(const std::vector& participantIds) -{ - participantIds_ = participantIds; - for(int dep1 = 0; dep1!= participantIds.size(); dep1++) { - setParameter("ParticipantIds."+ std::to_string(dep1), participantIds.at(dep1)); - } -} - -std::string UnmuteAudioRequest::getConferenceId()const -{ - return conferenceId_; -} - -void UnmuteAudioRequest::setConferenceId(const std::string& conferenceId) -{ - conferenceId_ = conferenceId; - setParameter("ConferenceId", conferenceId); -} - -std::string UnmuteAudioRequest::getShowLog()const -{ - return showLog_; -} - -void UnmuteAudioRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long UnmuteAudioRequest::getOwnerId()const -{ - return ownerId_; -} - -void UnmuteAudioRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UnmuteAudioRequest::getAppId()const -{ - return appId_; -} - -void UnmuteAudioRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - diff --git a/rtc/src/model/UnmuteAudioResult.cc b/rtc/src/model/UnmuteAudioResult.cc deleted file mode 100644 index c527cea59..000000000 --- a/rtc/src/model/UnmuteAudioResult.cc +++ /dev/null @@ -1,68 +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; - -UnmuteAudioResult::UnmuteAudioResult() : - ServiceResult() -{} - -UnmuteAudioResult::UnmuteAudioResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnmuteAudioResult::~UnmuteAudioResult() -{} - -void UnmuteAudioResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allParticipantsNode = value["Participants"]["Participant"]; - for (auto valueParticipantsParticipant : allParticipantsNode) - { - Participant participantsObject; - if(!valueParticipantsParticipant["Id"].isNull()) - participantsObject.id = valueParticipantsParticipant["Id"].asString(); - if(!valueParticipantsParticipant["Code"].isNull()) - participantsObject.code = valueParticipantsParticipant["Code"].asString(); - if(!valueParticipantsParticipant["Message"].isNull()) - participantsObject.message = valueParticipantsParticipant["Message"].asString(); - participants_.push_back(participantsObject); - } - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); - -} - -std::string UnmuteAudioResult::getConferenceId()const -{ - return conferenceId_; -} - -std::vector UnmuteAudioResult::getParticipants()const -{ - return participants_; -} - diff --git a/rtc/src/model/UpdateAutoLiveStreamRuleRequest.cc b/rtc/src/model/UpdateAutoLiveStreamRuleRequest.cc new file mode 100644 index 000000000..ba5126eb1 --- /dev/null +++ b/rtc/src/model/UpdateAutoLiveStreamRuleRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UpdateAutoLiveStreamRuleRequest; + +UpdateAutoLiveStreamRuleRequest::UpdateAutoLiveStreamRuleRequest() + : RpcServiceRequest("rtc", "2018-01-11", "UpdateAutoLiveStreamRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAutoLiveStreamRuleRequest::~UpdateAutoLiveStreamRuleRequest() {} + +std::string UpdateAutoLiveStreamRuleRequest::getRuleName() const { + return ruleName_; +} + +void UpdateAutoLiveStreamRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::vector UpdateAutoLiveStreamRuleRequest::getChannelIdPrefixes() const { + return channelIdPrefixes_; +} + +void UpdateAutoLiveStreamRuleRequest::setChannelIdPrefixes(const std::vector &channelIdPrefixes) { + channelIdPrefixes_ = channelIdPrefixes; +} + +std::string UpdateAutoLiveStreamRuleRequest::getShowLog() const { + return showLog_; +} + +void UpdateAutoLiveStreamRuleRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +std::string UpdateAutoLiveStreamRuleRequest::getPlayDomain() const { + return playDomain_; +} + +void UpdateAutoLiveStreamRuleRequest::setPlayDomain(const std::string &playDomain) { + playDomain_ = playDomain; + setParameter(std::string("PlayDomain"), playDomain); +} + +long UpdateAutoLiveStreamRuleRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateAutoLiveStreamRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateAutoLiveStreamRuleRequest::getAppId() const { + return appId_; +} + +void UpdateAutoLiveStreamRuleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateAutoLiveStreamRuleRequest::getCallBack() const { + return callBack_; +} + +void UpdateAutoLiveStreamRuleRequest::setCallBack(const std::string &callBack) { + callBack_ = callBack; + setParameter(std::string("CallBack"), callBack); +} + +int UpdateAutoLiveStreamRuleRequest::getMediaEncode() const { + return mediaEncode_; +} + +void UpdateAutoLiveStreamRuleRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); +} + +int UpdateAutoLiveStreamRuleRequest::getRuleId() const { + return ruleId_; +} + +void UpdateAutoLiveStreamRuleRequest::setRuleId(int ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + +std::vector UpdateAutoLiveStreamRuleRequest::getChannelIds() const { + return channelIds_; +} + +void UpdateAutoLiveStreamRuleRequest::setChannelIds(const std::vector &channelIds) { + channelIds_ = channelIds; +} + diff --git a/rtc/src/model/ModifyConferenceResult.cc b/rtc/src/model/UpdateAutoLiveStreamRuleResult.cc similarity index 64% rename from rtc/src/model/ModifyConferenceResult.cc rename to rtc/src/model/UpdateAutoLiveStreamRuleResult.cc index 17f2b5060..ac4c0a776 100644 --- a/rtc/src/model/ModifyConferenceResult.cc +++ b/rtc/src/model/UpdateAutoLiveStreamRuleResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -ModifyConferenceResult::ModifyConferenceResult() : +UpdateAutoLiveStreamRuleResult::UpdateAutoLiveStreamRuleResult() : ServiceResult() {} -ModifyConferenceResult::ModifyConferenceResult(const std::string &payload) : +UpdateAutoLiveStreamRuleResult::UpdateAutoLiveStreamRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyConferenceResult::~ModifyConferenceResult() +UpdateAutoLiveStreamRuleResult::~UpdateAutoLiveStreamRuleResult() {} -void ModifyConferenceResult::parse(const std::string &payload) +void UpdateAutoLiveStreamRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ConferenceId"].isNull()) - conferenceId_ = value["ConferenceId"].asString(); + if(!value["RuleId"].isNull()) + ruleId_ = std::stol(value["RuleId"].asString()); } -std::string ModifyConferenceResult::getConferenceId()const +long UpdateAutoLiveStreamRuleResult::getRuleId()const { - return conferenceId_; + return ruleId_; } diff --git a/rtc/src/model/UpdateChannelRequest.cc b/rtc/src/model/UpdateChannelRequest.cc deleted file mode 100644 index f6e68b616..000000000 --- a/rtc/src/model/UpdateChannelRequest.cc +++ /dev/null @@ -1,84 +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::UpdateChannelRequest; - -UpdateChannelRequest::UpdateChannelRequest() : - RpcServiceRequest("rtc", "2018-01-11", "UpdateChannel") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateChannelRequest::~UpdateChannelRequest() -{} - -std::string UpdateChannelRequest::getShowLog()const -{ - return showLog_; -} - -void UpdateChannelRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -long UpdateChannelRequest::getOwnerId()const -{ - return ownerId_; -} - -void UpdateChannelRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UpdateChannelRequest::getNonce()const -{ - return nonce_; -} - -void UpdateChannelRequest::setNonce(const std::string& nonce) -{ - nonce_ = nonce; - setParameter("Nonce", nonce); -} - -std::string UpdateChannelRequest::getAppId()const -{ - return appId_; -} - -void UpdateChannelRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::string UpdateChannelRequest::getChannelId()const -{ - return channelId_; -} - -void UpdateChannelRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); -} - diff --git a/rtc/src/model/UpdateChannelResult.cc b/rtc/src/model/UpdateChannelResult.cc deleted file mode 100644 index e9331a038..000000000 --- a/rtc/src/model/UpdateChannelResult.cc +++ /dev/null @@ -1,58 +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; - -UpdateChannelResult::UpdateChannelResult() : - ServiceResult() -{} - -UpdateChannelResult::UpdateChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateChannelResult::~UpdateChannelResult() -{} - -void UpdateChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Nonce"].isNull()) - nonce_ = value["Nonce"].asString(); - if(!value["Timestamp"].isNull()) - timestamp_ = std::stoi(value["Timestamp"].asString()); - -} - -std::string UpdateChannelResult::getNonce()const -{ - return nonce_; -} - -int UpdateChannelResult::getTimestamp()const -{ - return timestamp_; -} - diff --git a/rtc/src/model/UpdateMPULayoutRequest.cc b/rtc/src/model/UpdateMPULayoutRequest.cc deleted file mode 100644 index 3b3518f43..000000000 --- a/rtc/src/model/UpdateMPULayoutRequest.cc +++ /dev/null @@ -1,210 +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::UpdateMPULayoutRequest; - -UpdateMPULayoutRequest::UpdateMPULayoutRequest() : - RpcServiceRequest("rtc", "2018-01-11", "UpdateMPULayout") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMPULayoutRequest::~UpdateMPULayoutRequest() -{} - -std::vector UpdateMPULayoutRequest::getUserPanes()const -{ - return userPanes_; -} - -void UpdateMPULayoutRequest::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)); - } - } -} - -int UpdateMPULayoutRequest::getBackgroundColor()const -{ - return backgroundColor_; -} - -void UpdateMPULayoutRequest::setBackgroundColor(int backgroundColor) -{ - backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); -} - -int UpdateMPULayoutRequest::getCropMode()const -{ - return cropMode_; -} - -void UpdateMPULayoutRequest::setCropMode(int cropMode) -{ - cropMode_ = cropMode; - setParameter("CropMode", std::to_string(cropMode)); -} - -std::vector UpdateMPULayoutRequest::getLayoutIds()const -{ - return layoutIds_; -} - -void UpdateMPULayoutRequest::setLayoutIds(const std::vector& layoutIds) -{ - layoutIds_ = layoutIds; - for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) { - setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1))); - } -} - -std::string UpdateMPULayoutRequest::getTaskId()const -{ - return taskId_; -} - -void UpdateMPULayoutRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - -std::vector UpdateMPULayoutRequest::getClockWidgets()const -{ - return clockWidgets_; -} - -void UpdateMPULayoutRequest::setClockWidgets(const std::vector& clockWidgets) -{ - clockWidgets_ = clockWidgets; - for(int dep1 = 0; dep1!= clockWidgets.size(); dep1++) { - auto clockWidgetsObj = clockWidgets.at(dep1); - std::string clockWidgetsObjStr = "ClockWidgets." + std::to_string(dep1 + 1); - setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); - setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); - setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); - setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); - setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); - setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); - } -} - -std::string UpdateMPULayoutRequest::getShowLog()const -{ - return showLog_; -} - -void UpdateMPULayoutRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); -} - -std::vector UpdateMPULayoutRequest::getWatermarks()const -{ - return watermarks_; -} - -void UpdateMPULayoutRequest::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 UpdateMPULayoutRequest::getOwnerId()const -{ - return ownerId_; -} - -void UpdateMPULayoutRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UpdateMPULayoutRequest::getAppId()const -{ - return appId_; -} - -void UpdateMPULayoutRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); -} - -std::vector UpdateMPULayoutRequest::getBackgrounds()const -{ - return backgrounds_; -} - -void UpdateMPULayoutRequest::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)); - } -} - diff --git a/rtc/src/model/UpdateMPULayoutResult.cc b/rtc/src/model/UpdateMPULayoutResult.cc deleted file mode 100644 index d53d41a1a..000000000 --- a/rtc/src/model/UpdateMPULayoutResult.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; - -UpdateMPULayoutResult::UpdateMPULayoutResult() : - ServiceResult() -{} - -UpdateMPULayoutResult::UpdateMPULayoutResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMPULayoutResult::~UpdateMPULayoutResult() -{} - -void UpdateMPULayoutResult::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/UpdateMPUTaskRequest.cc b/rtc/src/model/UpdateMPUTaskRequest.cc new file mode 100644 index 000000000..8f594aa49 --- /dev/null +++ b/rtc/src/model/UpdateMPUTaskRequest.cc @@ -0,0 +1,299 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::UpdateMPUTaskRequest; + +UpdateMPUTaskRequest::UpdateMPUTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "UpdateMPUTask") { + setMethod(HttpRequest::Method::Post); +} + +UpdateMPUTaskRequest::~UpdateMPUTaskRequest() {} + +std::vector UpdateMPUTaskRequest::getUserPanes() const { + return userPanes_; +} + +void UpdateMPUTaskRequest::setUserPanes(const std::vector &userPanes) { + userPanes_ = userPanes; + for(int dep1 = 0; dep1 != userPanes.size(); dep1++) { + auto userPanesObj = userPanes.at(dep1); + std::string userPanesObjStr = std::string("UserPanes") + "." + std::to_string(dep1 + 1); + 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 + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + } + setParameter(userPanesObjStr + ".SegmentType", std::to_string(userPanesObj.segmentType)); + setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); + 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 + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + } + setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); + } +} + +int UpdateMPUTaskRequest::getBackgroundColor() const { + return backgroundColor_; +} + +void UpdateMPUTaskRequest::setBackgroundColor(int backgroundColor) { + backgroundColor_ = backgroundColor; + setParameter(std::string("BackgroundColor"), std::to_string(backgroundColor)); +} + +std::string UpdateMPUTaskRequest::getSourceType() const { + return sourceType_; +} + +void UpdateMPUTaskRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string UpdateMPUTaskRequest::getTaskId() const { + return taskId_; +} + +void UpdateMPUTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::vector UpdateMPUTaskRequest::getClockWidgets() const { + return clockWidgets_; +} + +void UpdateMPUTaskRequest::setClockWidgets(const std::vector &clockWidgets) { + clockWidgets_ = clockWidgets; + for(int dep1 = 0; dep1 != clockWidgets.size(); dep1++) { + auto clockWidgetsObj = clockWidgets.at(dep1); + std::string clockWidgetsObjStr = std::string("ClockWidgets") + "." + std::to_string(dep1 + 1); + setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); + setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); + setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); + setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); + setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); + setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); + } +} + +std::string UpdateMPUTaskRequest::getShowLog() const { + return showLog_; +} + +void UpdateMPUTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); +} + +std::vector UpdateMPUTaskRequest::getUnsubSpecCameraUsers() const { + return unsubSpecCameraUsers_; +} + +void UpdateMPUTaskRequest::setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers) { + unsubSpecCameraUsers_ = unsubSpecCameraUsers; +} + +std::vector UpdateMPUTaskRequest::getUnsubSpecAudioUsers() const { + return unsubSpecAudioUsers_; +} + +void UpdateMPUTaskRequest::setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers) { + unsubSpecAudioUsers_ = unsubSpecAudioUsers; +} + +std::vector UpdateMPUTaskRequest::getWatermarks() const { + return watermarks_; +} + +void UpdateMPUTaskRequest::setWatermarks(const std::vector &watermarks) { + watermarks_ = watermarks; + for(int dep1 = 0; dep1 != watermarks.size(); dep1++) { + auto watermarksObj = watermarks.at(dep1); + std::string watermarksObjStr = std::string("Watermarks") + "." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + } +} + +long UpdateMPUTaskRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateMPUTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector UpdateMPUTaskRequest::getSubSpecAudioUsers() const { + return subSpecAudioUsers_; +} + +void UpdateMPUTaskRequest::setSubSpecAudioUsers(const std::vector &subSpecAudioUsers) { + subSpecAudioUsers_ = subSpecAudioUsers; +} + +int UpdateMPUTaskRequest::getMediaEncode() const { + return mediaEncode_; +} + +void UpdateMPUTaskRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); +} + +UpdateMPUTaskRequest::EnhancedParam UpdateMPUTaskRequest::getEnhancedParam() const { + return enhancedParam_; +} + +void UpdateMPUTaskRequest::setEnhancedParam(const UpdateMPUTaskRequest::EnhancedParam &enhancedParam) { + enhancedParam_ = enhancedParam; + setBodyParameter(std::string("EnhancedParam") + ".EnablePortraitSegmentation", enhancedParam.enablePortraitSegmentation ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableVirtualConference", enhancedParam.enableVirtualConference ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableCartoonPortrait", enhancedParam.enableCartoonPortrait ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableVoiceChanger", enhancedParam.enableVoiceChanger ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".EnableUserPaneBackground", enhancedParam.enableUserPaneBackground ? "true" : "false"); + setBodyParameter(std::string("EnhancedParam") + ".BackgroundPath", enhancedParam.backgroundPath); +} + +int UpdateMPUTaskRequest::getCropMode() const { + return cropMode_; +} + +void UpdateMPUTaskRequest::setCropMode(int cropMode) { + cropMode_ = cropMode; + setParameter(std::string("CropMode"), std::to_string(cropMode)); +} + +std::vector UpdateMPUTaskRequest::getSubSpecCameraUsers() const { + return subSpecCameraUsers_; +} + +void UpdateMPUTaskRequest::setSubSpecCameraUsers(const std::vector &subSpecCameraUsers) { + subSpecCameraUsers_ = subSpecCameraUsers; +} + +std::string UpdateMPUTaskRequest::getTaskProfile() const { + return taskProfile_; +} + +void UpdateMPUTaskRequest::setTaskProfile(const std::string &taskProfile) { + taskProfile_ = taskProfile; + setParameter(std::string("TaskProfile"), taskProfile); +} + +std::vector UpdateMPUTaskRequest::getLayoutIds() const { + return layoutIds_; +} + +void UpdateMPUTaskRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; +} + +int UpdateMPUTaskRequest::getStreamType() const { + return streamType_; +} + +void UpdateMPUTaskRequest::setStreamType(int streamType) { + streamType_ = streamType; + setParameter(std::string("StreamType"), std::to_string(streamType)); +} + +std::vector UpdateMPUTaskRequest::getUnsubSpecShareScreenUsers() const { + return unsubSpecShareScreenUsers_; +} + +void UpdateMPUTaskRequest::setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers) { + unsubSpecShareScreenUsers_ = unsubSpecShareScreenUsers; +} + +std::vector UpdateMPUTaskRequest::getSubSpecShareScreenUsers() const { + return subSpecShareScreenUsers_; +} + +void UpdateMPUTaskRequest::setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers) { + subSpecShareScreenUsers_ = subSpecShareScreenUsers; +} + +std::vector UpdateMPUTaskRequest::getSubSpecUsers() const { + return subSpecUsers_; +} + +void UpdateMPUTaskRequest::setSubSpecUsers(const std::vector &subSpecUsers) { + subSpecUsers_ = subSpecUsers; +} + +std::string UpdateMPUTaskRequest::getAppId() const { + return appId_; +} + +void UpdateMPUTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::vector UpdateMPUTaskRequest::getBackgrounds() const { + return backgrounds_; +} + +void UpdateMPUTaskRequest::setBackgrounds(const std::vector &backgrounds) { + backgrounds_ = backgrounds; + for(int dep1 = 0; dep1 != backgrounds.size(); dep1++) { + auto backgroundsObj = backgrounds.at(dep1); + std::string backgroundsObjStr = std::string("Backgrounds") + "." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + } +} + +int UpdateMPUTaskRequest::getMixMode() const { + return mixMode_; +} + +void UpdateMPUTaskRequest::setMixMode(int mixMode) { + mixMode_ = mixMode; + setParameter(std::string("MixMode"), std::to_string(mixMode)); +} + diff --git a/rtc/src/model/EnableMPURuleResult.cc b/rtc/src/model/UpdateMPUTaskResult.cc similarity index 77% rename from rtc/src/model/EnableMPURuleResult.cc rename to rtc/src/model/UpdateMPUTaskResult.cc index a53ff772e..4977e5626 100644 --- a/rtc/src/model/EnableMPURuleResult.cc +++ b/rtc/src/model/UpdateMPUTaskResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Rtc; using namespace AlibabaCloud::Rtc::Model; -EnableMPURuleResult::EnableMPURuleResult() : +UpdateMPUTaskResult::UpdateMPUTaskResult() : ServiceResult() {} -EnableMPURuleResult::EnableMPURuleResult(const std::string &payload) : +UpdateMPUTaskResult::UpdateMPUTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -EnableMPURuleResult::~EnableMPURuleResult() +UpdateMPUTaskResult::~UpdateMPUTaskResult() {} -void EnableMPURuleResult::parse(const std::string &payload) +void UpdateMPUTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/rtc/src/model/UpdateRecordTaskRequest.cc b/rtc/src/model/UpdateRecordTaskRequest.cc index 0c1937b18..a79deda16 100644 --- a/rtc/src/model/UpdateRecordTaskRequest.cc +++ b/rtc/src/model/UpdateRecordTaskRequest.cc @@ -1,147 +1,182 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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_; + */ + +#include + +using AlibabaCloud::Rtc::Model::UpdateRecordTaskRequest; + +UpdateRecordTaskRequest::UpdateRecordTaskRequest() + : RpcServiceRequest("rtc", "2018-01-11", "UpdateRecordTask") { + setMethod(HttpRequest::Method::Post); } -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)); - } - } +UpdateRecordTaskRequest::~UpdateRecordTaskRequest() {} + +std::vector UpdateRecordTaskRequest::getUserPanes() const { + return userPanes_; } -std::string UpdateRecordTaskRequest::getTaskId()const -{ - return taskId_; +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 = std::string("UserPanes") + "." + std::to_string(dep1 + 1); + 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 + ".Width", std::to_string(imagesObj.width)); + setParameter(imagesObjStr + ".Height", std::to_string(imagesObj.height)); + setParameter(imagesObjStr + ".Y", std::to_string(imagesObj.y)); + setParameter(imagesObjStr + ".Url", imagesObj.url); + setParameter(imagesObjStr + ".Display", std::to_string(imagesObj.display)); + setParameter(imagesObjStr + ".ZOrder", std::to_string(imagesObj.zOrder)); + setParameter(imagesObjStr + ".X", std::to_string(imagesObj.x)); + } + setParameter(userPanesObjStr + ".UserId", userPanesObj.userId); + 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 + ".FontType", std::to_string(textsObj.fontType)); + setParameter(textsObjStr + ".FontColor", std::to_string(textsObj.fontColor)); + setParameter(textsObjStr + ".Y", std::to_string(textsObj.y)); + setParameter(textsObjStr + ".Text", textsObj.text); + setParameter(textsObjStr + ".ZOrder", std::to_string(textsObj.zOrder)); + setParameter(textsObjStr + ".X", std::to_string(textsObj.x)); + setParameter(textsObjStr + ".FontSize", std::to_string(textsObj.fontSize)); + } + setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType); + setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId)); + } } -void UpdateRecordTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::vector UpdateRecordTaskRequest::getSubSpecCameraUsers() const { + return subSpecCameraUsers_; } -std::string UpdateRecordTaskRequest::getShowLog()const -{ - return showLog_; +void UpdateRecordTaskRequest::setSubSpecCameraUsers(const std::vector &subSpecCameraUsers) { + subSpecCameraUsers_ = subSpecCameraUsers; } -void UpdateRecordTaskRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::vector UpdateRecordTaskRequest::getLayoutIds() const { + return layoutIds_; } -long UpdateRecordTaskRequest::getOwnerId()const -{ - return ownerId_; +void UpdateRecordTaskRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; } -void UpdateRecordTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string UpdateRecordTaskRequest::getTaskId() const { + return taskId_; } -std::string UpdateRecordTaskRequest::getTemplateId()const -{ - return templateId_; +void UpdateRecordTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void UpdateRecordTaskRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string UpdateRecordTaskRequest::getShowLog() const { + return showLog_; } -std::vector UpdateRecordTaskRequest::getSubSpecUsers()const -{ - return subSpecUsers_; +void UpdateRecordTaskRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -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::vector UpdateRecordTaskRequest::getUnsubSpecCameraUsers() const { + return unsubSpecCameraUsers_; } -std::string UpdateRecordTaskRequest::getAppId()const -{ - return appId_; +void UpdateRecordTaskRequest::setUnsubSpecCameraUsers(const std::vector &unsubSpecCameraUsers) { + unsubSpecCameraUsers_ = unsubSpecCameraUsers; } -void UpdateRecordTaskRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +std::vector UpdateRecordTaskRequest::getUnsubSpecAudioUsers() const { + return unsubSpecAudioUsers_; } -std::string UpdateRecordTaskRequest::getChannelId()const -{ - return channelId_; +void UpdateRecordTaskRequest::setUnsubSpecAudioUsers(const std::vector &unsubSpecAudioUsers) { + unsubSpecAudioUsers_ = unsubSpecAudioUsers; } -void UpdateRecordTaskRequest::setChannelId(const std::string& channelId) -{ - channelId_ = channelId; - setParameter("ChannelId", channelId); +std::vector UpdateRecordTaskRequest::getUnsubSpecShareScreenUsers() const { + return unsubSpecShareScreenUsers_; +} + +void UpdateRecordTaskRequest::setUnsubSpecShareScreenUsers(const std::vector &unsubSpecShareScreenUsers) { + unsubSpecShareScreenUsers_ = unsubSpecShareScreenUsers; +} + +long UpdateRecordTaskRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateRecordTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateRecordTaskRequest::getTemplateId() const { + return templateId_; +} + +void UpdateRecordTaskRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +std::vector UpdateRecordTaskRequest::getSubSpecAudioUsers() const { + return subSpecAudioUsers_; +} + +void UpdateRecordTaskRequest::setSubSpecAudioUsers(const std::vector &subSpecAudioUsers) { + subSpecAudioUsers_ = subSpecAudioUsers; +} + +std::vector UpdateRecordTaskRequest::getSubSpecShareScreenUsers() const { + return subSpecShareScreenUsers_; +} + +void UpdateRecordTaskRequest::setSubSpecShareScreenUsers(const std::vector &subSpecShareScreenUsers) { + subSpecShareScreenUsers_ = subSpecShareScreenUsers; +} + +std::vector UpdateRecordTaskRequest::getSubSpecUsers() const { + return subSpecUsers_; +} + +void UpdateRecordTaskRequest::setSubSpecUsers(const std::vector &subSpecUsers) { + subSpecUsers_ = subSpecUsers; +} + +std::string UpdateRecordTaskRequest::getAppId() const { + return appId_; +} + +void UpdateRecordTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string UpdateRecordTaskRequest::getChannelId() const { + return channelId_; +} + +void UpdateRecordTaskRequest::setChannelId(const std::string &channelId) { + channelId_ = channelId; + setParameter(std::string("ChannelId"), channelId); } diff --git a/rtc/src/model/UpdateRecordTemplateRequest.cc b/rtc/src/model/UpdateRecordTemplateRequest.cc index f04ba6d46..90d709e92 100644 --- a/rtc/src/model/UpdateRecordTemplateRequest.cc +++ b/rtc/src/model/UpdateRecordTemplateRequest.cc @@ -1,241 +1,235 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::UpdateRecordTemplateRequest; - -UpdateRecordTemplateRequest::UpdateRecordTemplateRequest() : - RpcServiceRequest("rtc", "2018-01-11", "UpdateRecordTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateRecordTemplateRequest::~UpdateRecordTemplateRequest() -{} - -std::vector UpdateRecordTemplateRequest::getFormats()const -{ - return formats_; + */ + +#include + +using AlibabaCloud::Rtc::Model::UpdateRecordTemplateRequest; + +UpdateRecordTemplateRequest::UpdateRecordTemplateRequest() + : RpcServiceRequest("rtc", "2018-01-11", "UpdateRecordTemplate") { + setMethod(HttpRequest::Method::Post); } -void UpdateRecordTemplateRequest::setFormats(const std::vector& formats) -{ - formats_ = formats; - for(int dep1 = 0; dep1!= formats.size(); dep1++) { - setParameter("Formats."+ std::to_string(dep1), formats.at(dep1)); - } +UpdateRecordTemplateRequest::~UpdateRecordTemplateRequest() {} + +std::vector UpdateRecordTemplateRequest::getFormats() const { + return formats_; } -std::string UpdateRecordTemplateRequest::getOssFilePrefix()const -{ - return ossFilePrefix_; +void UpdateRecordTemplateRequest::setFormats(const std::vector &formats) { + formats_ = formats; } -void UpdateRecordTemplateRequest::setOssFilePrefix(const std::string& ossFilePrefix) -{ - ossFilePrefix_ = ossFilePrefix; - setParameter("OssFilePrefix", ossFilePrefix); +std::string UpdateRecordTemplateRequest::getOssFilePrefix() const { + return ossFilePrefix_; } -int UpdateRecordTemplateRequest::getBackgroundColor()const -{ - return backgroundColor_; +void UpdateRecordTemplateRequest::setOssFilePrefix(const std::string &ossFilePrefix) { + ossFilePrefix_ = ossFilePrefix; + setParameter(std::string("OssFilePrefix"), ossFilePrefix); } -void UpdateRecordTemplateRequest::setBackgroundColor(int backgroundColor) -{ - backgroundColor_ = backgroundColor; - setParameter("BackgroundColor", std::to_string(backgroundColor)); +int UpdateRecordTemplateRequest::getBackgroundColor() const { + return backgroundColor_; } -std::string UpdateRecordTemplateRequest::getTaskProfile()const -{ - return taskProfile_; +void UpdateRecordTemplateRequest::setBackgroundColor(int backgroundColor) { + backgroundColor_ = backgroundColor; + setParameter(std::string("BackgroundColor"), std::to_string(backgroundColor)); } -void UpdateRecordTemplateRequest::setTaskProfile(const std::string& taskProfile) -{ - taskProfile_ = taskProfile; - setParameter("TaskProfile", taskProfile); +std::string UpdateRecordTemplateRequest::getTaskProfile() const { + return taskProfile_; } -std::vector UpdateRecordTemplateRequest::getLayoutIds()const -{ - return layoutIds_; +void UpdateRecordTemplateRequest::setTaskProfile(const std::string &taskProfile) { + taskProfile_ = taskProfile; + setParameter(std::string("TaskProfile"), taskProfile); } -void UpdateRecordTemplateRequest::setLayoutIds(const std::vector& layoutIds) -{ - layoutIds_ = layoutIds; - for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) { - setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1))); - } +std::vector UpdateRecordTemplateRequest::getLayoutIds() const { + return layoutIds_; } -std::string UpdateRecordTemplateRequest::getShowLog()const -{ - return showLog_; +void UpdateRecordTemplateRequest::setLayoutIds(const std::vector &layoutIds) { + layoutIds_ = layoutIds; } -void UpdateRecordTemplateRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::vector UpdateRecordTemplateRequest::getClockWidgets() const { + return clockWidgets_; } -std::string UpdateRecordTemplateRequest::getOssBucket()const -{ - return ossBucket_; +void UpdateRecordTemplateRequest::setClockWidgets(const std::vector &clockWidgets) { + clockWidgets_ = clockWidgets; + for(int dep1 = 0; dep1 != clockWidgets.size(); dep1++) { + auto clockWidgetsObj = clockWidgets.at(dep1); + std::string clockWidgetsObjStr = std::string("ClockWidgets") + "." + std::to_string(dep1 + 1); + setParameter(clockWidgetsObjStr + ".FontType", std::to_string(clockWidgetsObj.fontType)); + setParameter(clockWidgetsObjStr + ".FontColor", std::to_string(clockWidgetsObj.fontColor)); + setParameter(clockWidgetsObjStr + ".Y", std::to_string(clockWidgetsObj.y)); + setParameter(clockWidgetsObjStr + ".ZOrder", std::to_string(clockWidgetsObj.zOrder)); + setParameter(clockWidgetsObjStr + ".X", std::to_string(clockWidgetsObj.x)); + setParameter(clockWidgetsObjStr + ".FontSize", std::to_string(clockWidgetsObj.fontSize)); + } } -void UpdateRecordTemplateRequest::setOssBucket(const std::string& ossBucket) -{ - ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); +std::string UpdateRecordTemplateRequest::getShowLog() const { + return showLog_; } -std::string UpdateRecordTemplateRequest::getMnsQueue()const -{ - return mnsQueue_; +void UpdateRecordTemplateRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } -void UpdateRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue) -{ - mnsQueue_ = mnsQueue; - setParameter("MnsQueue", mnsQueue); +std::string UpdateRecordTemplateRequest::getOssBucket() const { + return ossBucket_; } -int UpdateRecordTemplateRequest::getFileSplitInterval()const -{ - return fileSplitInterval_; +void UpdateRecordTemplateRequest::setOssBucket(const std::string &ossBucket) { + ossBucket_ = ossBucket; + setParameter(std::string("OssBucket"), ossBucket); } -void UpdateRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) -{ - fileSplitInterval_ = fileSplitInterval; - setParameter("FileSplitInterval", std::to_string(fileSplitInterval)); +int UpdateRecordTemplateRequest::getDelayStopTime() const { + return delayStopTime_; } -std::string UpdateRecordTemplateRequest::getHttpCallbackUrl()const -{ - return httpCallbackUrl_; +void UpdateRecordTemplateRequest::setDelayStopTime(int delayStopTime) { + delayStopTime_ = delayStopTime; + setParameter(std::string("DelayStopTime"), std::to_string(delayStopTime)); } -void UpdateRecordTemplateRequest::setHttpCallbackUrl(const std::string& httpCallbackUrl) -{ - httpCallbackUrl_ = httpCallbackUrl; - setParameter("HttpCallbackUrl", httpCallbackUrl); +std::string UpdateRecordTemplateRequest::getMnsQueue() const { + return mnsQueue_; } -std::vector UpdateRecordTemplateRequest::getWatermarks()const -{ - return watermarks_; +void UpdateRecordTemplateRequest::setMnsQueue(const std::string &mnsQueue) { + mnsQueue_ = mnsQueue; + setParameter(std::string("MnsQueue"), mnsQueue); } -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)); - } +int UpdateRecordTemplateRequest::getFileSplitInterval() const { + return fileSplitInterval_; } -long UpdateRecordTemplateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval) { + fileSplitInterval_ = fileSplitInterval; + setParameter(std::string("FileSplitInterval"), std::to_string(fileSplitInterval)); } -void UpdateRecordTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string UpdateRecordTemplateRequest::getHttpCallbackUrl() const { + return httpCallbackUrl_; } -std::string UpdateRecordTemplateRequest::getTemplateId()const -{ - return templateId_; +void UpdateRecordTemplateRequest::setHttpCallbackUrl(const std::string &httpCallbackUrl) { + httpCallbackUrl_ = httpCallbackUrl; + setParameter(std::string("HttpCallbackUrl"), httpCallbackUrl); } -void UpdateRecordTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::vector UpdateRecordTemplateRequest::getWatermarks() const { + return watermarks_; } -std::string UpdateRecordTemplateRequest::getAppId()const -{ - return appId_; +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 = std::string("Watermarks") + "." + std::to_string(dep1 + 1); + setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha)); + setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width)); + setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height)); + setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y)); + setParameter(watermarksObjStr + ".Url", watermarksObj.url); + setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display)); + setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder)); + setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x)); + } } -void UpdateRecordTemplateRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setParameter("AppId", appId); +long UpdateRecordTemplateRequest::getOwnerId() const { + return ownerId_; } -std::vector UpdateRecordTemplateRequest::getBackgrounds()const -{ - return backgrounds_; +void UpdateRecordTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -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::getTemplateId() const { + return templateId_; } -std::string UpdateRecordTemplateRequest::getName()const -{ - return name_; +void UpdateRecordTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void UpdateRecordTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +bool UpdateRecordTemplateRequest::getEnableM3u8DateTime() const { + return enableM3u8DateTime_; } -int UpdateRecordTemplateRequest::getMediaEncode()const -{ - return mediaEncode_; +void UpdateRecordTemplateRequest::setEnableM3u8DateTime(bool enableM3u8DateTime) { + enableM3u8DateTime_ = enableM3u8DateTime; + setParameter(std::string("EnableM3u8DateTime"), enableM3u8DateTime ? "true" : "false"); } -void UpdateRecordTemplateRequest::setMediaEncode(int mediaEncode) -{ - mediaEncode_ = mediaEncode; - setParameter("MediaEncode", std::to_string(mediaEncode)); +std::string UpdateRecordTemplateRequest::getAppId() const { + return appId_; +} + +void UpdateRecordTemplateRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("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 = std::string("Backgrounds") + "." + std::to_string(dep1 + 1); + setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width)); + setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height)); + setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y)); + setParameter(backgroundsObjStr + ".Url", backgroundsObj.url); + setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display)); + setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder)); + setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x)); + } +} + +std::string UpdateRecordTemplateRequest::getName() const { + return name_; +} + +void UpdateRecordTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int UpdateRecordTemplateRequest::getMediaEncode() const { + return mediaEncode_; +} + +void UpdateRecordTemplateRequest::setMediaEncode(int mediaEncode) { + mediaEncode_ = mediaEncode; + setParameter(std::string("MediaEncode"), std::to_string(mediaEncode)); }