diff --git a/VERSION b/VERSION index 307a5341d..c962c7205 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1793 \ No newline at end of file +1.36.1794 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 7e3b9a26d..ebec4e491 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -99,6 +99,10 @@ set(live_public_header_model include/alibabacloud/live/model/CancelMuteAllGroupUserResult.h include/alibabacloud/live/model/CancelMuteGroupUserRequest.h include/alibabacloud/live/model/CancelMuteGroupUserResult.h + include/alibabacloud/live/model/CheckLiveMessageUsersInGroupRequest.h + include/alibabacloud/live/model/CheckLiveMessageUsersInGroupResult.h + include/alibabacloud/live/model/CheckLiveMessageUsersOnlineRequest.h + include/alibabacloud/live/model/CheckLiveMessageUsersOnlineResult.h include/alibabacloud/live/model/CloseLiveShiftRequest.h include/alibabacloud/live/model/CloseLiveShiftResult.h include/alibabacloud/live/model/CopyCasterRequest.h @@ -115,6 +119,10 @@ set(live_public_header_model include/alibabacloud/live/model/CreateEventSubResult.h include/alibabacloud/live/model/CreateLiveDelayConfigRequest.h include/alibabacloud/live/model/CreateLiveDelayConfigResult.h + include/alibabacloud/live/model/CreateLiveMessageAppRequest.h + include/alibabacloud/live/model/CreateLiveMessageAppResult.h + include/alibabacloud/live/model/CreateLiveMessageGroupRequest.h + include/alibabacloud/live/model/CreateLiveMessageGroupResult.h include/alibabacloud/live/model/CreateLiveRealTimeLogDeliveryRequest.h include/alibabacloud/live/model/CreateLiveRealTimeLogDeliveryResult.h include/alibabacloud/live/model/CreateLiveStreamMonitorRequest.h @@ -177,6 +185,8 @@ set(live_public_header_model include/alibabacloud/live/model/DeleteLiveEdgeTransferResult.h include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigRequest.h include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigResult.h + include/alibabacloud/live/model/DeleteLiveMessageGroupRequest.h + include/alibabacloud/live/model/DeleteLiveMessageGroupResult.h include/alibabacloud/live/model/DeleteLivePackageConfigRequest.h include/alibabacloud/live/model/DeleteLivePackageConfigResult.h include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigRequest.h @@ -355,6 +365,12 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveIpInfoResult.h include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h + include/alibabacloud/live/model/DescribeLiveMessageAppRequest.h + include/alibabacloud/live/model/DescribeLiveMessageAppResult.h + include/alibabacloud/live/model/DescribeLiveMessageGroupRequest.h + include/alibabacloud/live/model/DescribeLiveMessageGroupResult.h + include/alibabacloud/live/model/DescribeLiveMessageGroupBandRequest.h + include/alibabacloud/live/model/DescribeLiveMessageGroupBandResult.h include/alibabacloud/live/model/DescribeLivePackageConfigRequest.h include/alibabacloud/live/model/DescribeLivePackageConfigResult.h include/alibabacloud/live/model/DescribeLiveProducerUsageDataRequest.h @@ -529,6 +545,8 @@ set(live_public_header_model include/alibabacloud/live/model/InitializeAutoShowListTaskResult.h include/alibabacloud/live/model/JoinMessageGroupRequest.h include/alibabacloud/live/model/JoinMessageGroupResult.h + include/alibabacloud/live/model/KickLiveMessageGroupUserRequest.h + include/alibabacloud/live/model/KickLiveMessageGroupUserResult.h include/alibabacloud/live/model/LeaveMessageGroupRequest.h include/alibabacloud/live/model/LeaveMessageGroupResult.h include/alibabacloud/live/model/ListEdgeTranscodeJobRequest.h @@ -537,6 +555,14 @@ set(live_public_header_model include/alibabacloud/live/model/ListEdgeTranscodeTemplateResult.h include/alibabacloud/live/model/ListLiveDelayConfigRequest.h include/alibabacloud/live/model/ListLiveDelayConfigResult.h + include/alibabacloud/live/model/ListLiveMessageAppsRequest.h + include/alibabacloud/live/model/ListLiveMessageAppsResult.h + include/alibabacloud/live/model/ListLiveMessageGroupMessagesRequest.h + include/alibabacloud/live/model/ListLiveMessageGroupMessagesResult.h + include/alibabacloud/live/model/ListLiveMessageGroupUsersRequest.h + include/alibabacloud/live/model/ListLiveMessageGroupUsersResult.h + include/alibabacloud/live/model/ListLiveMessageGroupsRequest.h + include/alibabacloud/live/model/ListLiveMessageGroupsResult.h include/alibabacloud/live/model/ListLiveRealtimeLogDeliveryRequest.h include/alibabacloud/live/model/ListLiveRealtimeLogDeliveryResult.h include/alibabacloud/live/model/ListLiveRealtimeLogDeliveryDomainsRequest.h @@ -569,6 +595,18 @@ set(live_public_header_model include/alibabacloud/live/model/ModifyCasterVideoResourceResult.h include/alibabacloud/live/model/ModifyLiveDomainSchdmByPropertyRequest.h include/alibabacloud/live/model/ModifyLiveDomainSchdmByPropertyResult.h + include/alibabacloud/live/model/ModifyLiveMessageAppAuditRequest.h + include/alibabacloud/live/model/ModifyLiveMessageAppAuditResult.h + include/alibabacloud/live/model/ModifyLiveMessageAppCallbackRequest.h + include/alibabacloud/live/model/ModifyLiveMessageAppCallbackResult.h + include/alibabacloud/live/model/ModifyLiveMessageAppDisableRequest.h + include/alibabacloud/live/model/ModifyLiveMessageAppDisableResult.h + include/alibabacloud/live/model/ModifyLiveMessageGroupRequest.h + include/alibabacloud/live/model/ModifyLiveMessageGroupResult.h + include/alibabacloud/live/model/ModifyLiveMessageGroupBandRequest.h + include/alibabacloud/live/model/ModifyLiveMessageGroupBandResult.h + include/alibabacloud/live/model/ModifyLiveMessageUserInfoRequest.h + include/alibabacloud/live/model/ModifyLiveMessageUserInfoResult.h include/alibabacloud/live/model/ModifyLiveRealtimeLogDeliveryRequest.h include/alibabacloud/live/model/ModifyLiveRealtimeLogDeliveryResult.h include/alibabacloud/live/model/ModifyShowListRequest.h @@ -605,6 +643,10 @@ set(live_public_header_model include/alibabacloud/live/model/RollbackLiveStagingConfigResult.h include/alibabacloud/live/model/SendLikeRequest.h include/alibabacloud/live/model/SendLikeResult.h + include/alibabacloud/live/model/SendLiveMessageGroupRequest.h + include/alibabacloud/live/model/SendLiveMessageGroupResult.h + include/alibabacloud/live/model/SendLiveMessageUserRequest.h + include/alibabacloud/live/model/SendLiveMessageUserResult.h include/alibabacloud/live/model/SendMessageToGroupRequest.h include/alibabacloud/live/model/SendMessageToGroupResult.h include/alibabacloud/live/model/SendMessageToGroupUsersRequest.h @@ -808,6 +850,10 @@ set(live_src src/model/CancelMuteAllGroupUserResult.cc src/model/CancelMuteGroupUserRequest.cc src/model/CancelMuteGroupUserResult.cc + src/model/CheckLiveMessageUsersInGroupRequest.cc + src/model/CheckLiveMessageUsersInGroupResult.cc + src/model/CheckLiveMessageUsersOnlineRequest.cc + src/model/CheckLiveMessageUsersOnlineResult.cc src/model/CloseLiveShiftRequest.cc src/model/CloseLiveShiftResult.cc src/model/CopyCasterRequest.cc @@ -824,6 +870,10 @@ set(live_src src/model/CreateEventSubResult.cc src/model/CreateLiveDelayConfigRequest.cc src/model/CreateLiveDelayConfigResult.cc + src/model/CreateLiveMessageAppRequest.cc + src/model/CreateLiveMessageAppResult.cc + src/model/CreateLiveMessageGroupRequest.cc + src/model/CreateLiveMessageGroupResult.cc src/model/CreateLiveRealTimeLogDeliveryRequest.cc src/model/CreateLiveRealTimeLogDeliveryResult.cc src/model/CreateLiveStreamMonitorRequest.cc @@ -886,6 +936,8 @@ set(live_src src/model/DeleteLiveEdgeTransferResult.cc src/model/DeleteLiveLazyPullStreamInfoConfigRequest.cc src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc + src/model/DeleteLiveMessageGroupRequest.cc + src/model/DeleteLiveMessageGroupResult.cc src/model/DeleteLivePackageConfigRequest.cc src/model/DeleteLivePackageConfigResult.cc src/model/DeleteLivePullStreamInfoConfigRequest.cc @@ -1064,6 +1116,12 @@ set(live_src src/model/DescribeLiveIpInfoResult.cc src/model/DescribeLiveLazyPullStreamConfigRequest.cc src/model/DescribeLiveLazyPullStreamConfigResult.cc + src/model/DescribeLiveMessageAppRequest.cc + src/model/DescribeLiveMessageAppResult.cc + src/model/DescribeLiveMessageGroupRequest.cc + src/model/DescribeLiveMessageGroupResult.cc + src/model/DescribeLiveMessageGroupBandRequest.cc + src/model/DescribeLiveMessageGroupBandResult.cc src/model/DescribeLivePackageConfigRequest.cc src/model/DescribeLivePackageConfigResult.cc src/model/DescribeLiveProducerUsageDataRequest.cc @@ -1238,6 +1296,8 @@ set(live_src src/model/InitializeAutoShowListTaskResult.cc src/model/JoinMessageGroupRequest.cc src/model/JoinMessageGroupResult.cc + src/model/KickLiveMessageGroupUserRequest.cc + src/model/KickLiveMessageGroupUserResult.cc src/model/LeaveMessageGroupRequest.cc src/model/LeaveMessageGroupResult.cc src/model/ListEdgeTranscodeJobRequest.cc @@ -1246,6 +1306,14 @@ set(live_src src/model/ListEdgeTranscodeTemplateResult.cc src/model/ListLiveDelayConfigRequest.cc src/model/ListLiveDelayConfigResult.cc + src/model/ListLiveMessageAppsRequest.cc + src/model/ListLiveMessageAppsResult.cc + src/model/ListLiveMessageGroupMessagesRequest.cc + src/model/ListLiveMessageGroupMessagesResult.cc + src/model/ListLiveMessageGroupUsersRequest.cc + src/model/ListLiveMessageGroupUsersResult.cc + src/model/ListLiveMessageGroupsRequest.cc + src/model/ListLiveMessageGroupsResult.cc src/model/ListLiveRealtimeLogDeliveryRequest.cc src/model/ListLiveRealtimeLogDeliveryResult.cc src/model/ListLiveRealtimeLogDeliveryDomainsRequest.cc @@ -1278,6 +1346,18 @@ set(live_src src/model/ModifyCasterVideoResourceResult.cc src/model/ModifyLiveDomainSchdmByPropertyRequest.cc src/model/ModifyLiveDomainSchdmByPropertyResult.cc + src/model/ModifyLiveMessageAppAuditRequest.cc + src/model/ModifyLiveMessageAppAuditResult.cc + src/model/ModifyLiveMessageAppCallbackRequest.cc + src/model/ModifyLiveMessageAppCallbackResult.cc + src/model/ModifyLiveMessageAppDisableRequest.cc + src/model/ModifyLiveMessageAppDisableResult.cc + src/model/ModifyLiveMessageGroupRequest.cc + src/model/ModifyLiveMessageGroupResult.cc + src/model/ModifyLiveMessageGroupBandRequest.cc + src/model/ModifyLiveMessageGroupBandResult.cc + src/model/ModifyLiveMessageUserInfoRequest.cc + src/model/ModifyLiveMessageUserInfoResult.cc src/model/ModifyLiveRealtimeLogDeliveryRequest.cc src/model/ModifyLiveRealtimeLogDeliveryResult.cc src/model/ModifyShowListRequest.cc @@ -1314,6 +1394,10 @@ set(live_src src/model/RollbackLiveStagingConfigResult.cc src/model/SendLikeRequest.cc src/model/SendLikeResult.cc + src/model/SendLiveMessageGroupRequest.cc + src/model/SendLiveMessageGroupResult.cc + src/model/SendLiveMessageUserRequest.cc + src/model/SendLiveMessageUserResult.cc src/model/SendMessageToGroupRequest.cc src/model/SendMessageToGroupResult.cc src/model/SendMessageToGroupUsersRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 8e6ad90dd..435a8af13 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -100,6 +100,10 @@ #include "model/CancelMuteAllGroupUserResult.h" #include "model/CancelMuteGroupUserRequest.h" #include "model/CancelMuteGroupUserResult.h" +#include "model/CheckLiveMessageUsersInGroupRequest.h" +#include "model/CheckLiveMessageUsersInGroupResult.h" +#include "model/CheckLiveMessageUsersOnlineRequest.h" +#include "model/CheckLiveMessageUsersOnlineResult.h" #include "model/CloseLiveShiftRequest.h" #include "model/CloseLiveShiftResult.h" #include "model/CopyCasterRequest.h" @@ -116,6 +120,10 @@ #include "model/CreateEventSubResult.h" #include "model/CreateLiveDelayConfigRequest.h" #include "model/CreateLiveDelayConfigResult.h" +#include "model/CreateLiveMessageAppRequest.h" +#include "model/CreateLiveMessageAppResult.h" +#include "model/CreateLiveMessageGroupRequest.h" +#include "model/CreateLiveMessageGroupResult.h" #include "model/CreateLiveRealTimeLogDeliveryRequest.h" #include "model/CreateLiveRealTimeLogDeliveryResult.h" #include "model/CreateLiveStreamMonitorRequest.h" @@ -178,6 +186,8 @@ #include "model/DeleteLiveEdgeTransferResult.h" #include "model/DeleteLiveLazyPullStreamInfoConfigRequest.h" #include "model/DeleteLiveLazyPullStreamInfoConfigResult.h" +#include "model/DeleteLiveMessageGroupRequest.h" +#include "model/DeleteLiveMessageGroupResult.h" #include "model/DeleteLivePackageConfigRequest.h" #include "model/DeleteLivePackageConfigResult.h" #include "model/DeleteLivePullStreamInfoConfigRequest.h" @@ -356,6 +366,12 @@ #include "model/DescribeLiveIpInfoResult.h" #include "model/DescribeLiveLazyPullStreamConfigRequest.h" #include "model/DescribeLiveLazyPullStreamConfigResult.h" +#include "model/DescribeLiveMessageAppRequest.h" +#include "model/DescribeLiveMessageAppResult.h" +#include "model/DescribeLiveMessageGroupRequest.h" +#include "model/DescribeLiveMessageGroupResult.h" +#include "model/DescribeLiveMessageGroupBandRequest.h" +#include "model/DescribeLiveMessageGroupBandResult.h" #include "model/DescribeLivePackageConfigRequest.h" #include "model/DescribeLivePackageConfigResult.h" #include "model/DescribeLiveProducerUsageDataRequest.h" @@ -530,6 +546,8 @@ #include "model/InitializeAutoShowListTaskResult.h" #include "model/JoinMessageGroupRequest.h" #include "model/JoinMessageGroupResult.h" +#include "model/KickLiveMessageGroupUserRequest.h" +#include "model/KickLiveMessageGroupUserResult.h" #include "model/LeaveMessageGroupRequest.h" #include "model/LeaveMessageGroupResult.h" #include "model/ListEdgeTranscodeJobRequest.h" @@ -538,6 +556,14 @@ #include "model/ListEdgeTranscodeTemplateResult.h" #include "model/ListLiveDelayConfigRequest.h" #include "model/ListLiveDelayConfigResult.h" +#include "model/ListLiveMessageAppsRequest.h" +#include "model/ListLiveMessageAppsResult.h" +#include "model/ListLiveMessageGroupMessagesRequest.h" +#include "model/ListLiveMessageGroupMessagesResult.h" +#include "model/ListLiveMessageGroupUsersRequest.h" +#include "model/ListLiveMessageGroupUsersResult.h" +#include "model/ListLiveMessageGroupsRequest.h" +#include "model/ListLiveMessageGroupsResult.h" #include "model/ListLiveRealtimeLogDeliveryRequest.h" #include "model/ListLiveRealtimeLogDeliveryResult.h" #include "model/ListLiveRealtimeLogDeliveryDomainsRequest.h" @@ -570,6 +596,18 @@ #include "model/ModifyCasterVideoResourceResult.h" #include "model/ModifyLiveDomainSchdmByPropertyRequest.h" #include "model/ModifyLiveDomainSchdmByPropertyResult.h" +#include "model/ModifyLiveMessageAppAuditRequest.h" +#include "model/ModifyLiveMessageAppAuditResult.h" +#include "model/ModifyLiveMessageAppCallbackRequest.h" +#include "model/ModifyLiveMessageAppCallbackResult.h" +#include "model/ModifyLiveMessageAppDisableRequest.h" +#include "model/ModifyLiveMessageAppDisableResult.h" +#include "model/ModifyLiveMessageGroupRequest.h" +#include "model/ModifyLiveMessageGroupResult.h" +#include "model/ModifyLiveMessageGroupBandRequest.h" +#include "model/ModifyLiveMessageGroupBandResult.h" +#include "model/ModifyLiveMessageUserInfoRequest.h" +#include "model/ModifyLiveMessageUserInfoResult.h" #include "model/ModifyLiveRealtimeLogDeliveryRequest.h" #include "model/ModifyLiveRealtimeLogDeliveryResult.h" #include "model/ModifyShowListRequest.h" @@ -606,6 +644,10 @@ #include "model/RollbackLiveStagingConfigResult.h" #include "model/SendLikeRequest.h" #include "model/SendLikeResult.h" +#include "model/SendLiveMessageGroupRequest.h" +#include "model/SendLiveMessageGroupResult.h" +#include "model/SendLiveMessageUserRequest.h" +#include "model/SendLiveMessageUserResult.h" #include "model/SendMessageToGroupRequest.h" #include "model/SendMessageToGroupResult.h" #include "model/SendMessageToGroupUsersRequest.h" @@ -854,6 +896,12 @@ namespace AlibabaCloud typedef Outcome CancelMuteGroupUserOutcome; typedef std::future CancelMuteGroupUserOutcomeCallable; typedef std::function&)> CancelMuteGroupUserAsyncHandler; + typedef Outcome CheckLiveMessageUsersInGroupOutcome; + typedef std::future CheckLiveMessageUsersInGroupOutcomeCallable; + typedef std::function&)> CheckLiveMessageUsersInGroupAsyncHandler; + typedef Outcome CheckLiveMessageUsersOnlineOutcome; + typedef std::future CheckLiveMessageUsersOnlineOutcomeCallable; + typedef std::function&)> CheckLiveMessageUsersOnlineAsyncHandler; typedef Outcome CloseLiveShiftOutcome; typedef std::future CloseLiveShiftOutcomeCallable; typedef std::function&)> CloseLiveShiftAsyncHandler; @@ -878,6 +926,12 @@ namespace AlibabaCloud typedef Outcome CreateLiveDelayConfigOutcome; typedef std::future CreateLiveDelayConfigOutcomeCallable; typedef std::function&)> CreateLiveDelayConfigAsyncHandler; + typedef Outcome CreateLiveMessageAppOutcome; + typedef std::future CreateLiveMessageAppOutcomeCallable; + typedef std::function&)> CreateLiveMessageAppAsyncHandler; + typedef Outcome CreateLiveMessageGroupOutcome; + typedef std::future CreateLiveMessageGroupOutcomeCallable; + typedef std::function&)> CreateLiveMessageGroupAsyncHandler; typedef Outcome CreateLiveRealTimeLogDeliveryOutcome; typedef std::future CreateLiveRealTimeLogDeliveryOutcomeCallable; typedef std::function&)> CreateLiveRealTimeLogDeliveryAsyncHandler; @@ -971,6 +1025,9 @@ namespace AlibabaCloud typedef Outcome DeleteLiveLazyPullStreamInfoConfigOutcome; typedef std::future DeleteLiveLazyPullStreamInfoConfigOutcomeCallable; typedef std::function&)> DeleteLiveLazyPullStreamInfoConfigAsyncHandler; + typedef Outcome DeleteLiveMessageGroupOutcome; + typedef std::future DeleteLiveMessageGroupOutcomeCallable; + typedef std::function&)> DeleteLiveMessageGroupAsyncHandler; typedef Outcome DeleteLivePackageConfigOutcome; typedef std::future DeleteLivePackageConfigOutcomeCallable; typedef std::function&)> DeleteLivePackageConfigAsyncHandler; @@ -1238,6 +1295,15 @@ namespace AlibabaCloud typedef Outcome DescribeLiveLazyPullStreamConfigOutcome; typedef std::future DescribeLiveLazyPullStreamConfigOutcomeCallable; typedef std::function&)> DescribeLiveLazyPullStreamConfigAsyncHandler; + typedef Outcome DescribeLiveMessageAppOutcome; + typedef std::future DescribeLiveMessageAppOutcomeCallable; + typedef std::function&)> DescribeLiveMessageAppAsyncHandler; + typedef Outcome DescribeLiveMessageGroupOutcome; + typedef std::future DescribeLiveMessageGroupOutcomeCallable; + typedef std::function&)> DescribeLiveMessageGroupAsyncHandler; + typedef Outcome DescribeLiveMessageGroupBandOutcome; + typedef std::future DescribeLiveMessageGroupBandOutcomeCallable; + typedef std::function&)> DescribeLiveMessageGroupBandAsyncHandler; typedef Outcome DescribeLivePackageConfigOutcome; typedef std::future DescribeLivePackageConfigOutcomeCallable; typedef std::function&)> DescribeLivePackageConfigAsyncHandler; @@ -1499,6 +1565,9 @@ namespace AlibabaCloud typedef Outcome JoinMessageGroupOutcome; typedef std::future JoinMessageGroupOutcomeCallable; typedef std::function&)> JoinMessageGroupAsyncHandler; + typedef Outcome KickLiveMessageGroupUserOutcome; + typedef std::future KickLiveMessageGroupUserOutcomeCallable; + typedef std::function&)> KickLiveMessageGroupUserAsyncHandler; typedef Outcome LeaveMessageGroupOutcome; typedef std::future LeaveMessageGroupOutcomeCallable; typedef std::function&)> LeaveMessageGroupAsyncHandler; @@ -1511,6 +1580,18 @@ namespace AlibabaCloud typedef Outcome ListLiveDelayConfigOutcome; typedef std::future ListLiveDelayConfigOutcomeCallable; typedef std::function&)> ListLiveDelayConfigAsyncHandler; + typedef Outcome ListLiveMessageAppsOutcome; + typedef std::future ListLiveMessageAppsOutcomeCallable; + typedef std::function&)> ListLiveMessageAppsAsyncHandler; + typedef Outcome ListLiveMessageGroupMessagesOutcome; + typedef std::future ListLiveMessageGroupMessagesOutcomeCallable; + typedef std::function&)> ListLiveMessageGroupMessagesAsyncHandler; + typedef Outcome ListLiveMessageGroupUsersOutcome; + typedef std::future ListLiveMessageGroupUsersOutcomeCallable; + typedef std::function&)> ListLiveMessageGroupUsersAsyncHandler; + typedef Outcome ListLiveMessageGroupsOutcome; + typedef std::future ListLiveMessageGroupsOutcomeCallable; + typedef std::function&)> ListLiveMessageGroupsAsyncHandler; typedef Outcome ListLiveRealtimeLogDeliveryOutcome; typedef std::future ListLiveRealtimeLogDeliveryOutcomeCallable; typedef std::function&)> ListLiveRealtimeLogDeliveryAsyncHandler; @@ -1559,6 +1640,24 @@ namespace AlibabaCloud typedef Outcome ModifyLiveDomainSchdmByPropertyOutcome; typedef std::future ModifyLiveDomainSchdmByPropertyOutcomeCallable; typedef std::function&)> ModifyLiveDomainSchdmByPropertyAsyncHandler; + typedef Outcome ModifyLiveMessageAppAuditOutcome; + typedef std::future ModifyLiveMessageAppAuditOutcomeCallable; + typedef std::function&)> ModifyLiveMessageAppAuditAsyncHandler; + typedef Outcome ModifyLiveMessageAppCallbackOutcome; + typedef std::future ModifyLiveMessageAppCallbackOutcomeCallable; + typedef std::function&)> ModifyLiveMessageAppCallbackAsyncHandler; + typedef Outcome ModifyLiveMessageAppDisableOutcome; + typedef std::future ModifyLiveMessageAppDisableOutcomeCallable; + typedef std::function&)> ModifyLiveMessageAppDisableAsyncHandler; + typedef Outcome ModifyLiveMessageGroupOutcome; + typedef std::future ModifyLiveMessageGroupOutcomeCallable; + typedef std::function&)> ModifyLiveMessageGroupAsyncHandler; + typedef Outcome ModifyLiveMessageGroupBandOutcome; + typedef std::future ModifyLiveMessageGroupBandOutcomeCallable; + typedef std::function&)> ModifyLiveMessageGroupBandAsyncHandler; + typedef Outcome ModifyLiveMessageUserInfoOutcome; + typedef std::future ModifyLiveMessageUserInfoOutcomeCallable; + typedef std::function&)> ModifyLiveMessageUserInfoAsyncHandler; typedef Outcome ModifyLiveRealtimeLogDeliveryOutcome; typedef std::future ModifyLiveRealtimeLogDeliveryOutcomeCallable; typedef std::function&)> ModifyLiveRealtimeLogDeliveryAsyncHandler; @@ -1613,6 +1712,12 @@ namespace AlibabaCloud typedef Outcome SendLikeOutcome; typedef std::future SendLikeOutcomeCallable; typedef std::function&)> SendLikeAsyncHandler; + typedef Outcome SendLiveMessageGroupOutcome; + typedef std::future SendLiveMessageGroupOutcomeCallable; + typedef std::function&)> SendLiveMessageGroupAsyncHandler; + typedef Outcome SendLiveMessageUserOutcome; + typedef std::future SendLiveMessageUserOutcomeCallable; + typedef std::function&)> SendLiveMessageUserAsyncHandler; typedef Outcome SendMessageToGroupOutcome; typedef std::future SendMessageToGroupOutcomeCallable; typedef std::function&)> SendMessageToGroupAsyncHandler; @@ -1918,6 +2023,12 @@ namespace AlibabaCloud CancelMuteGroupUserOutcome cancelMuteGroupUser(const Model::CancelMuteGroupUserRequest &request)const; void cancelMuteGroupUserAsync(const Model::CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelMuteGroupUserOutcomeCallable cancelMuteGroupUserCallable(const Model::CancelMuteGroupUserRequest& request) const; + CheckLiveMessageUsersInGroupOutcome checkLiveMessageUsersInGroup(const Model::CheckLiveMessageUsersInGroupRequest &request)const; + void checkLiveMessageUsersInGroupAsync(const Model::CheckLiveMessageUsersInGroupRequest& request, const CheckLiveMessageUsersInGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckLiveMessageUsersInGroupOutcomeCallable checkLiveMessageUsersInGroupCallable(const Model::CheckLiveMessageUsersInGroupRequest& request) const; + CheckLiveMessageUsersOnlineOutcome checkLiveMessageUsersOnline(const Model::CheckLiveMessageUsersOnlineRequest &request)const; + void checkLiveMessageUsersOnlineAsync(const Model::CheckLiveMessageUsersOnlineRequest& request, const CheckLiveMessageUsersOnlineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckLiveMessageUsersOnlineOutcomeCallable checkLiveMessageUsersOnlineCallable(const Model::CheckLiveMessageUsersOnlineRequest& request) const; CloseLiveShiftOutcome closeLiveShift(const Model::CloseLiveShiftRequest &request)const; void closeLiveShiftAsync(const Model::CloseLiveShiftRequest& request, const CloseLiveShiftAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseLiveShiftOutcomeCallable closeLiveShiftCallable(const Model::CloseLiveShiftRequest& request) const; @@ -1942,6 +2053,12 @@ namespace AlibabaCloud CreateLiveDelayConfigOutcome createLiveDelayConfig(const Model::CreateLiveDelayConfigRequest &request)const; void createLiveDelayConfigAsync(const Model::CreateLiveDelayConfigRequest& request, const CreateLiveDelayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLiveDelayConfigOutcomeCallable createLiveDelayConfigCallable(const Model::CreateLiveDelayConfigRequest& request) const; + CreateLiveMessageAppOutcome createLiveMessageApp(const Model::CreateLiveMessageAppRequest &request)const; + void createLiveMessageAppAsync(const Model::CreateLiveMessageAppRequest& request, const CreateLiveMessageAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLiveMessageAppOutcomeCallable createLiveMessageAppCallable(const Model::CreateLiveMessageAppRequest& request) const; + CreateLiveMessageGroupOutcome createLiveMessageGroup(const Model::CreateLiveMessageGroupRequest &request)const; + void createLiveMessageGroupAsync(const Model::CreateLiveMessageGroupRequest& request, const CreateLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLiveMessageGroupOutcomeCallable createLiveMessageGroupCallable(const Model::CreateLiveMessageGroupRequest& request) const; CreateLiveRealTimeLogDeliveryOutcome createLiveRealTimeLogDelivery(const Model::CreateLiveRealTimeLogDeliveryRequest &request)const; void createLiveRealTimeLogDeliveryAsync(const Model::CreateLiveRealTimeLogDeliveryRequest& request, const CreateLiveRealTimeLogDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLiveRealTimeLogDeliveryOutcomeCallable createLiveRealTimeLogDeliveryCallable(const Model::CreateLiveRealTimeLogDeliveryRequest& request) const; @@ -2035,6 +2152,9 @@ namespace AlibabaCloud DeleteLiveLazyPullStreamInfoConfigOutcome deleteLiveLazyPullStreamInfoConfig(const Model::DeleteLiveLazyPullStreamInfoConfigRequest &request)const; void deleteLiveLazyPullStreamInfoConfigAsync(const Model::DeleteLiveLazyPullStreamInfoConfigRequest& request, const DeleteLiveLazyPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveLazyPullStreamInfoConfigOutcomeCallable deleteLiveLazyPullStreamInfoConfigCallable(const Model::DeleteLiveLazyPullStreamInfoConfigRequest& request) const; + DeleteLiveMessageGroupOutcome deleteLiveMessageGroup(const Model::DeleteLiveMessageGroupRequest &request)const; + void deleteLiveMessageGroupAsync(const Model::DeleteLiveMessageGroupRequest& request, const DeleteLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveMessageGroupOutcomeCallable deleteLiveMessageGroupCallable(const Model::DeleteLiveMessageGroupRequest& request) const; DeleteLivePackageConfigOutcome deleteLivePackageConfig(const Model::DeleteLivePackageConfigRequest &request)const; void deleteLivePackageConfigAsync(const Model::DeleteLivePackageConfigRequest& request, const DeleteLivePackageConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLivePackageConfigOutcomeCallable deleteLivePackageConfigCallable(const Model::DeleteLivePackageConfigRequest& request) const; @@ -2302,6 +2422,15 @@ namespace AlibabaCloud DescribeLiveLazyPullStreamConfigOutcome describeLiveLazyPullStreamConfig(const Model::DescribeLiveLazyPullStreamConfigRequest &request)const; void describeLiveLazyPullStreamConfigAsync(const Model::DescribeLiveLazyPullStreamConfigRequest& request, const DescribeLiveLazyPullStreamConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveLazyPullStreamConfigOutcomeCallable describeLiveLazyPullStreamConfigCallable(const Model::DescribeLiveLazyPullStreamConfigRequest& request) const; + DescribeLiveMessageAppOutcome describeLiveMessageApp(const Model::DescribeLiveMessageAppRequest &request)const; + void describeLiveMessageAppAsync(const Model::DescribeLiveMessageAppRequest& request, const DescribeLiveMessageAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveMessageAppOutcomeCallable describeLiveMessageAppCallable(const Model::DescribeLiveMessageAppRequest& request) const; + DescribeLiveMessageGroupOutcome describeLiveMessageGroup(const Model::DescribeLiveMessageGroupRequest &request)const; + void describeLiveMessageGroupAsync(const Model::DescribeLiveMessageGroupRequest& request, const DescribeLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveMessageGroupOutcomeCallable describeLiveMessageGroupCallable(const Model::DescribeLiveMessageGroupRequest& request) const; + DescribeLiveMessageGroupBandOutcome describeLiveMessageGroupBand(const Model::DescribeLiveMessageGroupBandRequest &request)const; + void describeLiveMessageGroupBandAsync(const Model::DescribeLiveMessageGroupBandRequest& request, const DescribeLiveMessageGroupBandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveMessageGroupBandOutcomeCallable describeLiveMessageGroupBandCallable(const Model::DescribeLiveMessageGroupBandRequest& request) const; DescribeLivePackageConfigOutcome describeLivePackageConfig(const Model::DescribeLivePackageConfigRequest &request)const; void describeLivePackageConfigAsync(const Model::DescribeLivePackageConfigRequest& request, const DescribeLivePackageConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLivePackageConfigOutcomeCallable describeLivePackageConfigCallable(const Model::DescribeLivePackageConfigRequest& request) const; @@ -2563,6 +2692,9 @@ namespace AlibabaCloud JoinMessageGroupOutcome joinMessageGroup(const Model::JoinMessageGroupRequest &request)const; void joinMessageGroupAsync(const Model::JoinMessageGroupRequest& request, const JoinMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; JoinMessageGroupOutcomeCallable joinMessageGroupCallable(const Model::JoinMessageGroupRequest& request) const; + KickLiveMessageGroupUserOutcome kickLiveMessageGroupUser(const Model::KickLiveMessageGroupUserRequest &request)const; + void kickLiveMessageGroupUserAsync(const Model::KickLiveMessageGroupUserRequest& request, const KickLiveMessageGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KickLiveMessageGroupUserOutcomeCallable kickLiveMessageGroupUserCallable(const Model::KickLiveMessageGroupUserRequest& request) const; LeaveMessageGroupOutcome leaveMessageGroup(const Model::LeaveMessageGroupRequest &request)const; void leaveMessageGroupAsync(const Model::LeaveMessageGroupRequest& request, const LeaveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LeaveMessageGroupOutcomeCallable leaveMessageGroupCallable(const Model::LeaveMessageGroupRequest& request) const; @@ -2575,6 +2707,18 @@ namespace AlibabaCloud ListLiveDelayConfigOutcome listLiveDelayConfig(const Model::ListLiveDelayConfigRequest &request)const; void listLiveDelayConfigAsync(const Model::ListLiveDelayConfigRequest& request, const ListLiveDelayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListLiveDelayConfigOutcomeCallable listLiveDelayConfigCallable(const Model::ListLiveDelayConfigRequest& request) const; + ListLiveMessageAppsOutcome listLiveMessageApps(const Model::ListLiveMessageAppsRequest &request)const; + void listLiveMessageAppsAsync(const Model::ListLiveMessageAppsRequest& request, const ListLiveMessageAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLiveMessageAppsOutcomeCallable listLiveMessageAppsCallable(const Model::ListLiveMessageAppsRequest& request) const; + ListLiveMessageGroupMessagesOutcome listLiveMessageGroupMessages(const Model::ListLiveMessageGroupMessagesRequest &request)const; + void listLiveMessageGroupMessagesAsync(const Model::ListLiveMessageGroupMessagesRequest& request, const ListLiveMessageGroupMessagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLiveMessageGroupMessagesOutcomeCallable listLiveMessageGroupMessagesCallable(const Model::ListLiveMessageGroupMessagesRequest& request) const; + ListLiveMessageGroupUsersOutcome listLiveMessageGroupUsers(const Model::ListLiveMessageGroupUsersRequest &request)const; + void listLiveMessageGroupUsersAsync(const Model::ListLiveMessageGroupUsersRequest& request, const ListLiveMessageGroupUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLiveMessageGroupUsersOutcomeCallable listLiveMessageGroupUsersCallable(const Model::ListLiveMessageGroupUsersRequest& request) const; + ListLiveMessageGroupsOutcome listLiveMessageGroups(const Model::ListLiveMessageGroupsRequest &request)const; + void listLiveMessageGroupsAsync(const Model::ListLiveMessageGroupsRequest& request, const ListLiveMessageGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLiveMessageGroupsOutcomeCallable listLiveMessageGroupsCallable(const Model::ListLiveMessageGroupsRequest& request) const; ListLiveRealtimeLogDeliveryOutcome listLiveRealtimeLogDelivery(const Model::ListLiveRealtimeLogDeliveryRequest &request)const; void listLiveRealtimeLogDeliveryAsync(const Model::ListLiveRealtimeLogDeliveryRequest& request, const ListLiveRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListLiveRealtimeLogDeliveryOutcomeCallable listLiveRealtimeLogDeliveryCallable(const Model::ListLiveRealtimeLogDeliveryRequest& request) const; @@ -2623,6 +2767,24 @@ namespace AlibabaCloud ModifyLiveDomainSchdmByPropertyOutcome modifyLiveDomainSchdmByProperty(const Model::ModifyLiveDomainSchdmByPropertyRequest &request)const; void modifyLiveDomainSchdmByPropertyAsync(const Model::ModifyLiveDomainSchdmByPropertyRequest& request, const ModifyLiveDomainSchdmByPropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLiveDomainSchdmByPropertyOutcomeCallable modifyLiveDomainSchdmByPropertyCallable(const Model::ModifyLiveDomainSchdmByPropertyRequest& request) const; + ModifyLiveMessageAppAuditOutcome modifyLiveMessageAppAudit(const Model::ModifyLiveMessageAppAuditRequest &request)const; + void modifyLiveMessageAppAuditAsync(const Model::ModifyLiveMessageAppAuditRequest& request, const ModifyLiveMessageAppAuditAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageAppAuditOutcomeCallable modifyLiveMessageAppAuditCallable(const Model::ModifyLiveMessageAppAuditRequest& request) const; + ModifyLiveMessageAppCallbackOutcome modifyLiveMessageAppCallback(const Model::ModifyLiveMessageAppCallbackRequest &request)const; + void modifyLiveMessageAppCallbackAsync(const Model::ModifyLiveMessageAppCallbackRequest& request, const ModifyLiveMessageAppCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageAppCallbackOutcomeCallable modifyLiveMessageAppCallbackCallable(const Model::ModifyLiveMessageAppCallbackRequest& request) const; + ModifyLiveMessageAppDisableOutcome modifyLiveMessageAppDisable(const Model::ModifyLiveMessageAppDisableRequest &request)const; + void modifyLiveMessageAppDisableAsync(const Model::ModifyLiveMessageAppDisableRequest& request, const ModifyLiveMessageAppDisableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageAppDisableOutcomeCallable modifyLiveMessageAppDisableCallable(const Model::ModifyLiveMessageAppDisableRequest& request) const; + ModifyLiveMessageGroupOutcome modifyLiveMessageGroup(const Model::ModifyLiveMessageGroupRequest &request)const; + void modifyLiveMessageGroupAsync(const Model::ModifyLiveMessageGroupRequest& request, const ModifyLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageGroupOutcomeCallable modifyLiveMessageGroupCallable(const Model::ModifyLiveMessageGroupRequest& request) const; + ModifyLiveMessageGroupBandOutcome modifyLiveMessageGroupBand(const Model::ModifyLiveMessageGroupBandRequest &request)const; + void modifyLiveMessageGroupBandAsync(const Model::ModifyLiveMessageGroupBandRequest& request, const ModifyLiveMessageGroupBandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageGroupBandOutcomeCallable modifyLiveMessageGroupBandCallable(const Model::ModifyLiveMessageGroupBandRequest& request) const; + ModifyLiveMessageUserInfoOutcome modifyLiveMessageUserInfo(const Model::ModifyLiveMessageUserInfoRequest &request)const; + void modifyLiveMessageUserInfoAsync(const Model::ModifyLiveMessageUserInfoRequest& request, const ModifyLiveMessageUserInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLiveMessageUserInfoOutcomeCallable modifyLiveMessageUserInfoCallable(const Model::ModifyLiveMessageUserInfoRequest& request) const; ModifyLiveRealtimeLogDeliveryOutcome modifyLiveRealtimeLogDelivery(const Model::ModifyLiveRealtimeLogDeliveryRequest &request)const; void modifyLiveRealtimeLogDeliveryAsync(const Model::ModifyLiveRealtimeLogDeliveryRequest& request, const ModifyLiveRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLiveRealtimeLogDeliveryOutcomeCallable modifyLiveRealtimeLogDeliveryCallable(const Model::ModifyLiveRealtimeLogDeliveryRequest& request) const; @@ -2677,6 +2839,12 @@ namespace AlibabaCloud SendLikeOutcome sendLike(const Model::SendLikeRequest &request)const; void sendLikeAsync(const Model::SendLikeRequest& request, const SendLikeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendLikeOutcomeCallable sendLikeCallable(const Model::SendLikeRequest& request) const; + SendLiveMessageGroupOutcome sendLiveMessageGroup(const Model::SendLiveMessageGroupRequest &request)const; + void sendLiveMessageGroupAsync(const Model::SendLiveMessageGroupRequest& request, const SendLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendLiveMessageGroupOutcomeCallable sendLiveMessageGroupCallable(const Model::SendLiveMessageGroupRequest& request) const; + SendLiveMessageUserOutcome sendLiveMessageUser(const Model::SendLiveMessageUserRequest &request)const; + void sendLiveMessageUserAsync(const Model::SendLiveMessageUserRequest& request, const SendLiveMessageUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendLiveMessageUserOutcomeCallable sendLiveMessageUserCallable(const Model::SendLiveMessageUserRequest& request) const; SendMessageToGroupOutcome sendMessageToGroup(const Model::SendMessageToGroupRequest &request)const; void sendMessageToGroupAsync(const Model::SendMessageToGroupRequest& request, const SendMessageToGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendMessageToGroupOutcomeCallable sendMessageToGroupCallable(const Model::SendMessageToGroupRequest& request) const; diff --git a/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupRequest.h b/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupRequest.h new file mode 100644 index 000000000..5886f75e0 --- /dev/null +++ b/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupRequest.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_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT CheckLiveMessageUsersInGroupRequest : public RpcServiceRequest { +public: + CheckLiveMessageUsersInGroupRequest(); + ~CheckLiveMessageUsersInGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::vector getUserIds() const; + void setUserIds(const std::vector &userIds); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string groupId_; + std::string dataCenter_; + std::vector userIds_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupResult.h b/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupResult.h new file mode 100644 index 000000000..b51e4c4b4 --- /dev/null +++ b/live/include/alibabacloud/live/model/CheckLiveMessageUsersInGroupResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT CheckLiveMessageUsersInGroupResult : public ServiceResult + { + public: + struct UsersItem + { + std::string userId; + bool online; + }; + + + CheckLiveMessageUsersInGroupResult(); + explicit CheckLiveMessageUsersInGroupResult(const std::string &payload); + ~CheckLiveMessageUsersInGroupResult(); + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSINGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineRequest.h b/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineRequest.h new file mode 100644 index 000000000..caf76671b --- /dev/null +++ b/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineRequest.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_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT CheckLiveMessageUsersOnlineRequest : public RpcServiceRequest { +public: + CheckLiveMessageUsersOnlineRequest(); + ~CheckLiveMessageUsersOnlineRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::vector getUserIds() const; + void setUserIds(const std::vector &userIds); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string dataCenter_; + std::vector userIds_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINEREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineResult.h b/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineResult.h new file mode 100644 index 000000000..b50a4bcee --- /dev/null +++ b/live/include/alibabacloud/live/model/CheckLiveMessageUsersOnlineResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT CheckLiveMessageUsersOnlineResult : public ServiceResult + { + public: + struct Users + { + std::string userId; + bool online; + }; + + + CheckLiveMessageUsersOnlineResult(); + explicit CheckLiveMessageUsersOnlineResult(const std::string &payload); + ~CheckLiveMessageUsersOnlineResult(); + std::vector getUserList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector userList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_CHECKLIVEMESSAGEUSERSONLINERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/CreateLiveMessageAppRequest.h b/live/include/alibabacloud/live/model/CreateLiveMessageAppRequest.h new file mode 100644 index 000000000..5f7b554df --- /dev/null +++ b/live/include/alibabacloud/live/model/CreateLiveMessageAppRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageAppRequest : public RpcServiceRequest { +public: + CreateLiveMessageAppRequest(); + ~CreateLiveMessageAppRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getAuditType() const; + void setAuditType(int auditType); + std::string getAuditUrl() const; + void setAuditUrl(const std::string &auditUrl); + std::string getEventCallbackUrl() const; + void setEventCallbackUrl(const std::string &eventCallbackUrl); + +private: + std::string dataCenter_; + std::string appName_; + int auditType_; + std::string auditUrl_; + std::string eventCallbackUrl_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/CreateLiveMessageAppResult.h b/live/include/alibabacloud/live/model/CreateLiveMessageAppResult.h new file mode 100644 index 000000000..eebd70f03 --- /dev/null +++ b/live/include/alibabacloud/live/model/CreateLiveMessageAppResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageAppResult : public ServiceResult + { + public: + + + CreateLiveMessageAppResult(); + explicit CreateLiveMessageAppResult(const std::string &payload); + ~CreateLiveMessageAppResult(); + std::string getAppId()const; + std::string getAppKey()const; + std::string getAppSign()const; + + protected: + void parse(const std::string &payload); + private: + std::string appId_; + std::string appKey_; + std::string appSign_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEAPPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/CreateLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/CreateLiveMessageGroupRequest.h new file mode 100644 index 000000000..d92124593 --- /dev/null +++ b/live/include/alibabacloud/live/model/CreateLiveMessageGroupRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageGroupRequest : public RpcServiceRequest { +public: + CreateLiveMessageGroupRequest(); + ~CreateLiveMessageGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupInfo() const; + void setGroupInfo(const std::string &groupInfo); + std::string getCreatorId() const; + void setCreatorId(const std::string &creatorId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::vector getAdministrators() const; + void setAdministrators(const std::vector &administrators); + +private: + std::string groupId_; + std::string groupInfo_; + std::string creatorId_; + std::string dataCenter_; + std::string groupName_; + std::string appId_; + std::vector administrators_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/CreateLiveMessageGroupResult.h b/live/include/alibabacloud/live/model/CreateLiveMessageGroupResult.h new file mode 100644 index 000000000..28ef5af50 --- /dev/null +++ b/live/include/alibabacloud/live/model/CreateLiveMessageGroupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageGroupResult : public ServiceResult + { + public: + + + CreateLiveMessageGroupResult(); + explicit CreateLiveMessageGroupResult(const std::string &payload); + ~CreateLiveMessageGroupResult(); + bool getAlreadyDelete()const; + bool getAlreadyExists()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + bool alreadyDelete_; + bool alreadyExists_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEMESSAGEGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupRequest.h new file mode 100644 index 000000000..685e5b812 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupRequest.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_LIVE_MODEL_DELETELIVEMESSAGEGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageGroupRequest : public RpcServiceRequest { +public: + DeleteLiveMessageGroupRequest(); + ~DeleteLiveMessageGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getOperatorId() const; + void setOperatorId(const std::string &operatorId); + +private: + std::string groupId_; + std::string dataCenter_; + std::string appId_; + std::string operatorId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageGroupResult.h b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupResult.h new file mode 100644 index 000000000..6a399a58c --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupResult.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_LIVE_MODEL_DELETELIVEMESSAGEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageGroupResult : public ServiceResult + { + public: + + + DeleteLiveMessageGroupResult(); + explicit DeleteLiveMessageGroupResult(const std::string &payload); + ~DeleteLiveMessageGroupResult(); + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageAppRequest.h b/live/include/alibabacloud/live/model/DescribeLiveMessageAppRequest.h new file mode 100644 index 000000000..a3f705a80 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageAppRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageAppRequest : public RpcServiceRequest { +public: + DescribeLiveMessageAppRequest(); + ~DescribeLiveMessageAppRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string dataCenter_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h new file mode 100644 index 000000000..94c4d4125 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.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_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageAppResult : public ServiceResult + { + public: + + + DescribeLiveMessageAppResult(); + explicit DescribeLiveMessageAppResult(const std::string &payload); + ~DescribeLiveMessageAppResult(); + std::string getCallbackUrl()const; + std::string getAuditUrl()const; + std::string getAppId()const; + int getAuditType()const; + std::string getAppKey()const; + std::string getAppSign()const; + bool getDisable()const; + + protected: + void parse(const std::string &payload); + private: + std::string callbackUrl_; + std::string auditUrl_; + std::string appId_; + int auditType_; + std::string appKey_; + std::string appSign_; + bool disable_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEAPPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandRequest.h b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandRequest.h new file mode 100644 index 000000000..8c4821180 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandRequest.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_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageGroupBandRequest : public RpcServiceRequest { +public: + DescribeLiveMessageGroupBandRequest(); + ~DescribeLiveMessageGroupBandRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string groupId_; + std::string dataCenter_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandResult.h b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandResult.h new file mode 100644 index 000000000..9a141a7a9 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupBandResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageGroupBandResult : public ServiceResult + { + public: + + + DescribeLiveMessageGroupBandResult(); + explicit DescribeLiveMessageGroupBandResult(const std::string &payload); + ~DescribeLiveMessageGroupBandResult(); + bool getIsbannedAll()const; + std::vector getBannedUserList()const; + std::vector getUnbannedUserList()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + bool isbannedAll_; + std::vector bannedUserList_; + std::vector unbannedUserList_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPBANDRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupRequest.h new file mode 100644 index 000000000..762c4244d --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupRequest.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_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageGroupRequest : public RpcServiceRequest { +public: + DescribeLiveMessageGroupRequest(); + ~DescribeLiveMessageGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string groupId_; + std::string dataCenter_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageGroupResult.h b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupResult.h new file mode 100644 index 000000000..597272f18 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageGroupResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveMessageGroupResult : public ServiceResult + { + public: + + + DescribeLiveMessageGroupResult(); + explicit DescribeLiveMessageGroupResult(const std::string &payload); + ~DescribeLiveMessageGroupResult(); + std::string getGroupName()const; + std::vector getAdminList()const; + bool get_Delete()const; + long getDeletatime()const; + long getTotalTimes()const; + std::string getMsgAmount()const; + long getCreatetime()const; + std::string getGroupInfo()const; + std::string getCreatorId()const; + long getOnlineUserCounts()const; + std::string getGroupId()const; + std::string getDeletor()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::vector adminList_; + bool _delete_; + long deletatime_; + long totalTimes_; + std::string msgAmount_; + long createtime_; + std::string groupInfo_; + std::string creatorId_; + long onlineUserCounts_; + std::string groupId_; + std::string deletor_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEMESSAGEGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/KickLiveMessageGroupUserRequest.h b/live/include/alibabacloud/live/model/KickLiveMessageGroupUserRequest.h new file mode 100644 index 000000000..525e5dae8 --- /dev/null +++ b/live/include/alibabacloud/live/model/KickLiveMessageGroupUserRequest.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_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT KickLiveMessageGroupUserRequest : public RpcServiceRequest { +public: + KickLiveMessageGroupUserRequest(); + ~KickLiveMessageGroupUserRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getKickoffUser() const; + void setKickoffUser(const std::string &kickoffUser); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string groupId_; + std::string dataCenter_; + std::string kickoffUser_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/KickLiveMessageGroupUserResult.h b/live/include/alibabacloud/live/model/KickLiveMessageGroupUserResult.h new file mode 100644 index 000000000..ad1a2939a --- /dev/null +++ b/live/include/alibabacloud/live/model/KickLiveMessageGroupUserResult.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_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT KickLiveMessageGroupUserResult : public ServiceResult + { + public: + + + KickLiveMessageGroupUserResult(); + explicit KickLiveMessageGroupUserResult(const std::string &payload); + ~KickLiveMessageGroupUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_KICKLIVEMESSAGEGROUPUSERRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ListLiveMessageAppsRequest.h b/live/include/alibabacloud/live/model/ListLiveMessageAppsRequest.h new file mode 100644 index 000000000..1d8fd3792 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageAppsRequest.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_LIVE_MODEL_LISTLIVEMESSAGEAPPSREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageAppsRequest : public RpcServiceRequest { +public: + ListLiveMessageAppsRequest(); + ~ListLiveMessageAppsRequest(); + int getSortType() const; + void setSortType(int sortType); + long getNextPageToken() const; + void setNextPageToken(long nextPageToken); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + +private: + int sortType_; + long nextPageToken_; + std::string dataCenter_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEAPPSREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h new file mode 100644 index 000000000..bde9b0dec --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEAPPSRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageAppsResult : public ServiceResult + { + public: + struct Apps + { + std::string appId; + std::string appKey; + std::string appSign; + std::string disable; + }; + + + ListLiveMessageAppsResult(); + explicit ListLiveMessageAppsResult(const std::string &payload); + ~ListLiveMessageAppsResult(); + bool getHasMore()const; + long getNextPageToken()const; + std::vector getAppList()const; + + protected: + void parse(const std::string &payload); + private: + bool hasMore_; + long nextPageToken_; + std::vector appList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEAPPSRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesRequest.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesRequest.h new file mode 100644 index 000000000..61cfac641 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesRequest.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_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupMessagesRequest : public RpcServiceRequest { +public: + ListLiveMessageGroupMessagesRequest(); + ~ListLiveMessageGroupMessagesRequest(); + int getSortType() const; + void setSortType(int sortType); + long getNextPageToken() const; + void setNextPageToken(long nextPageToken); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + int getPageSize() const; + void setPageSize(int pageSize); + long getMsgType() const; + void setMsgType(long msgType); + +private: + int sortType_; + long nextPageToken_; + std::string groupId_; + long endTime_; + long beginTime_; + std::string dataCenter_; + std::string appId_; + int pageSize_; + long msgType_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesResult.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesResult.h new file mode 100644 index 000000000..99c0a9610 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupMessagesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupMessagesResult : public ServiceResult + { + public: + struct Messages + { + struct Sender + { + std::string userId; + std::string userInfo; + }; + Sender sender; + std::string msgTid; + long totalMessages; + long msgType; + long seqNumber; + std::string body; + long timestamp; + }; + + + ListLiveMessageGroupMessagesResult(); + explicit ListLiveMessageGroupMessagesResult(const std::string &payload); + ~ListLiveMessageGroupMessagesResult(); + bool getHasmore()const; + long getNextPageToken()const; + std::vector getMessageList()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + bool hasmore_; + long nextPageToken_; + std::vector messageList_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPMESSAGESRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersRequest.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersRequest.h new file mode 100644 index 000000000..5e5577a60 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupUsersRequest : public RpcServiceRequest { +public: + ListLiveMessageGroupUsersRequest(); + ~ListLiveMessageGroupUsersRequest(); + int getSortType() const; + void setSortType(int sortType); + long getNextPageToken() const; + void setNextPageToken(long nextPageToken); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int sortType_; + long nextPageToken_; + std::string groupId_; + std::string dataCenter_; + std::string appId_; + int pageSize_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersResult.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersResult.h new file mode 100644 index 000000000..9b006edb0 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupUsersResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupUsersResult : public ServiceResult + { + public: + struct Users + { + std::string userId; + std::string userInfo; + }; + + + ListLiveMessageGroupUsersResult(); + explicit ListLiveMessageGroupUsersResult(const std::string &payload); + ~ListLiveMessageGroupUsersResult(); + bool getHasmore()const; + long getNextPageToken()const; + std::vector getUserList()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + bool hasmore_; + long nextPageToken_; + std::vector userList_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPUSERSRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupsRequest.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupsRequest.h new file mode 100644 index 000000000..c458f5755 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupsRequest.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_LIVE_MODEL_LISTLIVEMESSAGEGROUPSREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupsRequest : public RpcServiceRequest { +public: + ListLiveMessageGroupsRequest(); + ~ListLiveMessageGroupsRequest(); + int getSortType() const; + void setSortType(int sortType); + long getNextPageToken() const; + void setNextPageToken(long nextPageToken); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + int sortType_; + long nextPageToken_; + std::string dataCenter_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPSREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ListLiveMessageGroupsResult.h b/live/include/alibabacloud/live/model/ListLiveMessageGroupsResult.h new file mode 100644 index 000000000..e0a3dd1a5 --- /dev/null +++ b/live/include/alibabacloud/live/model/ListLiveMessageGroupsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPSRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ListLiveMessageGroupsResult : public ServiceResult + { + public: + struct Groups + { + std::string groupName; + bool _delete; + std::vector adminList; + long createtime; + std::string groupInfo; + std::string creatorId; + std::string groupId; + }; + + + ListLiveMessageGroupsResult(); + explicit ListLiveMessageGroupsResult(const std::string &payload); + ~ListLiveMessageGroupsResult(); + bool getHasmore()const; + std::vector getGroupList()const; + std::string getNextpageToken()const; + + protected: + void parse(const std::string &payload); + private: + bool hasmore_; + std::vector groupList_; + std::string nextpageToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_LISTLIVEMESSAGEGROUPSRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditRequest.h new file mode 100644 index 000000000..2009755c5 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditRequest.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_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppAuditRequest : public RpcServiceRequest { +public: + ModifyLiveMessageAppAuditRequest(); + ~ModifyLiveMessageAppAuditRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + int getAuditType() const; + void setAuditType(int auditType); + std::string getAuditUrl() const; + void setAuditUrl(const std::string &auditUrl); + +private: + std::string dataCenter_; + std::string appId_; + int auditType_; + std::string auditUrl_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditResult.h new file mode 100644 index 000000000..5b7d24fe7 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppAuditResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppAuditResult : public ServiceResult + { + public: + + + ModifyLiveMessageAppAuditResult(); + explicit ModifyLiveMessageAppAuditResult(const std::string &payload); + ~ModifyLiveMessageAppAuditResult(); + std::string getAuditUrl()const; + std::string getAppId()const; + int getAuditType()const; + bool getAuditNeedAuthentication()const; + std::string getAppSign()const; + + protected: + void parse(const std::string &payload); + private: + std::string auditUrl_; + std::string appId_; + int auditType_; + bool auditNeedAuthentication_; + std::string appSign_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPAUDITRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackRequest.h new file mode 100644 index 000000000..4458723d5 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackRequest.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_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppCallbackRequest : public RpcServiceRequest { +public: + ModifyLiveMessageAppCallbackRequest(); + ~ModifyLiveMessageAppCallbackRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getEventCallbackUrl() const; + void setEventCallbackUrl(const std::string &eventCallbackUrl); + +private: + std::string dataCenter_; + std::string appId_; + std::string eventCallbackUrl_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackResult.h new file mode 100644 index 000000000..094a47f84 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppCallbackResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppCallbackResult : public ServiceResult + { + public: + + + ModifyLiveMessageAppCallbackResult(); + explicit ModifyLiveMessageAppCallbackResult(const std::string &payload); + ~ModifyLiveMessageAppCallbackResult(); + std::string getAppId()const; + bool getEventCallbackNeedAuthentication()const; + std::string getEventCallbackUrl()const; + std::string getAppSign()const; + + protected: + void parse(const std::string &payload); + private: + std::string appId_; + bool eventCallbackNeedAuthentication_; + std::string eventCallbackUrl_; + std::string appSign_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPCALLBACKRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableRequest.h new file mode 100644 index 000000000..f3b68c7d3 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableRequest.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_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppDisableRequest : public RpcServiceRequest { +public: + ModifyLiveMessageAppDisableRequest(); + ~ModifyLiveMessageAppDisableRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + bool getDisable() const; + void setDisable(bool disable); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string dataCenter_; + bool disable_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLEREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableResult.h new file mode 100644 index 000000000..9198a7da8 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageAppDisableResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageAppDisableResult : public ServiceResult + { + public: + + + ModifyLiveMessageAppDisableResult(); + explicit ModifyLiveMessageAppDisableResult(const std::string &payload); + ~ModifyLiveMessageAppDisableResult(); + std::string getAppId()const; + std::string getAppSign()const; + bool getDisable()const; + + protected: + void parse(const std::string &payload); + private: + std::string appId_; + std::string appSign_; + bool disable_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEAPPDISABLERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandRequest.h new file mode 100644 index 000000000..b57841a48 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageGroupBandRequest : public RpcServiceRequest { +public: + ModifyLiveMessageGroupBandRequest(); + ~ModifyLiveMessageGroupBandRequest(); + bool getBannedAll() const; + void setBannedAll(bool bannedAll); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::vector getExceptUsers() const; + void setExceptUsers(const std::vector &exceptUsers); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::vector getBannnedUsers() const; + void setBannnedUsers(const std::vector &bannnedUsers); + +private: + bool bannedAll_; + std::string groupId_; + std::vector exceptUsers_; + std::string dataCenter_; + std::string appId_; + std::vector bannnedUsers_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandResult.h new file mode 100644 index 000000000..07d89e14c --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupBandResult.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_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageGroupBandResult : public ServiceResult + { + public: + + + ModifyLiveMessageGroupBandResult(); + explicit ModifyLiveMessageGroupBandResult(const std::string &payload); + ~ModifyLiveMessageGroupBandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPBANDRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupRequest.h new file mode 100644 index 000000000..45db2228b --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageGroupRequest : public RpcServiceRequest { +public: + ModifyLiveMessageGroupRequest(); + ~ModifyLiveMessageGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupInfo() const; + void setGroupInfo(const std::string &groupInfo); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + bool getModifyInfo() const; + void setModifyInfo(bool modifyInfo); + std::vector getAdminList() const; + void setAdminList(const std::vector &adminList); + std::string getAppId() const; + void setAppId(const std::string &appId); + bool getModifyAdmin() const; + void setModifyAdmin(bool modifyAdmin); + +private: + std::string groupId_; + std::string groupInfo_; + std::string dataCenter_; + bool modifyInfo_; + std::vector adminList_; + std::string appId_; + bool modifyAdmin_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageGroupResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupResult.h new file mode 100644 index 000000000..071d73dfe --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageGroupResult.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_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageGroupResult : public ServiceResult + { + public: + + + ModifyLiveMessageGroupResult(); + explicit ModifyLiveMessageGroupResult(const std::string &payload); + ~ModifyLiveMessageGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoRequest.h b/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoRequest.h new file mode 100644 index 000000000..9b89e7c46 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoRequest.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_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFOREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageUserInfoRequest : public RpcServiceRequest { +public: + ModifyLiveMessageUserInfoRequest(); + ~ModifyLiveMessageUserInfoRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getUserMetaInfo() const; + void setUserMetaInfo(const std::string &userMetaInfo); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string dataCenter_; + std::string userId_; + std::string userMetaInfo_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFOREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoResult.h b/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoResult.h new file mode 100644 index 000000000..952733c9a --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyLiveMessageUserInfoResult.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_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFORESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyLiveMessageUserInfoResult : public ServiceResult + { + public: + + + ModifyLiveMessageUserInfoResult(); + explicit ModifyLiveMessageUserInfoResult(const std::string &payload); + ~ModifyLiveMessageUserInfoResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYLIVEMESSAGEUSERINFORESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h new file mode 100644 index 000000000..97cf728dd --- /dev/null +++ b/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.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_LIVE_MODEL_SENDLIVEMESSAGEGROUPREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT SendLiveMessageGroupRequest : public RpcServiceRequest { +public: + SendLiveMessageGroupRequest(); + ~SendLiveMessageGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getSenderMetaInfo() const; + void setSenderMetaInfo(const std::string &senderMetaInfo); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getMsgTid() const; + void setMsgTid(const std::string &msgTid); + std::string getBody() const; + void setBody(const std::string &body); + std::string getSenderId() const; + void setSenderId(const std::string &senderId); + std::string getAppId() const; + void setAppId(const std::string &appId); + long getMsgType() const; + void setMsgType(long msgType); + +private: + std::string groupId_; + std::string senderMetaInfo_; + std::string dataCenter_; + std::string msgTid_; + std::string body_; + std::string senderId_; + std::string appId_; + long msgType_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEGROUPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/SendLiveMessageGroupResult.h b/live/include/alibabacloud/live/model/SendLiveMessageGroupResult.h new file mode 100644 index 000000000..4a3d34442 --- /dev/null +++ b/live/include/alibabacloud/live/model/SendLiveMessageGroupResult.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_LIVE_MODEL_SENDLIVEMESSAGEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT SendLiveMessageGroupResult : public ServiceResult + { + public: + + + SendLiveMessageGroupResult(); + explicit SendLiveMessageGroupResult(const std::string &payload); + ~SendLiveMessageGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEGROUPRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/SendLiveMessageUserRequest.h b/live/include/alibabacloud/live/model/SendLiveMessageUserRequest.h new file mode 100644 index 000000000..b5e44fbb6 --- /dev/null +++ b/live/include/alibabacloud/live/model/SendLiveMessageUserRequest.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_LIVE_MODEL_SENDLIVEMESSAGEUSERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT SendLiveMessageUserRequest : public RpcServiceRequest { +public: + SendLiveMessageUserRequest(); + ~SendLiveMessageUserRequest(); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getMsgTid() const; + void setMsgTid(const std::string &msgTid); + std::string getBody() const; + void setBody(const std::string &body); + std::string getSenderId() const; + void setSenderId(const std::string &senderId); + std::string getReceiverId() const; + void setReceiverId(const std::string &receiverId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getSenderInfo() const; + void setSenderInfo(const std::string &senderInfo); + long getMsgType() const; + void setMsgType(long msgType); + +private: + std::string dataCenter_; + std::string msgTid_; + std::string body_; + std::string senderId_; + std::string receiverId_; + std::string appId_; + std::string senderInfo_; + long msgType_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEUSERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/SendLiveMessageUserResult.h b/live/include/alibabacloud/live/model/SendLiveMessageUserResult.h new file mode 100644 index 000000000..d4cde8192 --- /dev/null +++ b/live/include/alibabacloud/live/model/SendLiveMessageUserResult.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_LIVE_MODEL_SENDLIVEMESSAGEUSERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT SendLiveMessageUserResult : public ServiceResult + { + public: + + + SendLiveMessageUserResult(); + explicit SendLiveMessageUserResult(const std::string &payload); + ~SendLiveMessageUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_SENDLIVEMESSAGEUSERRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 4b2ec0b6b..03c34990a 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -1455,6 +1455,78 @@ LiveClient::CancelMuteGroupUserOutcomeCallable LiveClient::cancelMuteGroupUserCa return task->get_future(); } +LiveClient::CheckLiveMessageUsersInGroupOutcome LiveClient::checkLiveMessageUsersInGroup(const CheckLiveMessageUsersInGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckLiveMessageUsersInGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckLiveMessageUsersInGroupOutcome(CheckLiveMessageUsersInGroupResult(outcome.result())); + else + return CheckLiveMessageUsersInGroupOutcome(outcome.error()); +} + +void LiveClient::checkLiveMessageUsersInGroupAsync(const CheckLiveMessageUsersInGroupRequest& request, const CheckLiveMessageUsersInGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkLiveMessageUsersInGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::CheckLiveMessageUsersInGroupOutcomeCallable LiveClient::checkLiveMessageUsersInGroupCallable(const CheckLiveMessageUsersInGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkLiveMessageUsersInGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::CheckLiveMessageUsersOnlineOutcome LiveClient::checkLiveMessageUsersOnline(const CheckLiveMessageUsersOnlineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckLiveMessageUsersOnlineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckLiveMessageUsersOnlineOutcome(CheckLiveMessageUsersOnlineResult(outcome.result())); + else + return CheckLiveMessageUsersOnlineOutcome(outcome.error()); +} + +void LiveClient::checkLiveMessageUsersOnlineAsync(const CheckLiveMessageUsersOnlineRequest& request, const CheckLiveMessageUsersOnlineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkLiveMessageUsersOnline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::CheckLiveMessageUsersOnlineOutcomeCallable LiveClient::checkLiveMessageUsersOnlineCallable(const CheckLiveMessageUsersOnlineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkLiveMessageUsersOnline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::CloseLiveShiftOutcome LiveClient::closeLiveShift(const CloseLiveShiftRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +1815,78 @@ LiveClient::CreateLiveDelayConfigOutcomeCallable LiveClient::createLiveDelayConf return task->get_future(); } +LiveClient::CreateLiveMessageAppOutcome LiveClient::createLiveMessageApp(const CreateLiveMessageAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLiveMessageAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLiveMessageAppOutcome(CreateLiveMessageAppResult(outcome.result())); + else + return CreateLiveMessageAppOutcome(outcome.error()); +} + +void LiveClient::createLiveMessageAppAsync(const CreateLiveMessageAppRequest& request, const CreateLiveMessageAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLiveMessageApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::CreateLiveMessageAppOutcomeCallable LiveClient::createLiveMessageAppCallable(const CreateLiveMessageAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLiveMessageApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::CreateLiveMessageGroupOutcome LiveClient::createLiveMessageGroup(const CreateLiveMessageGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLiveMessageGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLiveMessageGroupOutcome(CreateLiveMessageGroupResult(outcome.result())); + else + return CreateLiveMessageGroupOutcome(outcome.error()); +} + +void LiveClient::createLiveMessageGroupAsync(const CreateLiveMessageGroupRequest& request, const CreateLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLiveMessageGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::CreateLiveMessageGroupOutcomeCallable LiveClient::createLiveMessageGroupCallable(const CreateLiveMessageGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLiveMessageGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::CreateLiveRealTimeLogDeliveryOutcome LiveClient::createLiveRealTimeLogDelivery(const CreateLiveRealTimeLogDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3003,42 @@ LiveClient::DeleteLiveLazyPullStreamInfoConfigOutcomeCallable LiveClient::delete return task->get_future(); } +LiveClient::DeleteLiveMessageGroupOutcome LiveClient::deleteLiveMessageGroup(const DeleteLiveMessageGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveMessageGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveMessageGroupOutcome(DeleteLiveMessageGroupResult(outcome.result())); + else + return DeleteLiveMessageGroupOutcome(outcome.error()); +} + +void LiveClient::deleteLiveMessageGroupAsync(const DeleteLiveMessageGroupRequest& request, const DeleteLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveMessageGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveMessageGroupOutcomeCallable LiveClient::deleteLiveMessageGroupCallable(const DeleteLiveMessageGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveMessageGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLivePackageConfigOutcome LiveClient::deleteLivePackageConfig(const DeleteLivePackageConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6063,6 +6243,114 @@ LiveClient::DescribeLiveLazyPullStreamConfigOutcomeCallable LiveClient::describe return task->get_future(); } +LiveClient::DescribeLiveMessageAppOutcome LiveClient::describeLiveMessageApp(const DescribeLiveMessageAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveMessageAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveMessageAppOutcome(DescribeLiveMessageAppResult(outcome.result())); + else + return DescribeLiveMessageAppOutcome(outcome.error()); +} + +void LiveClient::describeLiveMessageAppAsync(const DescribeLiveMessageAppRequest& request, const DescribeLiveMessageAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveMessageApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveMessageAppOutcomeCallable LiveClient::describeLiveMessageAppCallable(const DescribeLiveMessageAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveMessageApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::DescribeLiveMessageGroupOutcome LiveClient::describeLiveMessageGroup(const DescribeLiveMessageGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveMessageGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveMessageGroupOutcome(DescribeLiveMessageGroupResult(outcome.result())); + else + return DescribeLiveMessageGroupOutcome(outcome.error()); +} + +void LiveClient::describeLiveMessageGroupAsync(const DescribeLiveMessageGroupRequest& request, const DescribeLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveMessageGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveMessageGroupOutcomeCallable LiveClient::describeLiveMessageGroupCallable(const DescribeLiveMessageGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveMessageGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::DescribeLiveMessageGroupBandOutcome LiveClient::describeLiveMessageGroupBand(const DescribeLiveMessageGroupBandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveMessageGroupBandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveMessageGroupBandOutcome(DescribeLiveMessageGroupBandResult(outcome.result())); + else + return DescribeLiveMessageGroupBandOutcome(outcome.error()); +} + +void LiveClient::describeLiveMessageGroupBandAsync(const DescribeLiveMessageGroupBandRequest& request, const DescribeLiveMessageGroupBandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveMessageGroupBand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveMessageGroupBandOutcomeCallable LiveClient::describeLiveMessageGroupBandCallable(const DescribeLiveMessageGroupBandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveMessageGroupBand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLivePackageConfigOutcome LiveClient::describeLivePackageConfig(const DescribeLivePackageConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9195,6 +9483,42 @@ LiveClient::JoinMessageGroupOutcomeCallable LiveClient::joinMessageGroupCallable return task->get_future(); } +LiveClient::KickLiveMessageGroupUserOutcome LiveClient::kickLiveMessageGroupUser(const KickLiveMessageGroupUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KickLiveMessageGroupUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KickLiveMessageGroupUserOutcome(KickLiveMessageGroupUserResult(outcome.result())); + else + return KickLiveMessageGroupUserOutcome(outcome.error()); +} + +void LiveClient::kickLiveMessageGroupUserAsync(const KickLiveMessageGroupUserRequest& request, const KickLiveMessageGroupUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, kickLiveMessageGroupUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::KickLiveMessageGroupUserOutcomeCallable LiveClient::kickLiveMessageGroupUserCallable(const KickLiveMessageGroupUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->kickLiveMessageGroupUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::LeaveMessageGroupOutcome LiveClient::leaveMessageGroup(const LeaveMessageGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9339,6 +9663,150 @@ LiveClient::ListLiveDelayConfigOutcomeCallable LiveClient::listLiveDelayConfigCa return task->get_future(); } +LiveClient::ListLiveMessageAppsOutcome LiveClient::listLiveMessageApps(const ListLiveMessageAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLiveMessageAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLiveMessageAppsOutcome(ListLiveMessageAppsResult(outcome.result())); + else + return ListLiveMessageAppsOutcome(outcome.error()); +} + +void LiveClient::listLiveMessageAppsAsync(const ListLiveMessageAppsRequest& request, const ListLiveMessageAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLiveMessageApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ListLiveMessageAppsOutcomeCallable LiveClient::listLiveMessageAppsCallable(const ListLiveMessageAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLiveMessageApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ListLiveMessageGroupMessagesOutcome LiveClient::listLiveMessageGroupMessages(const ListLiveMessageGroupMessagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLiveMessageGroupMessagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLiveMessageGroupMessagesOutcome(ListLiveMessageGroupMessagesResult(outcome.result())); + else + return ListLiveMessageGroupMessagesOutcome(outcome.error()); +} + +void LiveClient::listLiveMessageGroupMessagesAsync(const ListLiveMessageGroupMessagesRequest& request, const ListLiveMessageGroupMessagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLiveMessageGroupMessages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ListLiveMessageGroupMessagesOutcomeCallable LiveClient::listLiveMessageGroupMessagesCallable(const ListLiveMessageGroupMessagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLiveMessageGroupMessages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ListLiveMessageGroupUsersOutcome LiveClient::listLiveMessageGroupUsers(const ListLiveMessageGroupUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLiveMessageGroupUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLiveMessageGroupUsersOutcome(ListLiveMessageGroupUsersResult(outcome.result())); + else + return ListLiveMessageGroupUsersOutcome(outcome.error()); +} + +void LiveClient::listLiveMessageGroupUsersAsync(const ListLiveMessageGroupUsersRequest& request, const ListLiveMessageGroupUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLiveMessageGroupUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ListLiveMessageGroupUsersOutcomeCallable LiveClient::listLiveMessageGroupUsersCallable(const ListLiveMessageGroupUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLiveMessageGroupUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ListLiveMessageGroupsOutcome LiveClient::listLiveMessageGroups(const ListLiveMessageGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLiveMessageGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLiveMessageGroupsOutcome(ListLiveMessageGroupsResult(outcome.result())); + else + return ListLiveMessageGroupsOutcome(outcome.error()); +} + +void LiveClient::listLiveMessageGroupsAsync(const ListLiveMessageGroupsRequest& request, const ListLiveMessageGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLiveMessageGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ListLiveMessageGroupsOutcomeCallable LiveClient::listLiveMessageGroupsCallable(const ListLiveMessageGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLiveMessageGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ListLiveRealtimeLogDeliveryOutcome LiveClient::listLiveRealtimeLogDelivery(const ListLiveRealtimeLogDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9915,6 +10383,222 @@ LiveClient::ModifyLiveDomainSchdmByPropertyOutcomeCallable LiveClient::modifyLiv return task->get_future(); } +LiveClient::ModifyLiveMessageAppAuditOutcome LiveClient::modifyLiveMessageAppAudit(const ModifyLiveMessageAppAuditRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageAppAuditOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageAppAuditOutcome(ModifyLiveMessageAppAuditResult(outcome.result())); + else + return ModifyLiveMessageAppAuditOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageAppAuditAsync(const ModifyLiveMessageAppAuditRequest& request, const ModifyLiveMessageAppAuditAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageAppAudit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageAppAuditOutcomeCallable LiveClient::modifyLiveMessageAppAuditCallable(const ModifyLiveMessageAppAuditRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageAppAudit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ModifyLiveMessageAppCallbackOutcome LiveClient::modifyLiveMessageAppCallback(const ModifyLiveMessageAppCallbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageAppCallbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageAppCallbackOutcome(ModifyLiveMessageAppCallbackResult(outcome.result())); + else + return ModifyLiveMessageAppCallbackOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageAppCallbackAsync(const ModifyLiveMessageAppCallbackRequest& request, const ModifyLiveMessageAppCallbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageAppCallback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageAppCallbackOutcomeCallable LiveClient::modifyLiveMessageAppCallbackCallable(const ModifyLiveMessageAppCallbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageAppCallback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ModifyLiveMessageAppDisableOutcome LiveClient::modifyLiveMessageAppDisable(const ModifyLiveMessageAppDisableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageAppDisableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageAppDisableOutcome(ModifyLiveMessageAppDisableResult(outcome.result())); + else + return ModifyLiveMessageAppDisableOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageAppDisableAsync(const ModifyLiveMessageAppDisableRequest& request, const ModifyLiveMessageAppDisableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageAppDisable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageAppDisableOutcomeCallable LiveClient::modifyLiveMessageAppDisableCallable(const ModifyLiveMessageAppDisableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageAppDisable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ModifyLiveMessageGroupOutcome LiveClient::modifyLiveMessageGroup(const ModifyLiveMessageGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageGroupOutcome(ModifyLiveMessageGroupResult(outcome.result())); + else + return ModifyLiveMessageGroupOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageGroupAsync(const ModifyLiveMessageGroupRequest& request, const ModifyLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageGroupOutcomeCallable LiveClient::modifyLiveMessageGroupCallable(const ModifyLiveMessageGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ModifyLiveMessageGroupBandOutcome LiveClient::modifyLiveMessageGroupBand(const ModifyLiveMessageGroupBandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageGroupBandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageGroupBandOutcome(ModifyLiveMessageGroupBandResult(outcome.result())); + else + return ModifyLiveMessageGroupBandOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageGroupBandAsync(const ModifyLiveMessageGroupBandRequest& request, const ModifyLiveMessageGroupBandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageGroupBand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageGroupBandOutcomeCallable LiveClient::modifyLiveMessageGroupBandCallable(const ModifyLiveMessageGroupBandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageGroupBand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::ModifyLiveMessageUserInfoOutcome LiveClient::modifyLiveMessageUserInfo(const ModifyLiveMessageUserInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLiveMessageUserInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLiveMessageUserInfoOutcome(ModifyLiveMessageUserInfoResult(outcome.result())); + else + return ModifyLiveMessageUserInfoOutcome(outcome.error()); +} + +void LiveClient::modifyLiveMessageUserInfoAsync(const ModifyLiveMessageUserInfoRequest& request, const ModifyLiveMessageUserInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLiveMessageUserInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyLiveMessageUserInfoOutcomeCallable LiveClient::modifyLiveMessageUserInfoCallable(const ModifyLiveMessageUserInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLiveMessageUserInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ModifyLiveRealtimeLogDeliveryOutcome LiveClient::modifyLiveRealtimeLogDelivery(const ModifyLiveRealtimeLogDeliveryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10563,6 +11247,78 @@ LiveClient::SendLikeOutcomeCallable LiveClient::sendLikeCallable(const SendLikeR return task->get_future(); } +LiveClient::SendLiveMessageGroupOutcome LiveClient::sendLiveMessageGroup(const SendLiveMessageGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendLiveMessageGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendLiveMessageGroupOutcome(SendLiveMessageGroupResult(outcome.result())); + else + return SendLiveMessageGroupOutcome(outcome.error()); +} + +void LiveClient::sendLiveMessageGroupAsync(const SendLiveMessageGroupRequest& request, const SendLiveMessageGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendLiveMessageGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::SendLiveMessageGroupOutcomeCallable LiveClient::sendLiveMessageGroupCallable(const SendLiveMessageGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendLiveMessageGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::SendLiveMessageUserOutcome LiveClient::sendLiveMessageUser(const SendLiveMessageUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendLiveMessageUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendLiveMessageUserOutcome(SendLiveMessageUserResult(outcome.result())); + else + return SendLiveMessageUserOutcome(outcome.error()); +} + +void LiveClient::sendLiveMessageUserAsync(const SendLiveMessageUserRequest& request, const SendLiveMessageUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendLiveMessageUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::SendLiveMessageUserOutcomeCallable LiveClient::sendLiveMessageUserCallable(const SendLiveMessageUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendLiveMessageUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::SendMessageToGroupOutcome LiveClient::sendMessageToGroup(const SendMessageToGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/CheckLiveMessageUsersInGroupRequest.cc b/live/src/model/CheckLiveMessageUsersInGroupRequest.cc new file mode 100644 index 000000000..307ed00e6 --- /dev/null +++ b/live/src/model/CheckLiveMessageUsersInGroupRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::CheckLiveMessageUsersInGroupRequest; + +CheckLiveMessageUsersInGroupRequest::CheckLiveMessageUsersInGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "CheckLiveMessageUsersInGroup") { + setMethod(HttpRequest::Method::Post); +} + +CheckLiveMessageUsersInGroupRequest::~CheckLiveMessageUsersInGroupRequest() {} + +std::string CheckLiveMessageUsersInGroupRequest::getGroupId() const { + return groupId_; +} + +void CheckLiveMessageUsersInGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string CheckLiveMessageUsersInGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void CheckLiveMessageUsersInGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::vector CheckLiveMessageUsersInGroupRequest::getUserIds() const { + return userIds_; +} + +void CheckLiveMessageUsersInGroupRequest::setUserIds(const std::vector &userIds) { + userIds_ = userIds; + for(int dep1 = 0; dep1 != userIds.size(); dep1++) { + setParameter(std::string("UserIds") + "." + std::to_string(dep1 + 1), userIds[dep1]); + } +} + +std::string CheckLiveMessageUsersInGroupRequest::getAppId() const { + return appId_; +} + +void CheckLiveMessageUsersInGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/CheckLiveMessageUsersInGroupResult.cc b/live/src/model/CheckLiveMessageUsersInGroupResult.cc new file mode 100644 index 000000000..9838e5de1 --- /dev/null +++ b/live/src/model/CheckLiveMessageUsersInGroupResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +CheckLiveMessageUsersInGroupResult::CheckLiveMessageUsersInGroupResult() : + ServiceResult() +{} + +CheckLiveMessageUsersInGroupResult::CheckLiveMessageUsersInGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckLiveMessageUsersInGroupResult::~CheckLiveMessageUsersInGroupResult() +{} + +void CheckLiveMessageUsersInGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUsersNode = value["Users"]["usersItem"]; + for (auto valueUsersusersItem : allUsersNode) + { + UsersItem usersObject; + if(!valueUsersusersItem["UserId"].isNull()) + usersObject.userId = valueUsersusersItem["UserId"].asString(); + if(!valueUsersusersItem["Online"].isNull()) + usersObject.online = valueUsersusersItem["Online"].asString() == "true"; + users_.push_back(usersObject); + } + +} + +std::vector CheckLiveMessageUsersInGroupResult::getUsers()const +{ + return users_; +} + diff --git a/live/src/model/CheckLiveMessageUsersOnlineRequest.cc b/live/src/model/CheckLiveMessageUsersOnlineRequest.cc new file mode 100644 index 000000000..ddfe3c0c5 --- /dev/null +++ b/live/src/model/CheckLiveMessageUsersOnlineRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live::Model::CheckLiveMessageUsersOnlineRequest; + +CheckLiveMessageUsersOnlineRequest::CheckLiveMessageUsersOnlineRequest() + : RpcServiceRequest("live", "2016-11-01", "CheckLiveMessageUsersOnline") { + setMethod(HttpRequest::Method::Post); +} + +CheckLiveMessageUsersOnlineRequest::~CheckLiveMessageUsersOnlineRequest() {} + +std::string CheckLiveMessageUsersOnlineRequest::getDataCenter() const { + return dataCenter_; +} + +void CheckLiveMessageUsersOnlineRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::vector CheckLiveMessageUsersOnlineRequest::getUserIds() const { + return userIds_; +} + +void CheckLiveMessageUsersOnlineRequest::setUserIds(const std::vector &userIds) { + userIds_ = userIds; + for(int dep1 = 0; dep1 != userIds.size(); dep1++) { + setParameter(std::string("UserIds") + "." + std::to_string(dep1 + 1), userIds[dep1]); + } +} + +std::string CheckLiveMessageUsersOnlineRequest::getAppId() const { + return appId_; +} + +void CheckLiveMessageUsersOnlineRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/CheckLiveMessageUsersOnlineResult.cc b/live/src/model/CheckLiveMessageUsersOnlineResult.cc new file mode 100644 index 000000000..177181fef --- /dev/null +++ b/live/src/model/CheckLiveMessageUsersOnlineResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +CheckLiveMessageUsersOnlineResult::CheckLiveMessageUsersOnlineResult() : + ServiceResult() +{} + +CheckLiveMessageUsersOnlineResult::CheckLiveMessageUsersOnlineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckLiveMessageUsersOnlineResult::~CheckLiveMessageUsersOnlineResult() +{} + +void CheckLiveMessageUsersOnlineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserListNode = value["UserList"]["Users"]; + for (auto valueUserListUsers : allUserListNode) + { + Users userListObject; + if(!valueUserListUsers["UserId"].isNull()) + userListObject.userId = valueUserListUsers["UserId"].asString(); + if(!valueUserListUsers["Online"].isNull()) + userListObject.online = valueUserListUsers["Online"].asString() == "true"; + userList_.push_back(userListObject); + } + +} + +std::vector CheckLiveMessageUsersOnlineResult::getUserList()const +{ + return userList_; +} + diff --git a/live/src/model/CreateLiveMessageAppRequest.cc b/live/src/model/CreateLiveMessageAppRequest.cc new file mode 100644 index 000000000..b78107745 --- /dev/null +++ b/live/src/model/CreateLiveMessageAppRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::CreateLiveMessageAppRequest; + +CreateLiveMessageAppRequest::CreateLiveMessageAppRequest() + : RpcServiceRequest("live", "2016-11-01", "CreateLiveMessageApp") { + setMethod(HttpRequest::Method::Post); +} + +CreateLiveMessageAppRequest::~CreateLiveMessageAppRequest() {} + +std::string CreateLiveMessageAppRequest::getDataCenter() const { + return dataCenter_; +} + +void CreateLiveMessageAppRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string CreateLiveMessageAppRequest::getAppName() const { + return appName_; +} + +void CreateLiveMessageAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int CreateLiveMessageAppRequest::getAuditType() const { + return auditType_; +} + +void CreateLiveMessageAppRequest::setAuditType(int auditType) { + auditType_ = auditType; + setParameter(std::string("AuditType"), std::to_string(auditType)); +} + +std::string CreateLiveMessageAppRequest::getAuditUrl() const { + return auditUrl_; +} + +void CreateLiveMessageAppRequest::setAuditUrl(const std::string &auditUrl) { + auditUrl_ = auditUrl; + setParameter(std::string("AuditUrl"), auditUrl); +} + +std::string CreateLiveMessageAppRequest::getEventCallbackUrl() const { + return eventCallbackUrl_; +} + +void CreateLiveMessageAppRequest::setEventCallbackUrl(const std::string &eventCallbackUrl) { + eventCallbackUrl_ = eventCallbackUrl; + setParameter(std::string("EventCallbackUrl"), eventCallbackUrl); +} + diff --git a/live/src/model/CreateLiveMessageAppResult.cc b/live/src/model/CreateLiveMessageAppResult.cc new file mode 100644 index 000000000..30fc8aaf4 --- /dev/null +++ b/live/src/model/CreateLiveMessageAppResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +CreateLiveMessageAppResult::CreateLiveMessageAppResult() : + ServiceResult() +{} + +CreateLiveMessageAppResult::CreateLiveMessageAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLiveMessageAppResult::~CreateLiveMessageAppResult() +{} + +void CreateLiveMessageAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + if(!value["AppKey"].isNull()) + appKey_ = value["AppKey"].asString(); + if(!value["AppSign"].isNull()) + appSign_ = value["AppSign"].asString(); + +} + +std::string CreateLiveMessageAppResult::getAppId()const +{ + return appId_; +} + +std::string CreateLiveMessageAppResult::getAppKey()const +{ + return appKey_; +} + +std::string CreateLiveMessageAppResult::getAppSign()const +{ + return appSign_; +} + diff --git a/live/src/model/CreateLiveMessageGroupRequest.cc b/live/src/model/CreateLiveMessageGroupRequest.cc new file mode 100644 index 000000000..3c6f49a18 --- /dev/null +++ b/live/src/model/CreateLiveMessageGroupRequest.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::CreateLiveMessageGroupRequest; + +CreateLiveMessageGroupRequest::CreateLiveMessageGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "CreateLiveMessageGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateLiveMessageGroupRequest::~CreateLiveMessageGroupRequest() {} + +std::string CreateLiveMessageGroupRequest::getGroupId() const { + return groupId_; +} + +void CreateLiveMessageGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string CreateLiveMessageGroupRequest::getGroupInfo() const { + return groupInfo_; +} + +void CreateLiveMessageGroupRequest::setGroupInfo(const std::string &groupInfo) { + groupInfo_ = groupInfo; + setParameter(std::string("GroupInfo"), groupInfo); +} + +std::string CreateLiveMessageGroupRequest::getCreatorId() const { + return creatorId_; +} + +void CreateLiveMessageGroupRequest::setCreatorId(const std::string &creatorId) { + creatorId_ = creatorId; + setParameter(std::string("CreatorId"), creatorId); +} + +std::string CreateLiveMessageGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void CreateLiveMessageGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string CreateLiveMessageGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateLiveMessageGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string CreateLiveMessageGroupRequest::getAppId() const { + return appId_; +} + +void CreateLiveMessageGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::vector CreateLiveMessageGroupRequest::getAdministrators() const { + return administrators_; +} + +void CreateLiveMessageGroupRequest::setAdministrators(const std::vector &administrators) { + administrators_ = administrators; + for(int dep1 = 0; dep1 != administrators.size(); dep1++) { + setParameter(std::string("Administrators") + "." + std::to_string(dep1 + 1), administrators[dep1]); + } +} + diff --git a/live/src/model/CreateLiveMessageGroupResult.cc b/live/src/model/CreateLiveMessageGroupResult.cc new file mode 100644 index 000000000..fc5ec75df --- /dev/null +++ b/live/src/model/CreateLiveMessageGroupResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +CreateLiveMessageGroupResult::CreateLiveMessageGroupResult() : + ServiceResult() +{} + +CreateLiveMessageGroupResult::CreateLiveMessageGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLiveMessageGroupResult::~CreateLiveMessageGroupResult() +{} + +void CreateLiveMessageGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["AlreadyExists"].isNull()) + alreadyExists_ = value["AlreadyExists"].asString() == "true"; + if(!value["AlreadyDelete"].isNull()) + alreadyDelete_ = value["AlreadyDelete"].asString() == "true"; + +} + +bool CreateLiveMessageGroupResult::getAlreadyDelete()const +{ + return alreadyDelete_; +} + +bool CreateLiveMessageGroupResult::getAlreadyExists()const +{ + return alreadyExists_; +} + +std::string CreateLiveMessageGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/live/src/model/DeleteLiveMessageGroupRequest.cc b/live/src/model/DeleteLiveMessageGroupRequest.cc new file mode 100644 index 000000000..a7841a0b3 --- /dev/null +++ b/live/src/model/DeleteLiveMessageGroupRequest.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::Live::Model::DeleteLiveMessageGroupRequest; + +DeleteLiveMessageGroupRequest::DeleteLiveMessageGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "DeleteLiveMessageGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLiveMessageGroupRequest::~DeleteLiveMessageGroupRequest() {} + +std::string DeleteLiveMessageGroupRequest::getGroupId() const { + return groupId_; +} + +void DeleteLiveMessageGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DeleteLiveMessageGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void DeleteLiveMessageGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DeleteLiveMessageGroupRequest::getAppId() const { + return appId_; +} + +void DeleteLiveMessageGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DeleteLiveMessageGroupRequest::getOperatorId() const { + return operatorId_; +} + +void DeleteLiveMessageGroupRequest::setOperatorId(const std::string &operatorId) { + operatorId_ = operatorId; + setParameter(std::string("OperatorId"), operatorId); +} + diff --git a/live/src/model/DeleteLiveMessageGroupResult.cc b/live/src/model/DeleteLiveMessageGroupResult.cc new file mode 100644 index 000000000..b80016679 --- /dev/null +++ b/live/src/model/DeleteLiveMessageGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DeleteLiveMessageGroupResult::DeleteLiveMessageGroupResult() : + ServiceResult() +{} + +DeleteLiveMessageGroupResult::DeleteLiveMessageGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLiveMessageGroupResult::~DeleteLiveMessageGroupResult() +{} + +void DeleteLiveMessageGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string DeleteLiveMessageGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/live/src/model/DescribeLiveMessageAppRequest.cc b/live/src/model/DescribeLiveMessageAppRequest.cc new file mode 100644 index 000000000..1b0c94d1d --- /dev/null +++ b/live/src/model/DescribeLiveMessageAppRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveMessageAppRequest; + +DescribeLiveMessageAppRequest::DescribeLiveMessageAppRequest() + : RpcServiceRequest("live", "2016-11-01", "DescribeLiveMessageApp") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveMessageAppRequest::~DescribeLiveMessageAppRequest() {} + +std::string DescribeLiveMessageAppRequest::getDataCenter() const { + return dataCenter_; +} + +void DescribeLiveMessageAppRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DescribeLiveMessageAppRequest::getAppId() const { + return appId_; +} + +void DescribeLiveMessageAppRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/DescribeLiveMessageAppResult.cc b/live/src/model/DescribeLiveMessageAppResult.cc new file mode 100644 index 000000000..c9faa7da2 --- /dev/null +++ b/live/src/model/DescribeLiveMessageAppResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveMessageAppResult::DescribeLiveMessageAppResult() : + ServiceResult() +{} + +DescribeLiveMessageAppResult::DescribeLiveMessageAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveMessageAppResult::~DescribeLiveMessageAppResult() +{} + +void DescribeLiveMessageAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + if(!value["AppKey"].isNull()) + appKey_ = value["AppKey"].asString(); + if(!value["AppSign"].isNull()) + appSign_ = value["AppSign"].asString(); + if(!value["AuditType"].isNull()) + auditType_ = std::stoi(value["AuditType"].asString()); + if(!value["AuditUrl"].isNull()) + auditUrl_ = value["AuditUrl"].asString(); + if(!value["CallbackUrl"].isNull()) + callbackUrl_ = value["CallbackUrl"].asString(); + if(!value["Disable"].isNull()) + disable_ = value["Disable"].asString() == "true"; + +} + +std::string DescribeLiveMessageAppResult::getCallbackUrl()const +{ + return callbackUrl_; +} + +std::string DescribeLiveMessageAppResult::getAuditUrl()const +{ + return auditUrl_; +} + +std::string DescribeLiveMessageAppResult::getAppId()const +{ + return appId_; +} + +int DescribeLiveMessageAppResult::getAuditType()const +{ + return auditType_; +} + +std::string DescribeLiveMessageAppResult::getAppKey()const +{ + return appKey_; +} + +std::string DescribeLiveMessageAppResult::getAppSign()const +{ + return appSign_; +} + +bool DescribeLiveMessageAppResult::getDisable()const +{ + return disable_; +} + diff --git a/live/src/model/DescribeLiveMessageGroupBandRequest.cc b/live/src/model/DescribeLiveMessageGroupBandRequest.cc new file mode 100644 index 000000000..885082a95 --- /dev/null +++ b/live/src/model/DescribeLiveMessageGroupBandRequest.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::Live::Model::DescribeLiveMessageGroupBandRequest; + +DescribeLiveMessageGroupBandRequest::DescribeLiveMessageGroupBandRequest() + : RpcServiceRequest("live", "2016-11-01", "DescribeLiveMessageGroupBand") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveMessageGroupBandRequest::~DescribeLiveMessageGroupBandRequest() {} + +std::string DescribeLiveMessageGroupBandRequest::getGroupId() const { + return groupId_; +} + +void DescribeLiveMessageGroupBandRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DescribeLiveMessageGroupBandRequest::getDataCenter() const { + return dataCenter_; +} + +void DescribeLiveMessageGroupBandRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DescribeLiveMessageGroupBandRequest::getAppId() const { + return appId_; +} + +void DescribeLiveMessageGroupBandRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/DescribeLiveMessageGroupBandResult.cc b/live/src/model/DescribeLiveMessageGroupBandResult.cc new file mode 100644 index 000000000..f6fe27078 --- /dev/null +++ b/live/src/model/DescribeLiveMessageGroupBandResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveMessageGroupBandResult::DescribeLiveMessageGroupBandResult() : + ServiceResult() +{} + +DescribeLiveMessageGroupBandResult::DescribeLiveMessageGroupBandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveMessageGroupBandResult::~DescribeLiveMessageGroupBandResult() +{} + +void DescribeLiveMessageGroupBandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBannedUserList = value["BannedUserList"]["BannedUsers"]; + for (const auto &item : allBannedUserList) + bannedUserList_.push_back(item.asString()); + auto allUnbannedUserList = value["UnbannedUserList"]["UnbannedUsers"]; + for (const auto &item : allUnbannedUserList) + unbannedUserList_.push_back(item.asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["IsbannedAll"].isNull()) + isbannedAll_ = value["IsbannedAll"].asString() == "true"; + +} + +bool DescribeLiveMessageGroupBandResult::getIsbannedAll()const +{ + return isbannedAll_; +} + +std::vector DescribeLiveMessageGroupBandResult::getBannedUserList()const +{ + return bannedUserList_; +} + +std::vector DescribeLiveMessageGroupBandResult::getUnbannedUserList()const +{ + return unbannedUserList_; +} + +std::string DescribeLiveMessageGroupBandResult::getGroupId()const +{ + return groupId_; +} + diff --git a/live/src/model/DescribeLiveMessageGroupRequest.cc b/live/src/model/DescribeLiveMessageGroupRequest.cc new file mode 100644 index 000000000..e966ae3aa --- /dev/null +++ b/live/src/model/DescribeLiveMessageGroupRequest.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::Live::Model::DescribeLiveMessageGroupRequest; + +DescribeLiveMessageGroupRequest::DescribeLiveMessageGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "DescribeLiveMessageGroup") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveMessageGroupRequest::~DescribeLiveMessageGroupRequest() {} + +std::string DescribeLiveMessageGroupRequest::getGroupId() const { + return groupId_; +} + +void DescribeLiveMessageGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DescribeLiveMessageGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void DescribeLiveMessageGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DescribeLiveMessageGroupRequest::getAppId() const { + return appId_; +} + +void DescribeLiveMessageGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/DescribeLiveMessageGroupResult.cc b/live/src/model/DescribeLiveMessageGroupResult.cc new file mode 100644 index 000000000..86d8d564a --- /dev/null +++ b/live/src/model/DescribeLiveMessageGroupResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveMessageGroupResult::DescribeLiveMessageGroupResult() : + ServiceResult() +{} + +DescribeLiveMessageGroupResult::DescribeLiveMessageGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveMessageGroupResult::~DescribeLiveMessageGroupResult() +{} + +void DescribeLiveMessageGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAdminList = value["AdminList"]["Admins"]; + for (const auto &item : allAdminList) + adminList_.push_back(item.asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["CreatorId"].isNull()) + creatorId_ = value["CreatorId"].asString(); + if(!value["Createtime"].isNull()) + createtime_ = std::stol(value["Createtime"].asString()); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["GroupInfo"].isNull()) + groupInfo_ = value["GroupInfo"].asString(); + if(!value["Delete"].isNull()) + _delete_ = value["Delete"].asString() == "true"; + if(!value["TotalTimes"].isNull()) + totalTimes_ = std::stol(value["TotalTimes"].asString()); + if(!value["OnlineUserCounts"].isNull()) + onlineUserCounts_ = std::stol(value["OnlineUserCounts"].asString()); + if(!value["MsgAmount"].isNull()) + msgAmount_ = value["MsgAmount"].asString(); + if(!value["Deletatime"].isNull()) + deletatime_ = std::stol(value["Deletatime"].asString()); + if(!value["Deletor"].isNull()) + deletor_ = value["Deletor"].asString(); + +} + +std::string DescribeLiveMessageGroupResult::getGroupName()const +{ + return groupName_; +} + +std::vector DescribeLiveMessageGroupResult::getAdminList()const +{ + return adminList_; +} + +bool DescribeLiveMessageGroupResult::get_Delete()const +{ + return _delete_; +} + +long DescribeLiveMessageGroupResult::getDeletatime()const +{ + return deletatime_; +} + +long DescribeLiveMessageGroupResult::getTotalTimes()const +{ + return totalTimes_; +} + +std::string DescribeLiveMessageGroupResult::getMsgAmount()const +{ + return msgAmount_; +} + +long DescribeLiveMessageGroupResult::getCreatetime()const +{ + return createtime_; +} + +std::string DescribeLiveMessageGroupResult::getGroupInfo()const +{ + return groupInfo_; +} + +std::string DescribeLiveMessageGroupResult::getCreatorId()const +{ + return creatorId_; +} + +long DescribeLiveMessageGroupResult::getOnlineUserCounts()const +{ + return onlineUserCounts_; +} + +std::string DescribeLiveMessageGroupResult::getGroupId()const +{ + return groupId_; +} + +std::string DescribeLiveMessageGroupResult::getDeletor()const +{ + return deletor_; +} + diff --git a/live/src/model/KickLiveMessageGroupUserRequest.cc b/live/src/model/KickLiveMessageGroupUserRequest.cc new file mode 100644 index 000000000..07465e3ef --- /dev/null +++ b/live/src/model/KickLiveMessageGroupUserRequest.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::Live::Model::KickLiveMessageGroupUserRequest; + +KickLiveMessageGroupUserRequest::KickLiveMessageGroupUserRequest() + : RpcServiceRequest("live", "2016-11-01", "KickLiveMessageGroupUser") { + setMethod(HttpRequest::Method::Post); +} + +KickLiveMessageGroupUserRequest::~KickLiveMessageGroupUserRequest() {} + +std::string KickLiveMessageGroupUserRequest::getGroupId() const { + return groupId_; +} + +void KickLiveMessageGroupUserRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string KickLiveMessageGroupUserRequest::getDataCenter() const { + return dataCenter_; +} + +void KickLiveMessageGroupUserRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string KickLiveMessageGroupUserRequest::getKickoffUser() const { + return kickoffUser_; +} + +void KickLiveMessageGroupUserRequest::setKickoffUser(const std::string &kickoffUser) { + kickoffUser_ = kickoffUser; + setParameter(std::string("KickoffUser"), kickoffUser); +} + +std::string KickLiveMessageGroupUserRequest::getAppId() const { + return appId_; +} + +void KickLiveMessageGroupUserRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/KickLiveMessageGroupUserResult.cc b/live/src/model/KickLiveMessageGroupUserResult.cc new file mode 100644 index 000000000..36675cc02 --- /dev/null +++ b/live/src/model/KickLiveMessageGroupUserResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +KickLiveMessageGroupUserResult::KickLiveMessageGroupUserResult() : + ServiceResult() +{} + +KickLiveMessageGroupUserResult::KickLiveMessageGroupUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KickLiveMessageGroupUserResult::~KickLiveMessageGroupUserResult() +{} + +void KickLiveMessageGroupUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/ListLiveMessageAppsRequest.cc b/live/src/model/ListLiveMessageAppsRequest.cc new file mode 100644 index 000000000..67cd86c35 --- /dev/null +++ b/live/src/model/ListLiveMessageAppsRequest.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::Live::Model::ListLiveMessageAppsRequest; + +ListLiveMessageAppsRequest::ListLiveMessageAppsRequest() + : RpcServiceRequest("live", "2016-11-01", "ListLiveMessageApps") { + setMethod(HttpRequest::Method::Post); +} + +ListLiveMessageAppsRequest::~ListLiveMessageAppsRequest() {} + +int ListLiveMessageAppsRequest::getSortType() const { + return sortType_; +} + +void ListLiveMessageAppsRequest::setSortType(int sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), std::to_string(sortType)); +} + +long ListLiveMessageAppsRequest::getNextPageToken() const { + return nextPageToken_; +} + +void ListLiveMessageAppsRequest::setNextPageToken(long nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), std::to_string(nextPageToken)); +} + +std::string ListLiveMessageAppsRequest::getDataCenter() const { + return dataCenter_; +} + +void ListLiveMessageAppsRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + diff --git a/live/src/model/ListLiveMessageAppsResult.cc b/live/src/model/ListLiveMessageAppsResult.cc new file mode 100644 index 000000000..427758ebf --- /dev/null +++ b/live/src/model/ListLiveMessageAppsResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ListLiveMessageAppsResult::ListLiveMessageAppsResult() : + ServiceResult() +{} + +ListLiveMessageAppsResult::ListLiveMessageAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLiveMessageAppsResult::~ListLiveMessageAppsResult() +{} + +void ListLiveMessageAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAppListNode = value["AppList"]["Apps"]; + for (auto valueAppListApps : allAppListNode) + { + Apps appListObject; + if(!valueAppListApps["AppId"].isNull()) + appListObject.appId = valueAppListApps["AppId"].asString(); + if(!valueAppListApps["AppKey"].isNull()) + appListObject.appKey = valueAppListApps["AppKey"].asString(); + if(!valueAppListApps["AppSign"].isNull()) + appListObject.appSign = valueAppListApps["AppSign"].asString(); + if(!valueAppListApps["Disable"].isNull()) + appListObject.disable = valueAppListApps["Disable"].asString(); + appList_.push_back(appListObject); + } + if(!value["HasMore"].isNull()) + hasMore_ = value["HasMore"].asString() == "true"; + if(!value["NextPageToken"].isNull()) + nextPageToken_ = std::stol(value["NextPageToken"].asString()); + +} + +bool ListLiveMessageAppsResult::getHasMore()const +{ + return hasMore_; +} + +long ListLiveMessageAppsResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector ListLiveMessageAppsResult::getAppList()const +{ + return appList_; +} + diff --git a/live/src/model/ListLiveMessageGroupMessagesRequest.cc b/live/src/model/ListLiveMessageGroupMessagesRequest.cc new file mode 100644 index 000000000..43a457b15 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupMessagesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::ListLiveMessageGroupMessagesRequest; + +ListLiveMessageGroupMessagesRequest::ListLiveMessageGroupMessagesRequest() + : RpcServiceRequest("live", "2016-11-01", "ListLiveMessageGroupMessages") { + setMethod(HttpRequest::Method::Post); +} + +ListLiveMessageGroupMessagesRequest::~ListLiveMessageGroupMessagesRequest() {} + +int ListLiveMessageGroupMessagesRequest::getSortType() const { + return sortType_; +} + +void ListLiveMessageGroupMessagesRequest::setSortType(int sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), std::to_string(sortType)); +} + +long ListLiveMessageGroupMessagesRequest::getNextPageToken() const { + return nextPageToken_; +} + +void ListLiveMessageGroupMessagesRequest::setNextPageToken(long nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), std::to_string(nextPageToken)); +} + +std::string ListLiveMessageGroupMessagesRequest::getGroupId() const { + return groupId_; +} + +void ListLiveMessageGroupMessagesRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +long ListLiveMessageGroupMessagesRequest::getEndTime() const { + return endTime_; +} + +void ListLiveMessageGroupMessagesRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListLiveMessageGroupMessagesRequest::getBeginTime() const { + return beginTime_; +} + +void ListLiveMessageGroupMessagesRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); +} + +std::string ListLiveMessageGroupMessagesRequest::getDataCenter() const { + return dataCenter_; +} + +void ListLiveMessageGroupMessagesRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ListLiveMessageGroupMessagesRequest::getAppId() const { + return appId_; +} + +void ListLiveMessageGroupMessagesRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +int ListLiveMessageGroupMessagesRequest::getPageSize() const { + return pageSize_; +} + +void ListLiveMessageGroupMessagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListLiveMessageGroupMessagesRequest::getMsgType() const { + return msgType_; +} + +void ListLiveMessageGroupMessagesRequest::setMsgType(long msgType) { + msgType_ = msgType; + setParameter(std::string("MsgType"), std::to_string(msgType)); +} + diff --git a/live/src/model/ListLiveMessageGroupMessagesResult.cc b/live/src/model/ListLiveMessageGroupMessagesResult.cc new file mode 100644 index 000000000..27695bd86 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupMessagesResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ListLiveMessageGroupMessagesResult::ListLiveMessageGroupMessagesResult() : + ServiceResult() +{} + +ListLiveMessageGroupMessagesResult::ListLiveMessageGroupMessagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLiveMessageGroupMessagesResult::~ListLiveMessageGroupMessagesResult() +{} + +void ListLiveMessageGroupMessagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMessageListNode = value["MessageList"]["Messages"]; + for (auto valueMessageListMessages : allMessageListNode) + { + Messages messageListObject; + if(!valueMessageListMessages["Body"].isNull()) + messageListObject.body = valueMessageListMessages["Body"].asString(); + if(!valueMessageListMessages["Timestamp"].isNull()) + messageListObject.timestamp = std::stol(valueMessageListMessages["Timestamp"].asString()); + if(!valueMessageListMessages["MsgTid"].isNull()) + messageListObject.msgTid = valueMessageListMessages["MsgTid"].asString(); + if(!valueMessageListMessages["MsgType"].isNull()) + messageListObject.msgType = std::stol(valueMessageListMessages["MsgType"].asString()); + if(!valueMessageListMessages["SeqNumber"].isNull()) + messageListObject.seqNumber = std::stol(valueMessageListMessages["SeqNumber"].asString()); + if(!valueMessageListMessages["TotalMessages"].isNull()) + messageListObject.totalMessages = std::stol(valueMessageListMessages["TotalMessages"].asString()); + auto senderNode = value["Sender"]; + if(!senderNode["UserId"].isNull()) + messageListObject.sender.userId = senderNode["UserId"].asString(); + if(!senderNode["UserInfo"].isNull()) + messageListObject.sender.userInfo = senderNode["UserInfo"].asString(); + messageList_.push_back(messageListObject); + } + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = std::stol(value["NextPageToken"].asString()); + if(!value["Hasmore"].isNull()) + hasmore_ = value["Hasmore"].asString() == "true"; + +} + +bool ListLiveMessageGroupMessagesResult::getHasmore()const +{ + return hasmore_; +} + +long ListLiveMessageGroupMessagesResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector ListLiveMessageGroupMessagesResult::getMessageList()const +{ + return messageList_; +} + +std::string ListLiveMessageGroupMessagesResult::getGroupId()const +{ + return groupId_; +} + diff --git a/live/src/model/ListLiveMessageGroupUsersRequest.cc b/live/src/model/ListLiveMessageGroupUsersRequest.cc new file mode 100644 index 000000000..8a73088e6 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupUsersRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::ListLiveMessageGroupUsersRequest; + +ListLiveMessageGroupUsersRequest::ListLiveMessageGroupUsersRequest() + : RpcServiceRequest("live", "2016-11-01", "ListLiveMessageGroupUsers") { + setMethod(HttpRequest::Method::Post); +} + +ListLiveMessageGroupUsersRequest::~ListLiveMessageGroupUsersRequest() {} + +int ListLiveMessageGroupUsersRequest::getSortType() const { + return sortType_; +} + +void ListLiveMessageGroupUsersRequest::setSortType(int sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), std::to_string(sortType)); +} + +long ListLiveMessageGroupUsersRequest::getNextPageToken() const { + return nextPageToken_; +} + +void ListLiveMessageGroupUsersRequest::setNextPageToken(long nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), std::to_string(nextPageToken)); +} + +std::string ListLiveMessageGroupUsersRequest::getGroupId() const { + return groupId_; +} + +void ListLiveMessageGroupUsersRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string ListLiveMessageGroupUsersRequest::getDataCenter() const { + return dataCenter_; +} + +void ListLiveMessageGroupUsersRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ListLiveMessageGroupUsersRequest::getAppId() const { + return appId_; +} + +void ListLiveMessageGroupUsersRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +int ListLiveMessageGroupUsersRequest::getPageSize() const { + return pageSize_; +} + +void ListLiveMessageGroupUsersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/live/src/model/ListLiveMessageGroupUsersResult.cc b/live/src/model/ListLiveMessageGroupUsersResult.cc new file mode 100644 index 000000000..fcfe72975 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupUsersResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ListLiveMessageGroupUsersResult::ListLiveMessageGroupUsersResult() : + ServiceResult() +{} + +ListLiveMessageGroupUsersResult::ListLiveMessageGroupUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLiveMessageGroupUsersResult::~ListLiveMessageGroupUsersResult() +{} + +void ListLiveMessageGroupUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserListNode = value["UserList"]["Users"]; + for (auto valueUserListUsers : allUserListNode) + { + Users userListObject; + if(!valueUserListUsers["UserId"].isNull()) + userListObject.userId = valueUserListUsers["UserId"].asString(); + if(!valueUserListUsers["UserInfo"].isNull()) + userListObject.userInfo = valueUserListUsers["UserInfo"].asString(); + userList_.push_back(userListObject); + } + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["NextPageToken"].isNull()) + nextPageToken_ = std::stol(value["NextPageToken"].asString()); + if(!value["Hasmore"].isNull()) + hasmore_ = value["Hasmore"].asString() == "true"; + +} + +bool ListLiveMessageGroupUsersResult::getHasmore()const +{ + return hasmore_; +} + +long ListLiveMessageGroupUsersResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector ListLiveMessageGroupUsersResult::getUserList()const +{ + return userList_; +} + +std::string ListLiveMessageGroupUsersResult::getGroupId()const +{ + return groupId_; +} + diff --git a/live/src/model/ListLiveMessageGroupsRequest.cc b/live/src/model/ListLiveMessageGroupsRequest.cc new file mode 100644 index 000000000..02307ac35 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupsRequest.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::Live::Model::ListLiveMessageGroupsRequest; + +ListLiveMessageGroupsRequest::ListLiveMessageGroupsRequest() + : RpcServiceRequest("live", "2016-11-01", "ListLiveMessageGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListLiveMessageGroupsRequest::~ListLiveMessageGroupsRequest() {} + +int ListLiveMessageGroupsRequest::getSortType() const { + return sortType_; +} + +void ListLiveMessageGroupsRequest::setSortType(int sortType) { + sortType_ = sortType; + setParameter(std::string("SortType"), std::to_string(sortType)); +} + +long ListLiveMessageGroupsRequest::getNextPageToken() const { + return nextPageToken_; +} + +void ListLiveMessageGroupsRequest::setNextPageToken(long nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), std::to_string(nextPageToken)); +} + +std::string ListLiveMessageGroupsRequest::getDataCenter() const { + return dataCenter_; +} + +void ListLiveMessageGroupsRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ListLiveMessageGroupsRequest::getAppId() const { + return appId_; +} + +void ListLiveMessageGroupsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/ListLiveMessageGroupsResult.cc b/live/src/model/ListLiveMessageGroupsResult.cc new file mode 100644 index 000000000..40e6d8d31 --- /dev/null +++ b/live/src/model/ListLiveMessageGroupsResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ListLiveMessageGroupsResult::ListLiveMessageGroupsResult() : + ServiceResult() +{} + +ListLiveMessageGroupsResult::ListLiveMessageGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLiveMessageGroupsResult::~ListLiveMessageGroupsResult() +{} + +void ListLiveMessageGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroupListNode = value["GroupList"]["Groups"]; + for (auto valueGroupListGroups : allGroupListNode) + { + Groups groupListObject; + if(!valueGroupListGroups["GroupId"].isNull()) + groupListObject.groupId = valueGroupListGroups["GroupId"].asString(); + if(!valueGroupListGroups["CreatorId"].isNull()) + groupListObject.creatorId = valueGroupListGroups["CreatorId"].asString(); + if(!valueGroupListGroups["Createtime"].isNull()) + groupListObject.createtime = std::stol(valueGroupListGroups["Createtime"].asString()); + if(!valueGroupListGroups["GroupName"].isNull()) + groupListObject.groupName = valueGroupListGroups["GroupName"].asString(); + if(!valueGroupListGroups["GroupInfo"].isNull()) + groupListObject.groupInfo = valueGroupListGroups["GroupInfo"].asString(); + if(!valueGroupListGroups["Delete"].isNull()) + groupListObject._delete = valueGroupListGroups["Delete"].asString() == "true"; + auto allAdminList = value["AdminList"]["Admins"]; + for (auto value : allAdminList) + groupListObject.adminList.push_back(value.asString()); + groupList_.push_back(groupListObject); + } + if(!value["Hasmore"].isNull()) + hasmore_ = value["Hasmore"].asString() == "true"; + if(!value["NextpageToken"].isNull()) + nextpageToken_ = value["NextpageToken"].asString(); + +} + +bool ListLiveMessageGroupsResult::getHasmore()const +{ + return hasmore_; +} + +std::vector ListLiveMessageGroupsResult::getGroupList()const +{ + return groupList_; +} + +std::string ListLiveMessageGroupsResult::getNextpageToken()const +{ + return nextpageToken_; +} + diff --git a/live/src/model/ModifyLiveMessageAppAuditRequest.cc b/live/src/model/ModifyLiveMessageAppAuditRequest.cc new file mode 100644 index 000000000..32c32ebaf --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppAuditRequest.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::Live::Model::ModifyLiveMessageAppAuditRequest; + +ModifyLiveMessageAppAuditRequest::ModifyLiveMessageAppAuditRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageAppAudit") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageAppAuditRequest::~ModifyLiveMessageAppAuditRequest() {} + +std::string ModifyLiveMessageAppAuditRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageAppAuditRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ModifyLiveMessageAppAuditRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageAppAuditRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +int ModifyLiveMessageAppAuditRequest::getAuditType() const { + return auditType_; +} + +void ModifyLiveMessageAppAuditRequest::setAuditType(int auditType) { + auditType_ = auditType; + setParameter(std::string("AuditType"), std::to_string(auditType)); +} + +std::string ModifyLiveMessageAppAuditRequest::getAuditUrl() const { + return auditUrl_; +} + +void ModifyLiveMessageAppAuditRequest::setAuditUrl(const std::string &auditUrl) { + auditUrl_ = auditUrl; + setParameter(std::string("AuditUrl"), auditUrl); +} + diff --git a/live/src/model/ModifyLiveMessageAppAuditResult.cc b/live/src/model/ModifyLiveMessageAppAuditResult.cc new file mode 100644 index 000000000..92e880a44 --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppAuditResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageAppAuditResult::ModifyLiveMessageAppAuditResult() : + ServiceResult() +{} + +ModifyLiveMessageAppAuditResult::ModifyLiveMessageAppAuditResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageAppAuditResult::~ModifyLiveMessageAppAuditResult() +{} + +void ModifyLiveMessageAppAuditResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + if(!value["AppSign"].isNull()) + appSign_ = value["AppSign"].asString(); + if(!value["AuditType"].isNull()) + auditType_ = std::stoi(value["AuditType"].asString()); + if(!value["AuditUrl"].isNull()) + auditUrl_ = value["AuditUrl"].asString(); + if(!value["AuditNeedAuthentication"].isNull()) + auditNeedAuthentication_ = value["AuditNeedAuthentication"].asString() == "true"; + +} + +std::string ModifyLiveMessageAppAuditResult::getAuditUrl()const +{ + return auditUrl_; +} + +std::string ModifyLiveMessageAppAuditResult::getAppId()const +{ + return appId_; +} + +int ModifyLiveMessageAppAuditResult::getAuditType()const +{ + return auditType_; +} + +bool ModifyLiveMessageAppAuditResult::getAuditNeedAuthentication()const +{ + return auditNeedAuthentication_; +} + +std::string ModifyLiveMessageAppAuditResult::getAppSign()const +{ + return appSign_; +} + diff --git a/live/src/model/ModifyLiveMessageAppCallbackRequest.cc b/live/src/model/ModifyLiveMessageAppCallbackRequest.cc new file mode 100644 index 000000000..0041ca575 --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppCallbackRequest.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::Live::Model::ModifyLiveMessageAppCallbackRequest; + +ModifyLiveMessageAppCallbackRequest::ModifyLiveMessageAppCallbackRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageAppCallback") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageAppCallbackRequest::~ModifyLiveMessageAppCallbackRequest() {} + +std::string ModifyLiveMessageAppCallbackRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageAppCallbackRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ModifyLiveMessageAppCallbackRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageAppCallbackRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string ModifyLiveMessageAppCallbackRequest::getEventCallbackUrl() const { + return eventCallbackUrl_; +} + +void ModifyLiveMessageAppCallbackRequest::setEventCallbackUrl(const std::string &eventCallbackUrl) { + eventCallbackUrl_ = eventCallbackUrl; + setParameter(std::string("EventCallbackUrl"), eventCallbackUrl); +} + diff --git a/live/src/model/ModifyLiveMessageAppCallbackResult.cc b/live/src/model/ModifyLiveMessageAppCallbackResult.cc new file mode 100644 index 000000000..07d4b4b6f --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppCallbackResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageAppCallbackResult::ModifyLiveMessageAppCallbackResult() : + ServiceResult() +{} + +ModifyLiveMessageAppCallbackResult::ModifyLiveMessageAppCallbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageAppCallbackResult::~ModifyLiveMessageAppCallbackResult() +{} + +void ModifyLiveMessageAppCallbackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + if(!value["AppSign"].isNull()) + appSign_ = value["AppSign"].asString(); + if(!value["EventCallbackUrl"].isNull()) + eventCallbackUrl_ = value["EventCallbackUrl"].asString(); + if(!value["EventCallbackNeedAuthentication"].isNull()) + eventCallbackNeedAuthentication_ = value["EventCallbackNeedAuthentication"].asString() == "true"; + +} + +std::string ModifyLiveMessageAppCallbackResult::getAppId()const +{ + return appId_; +} + +bool ModifyLiveMessageAppCallbackResult::getEventCallbackNeedAuthentication()const +{ + return eventCallbackNeedAuthentication_; +} + +std::string ModifyLiveMessageAppCallbackResult::getEventCallbackUrl()const +{ + return eventCallbackUrl_; +} + +std::string ModifyLiveMessageAppCallbackResult::getAppSign()const +{ + return appSign_; +} + diff --git a/live/src/model/ModifyLiveMessageAppDisableRequest.cc b/live/src/model/ModifyLiveMessageAppDisableRequest.cc new file mode 100644 index 000000000..044a5550d --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppDisableRequest.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::Live::Model::ModifyLiveMessageAppDisableRequest; + +ModifyLiveMessageAppDisableRequest::ModifyLiveMessageAppDisableRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageAppDisable") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageAppDisableRequest::~ModifyLiveMessageAppDisableRequest() {} + +std::string ModifyLiveMessageAppDisableRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageAppDisableRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +bool ModifyLiveMessageAppDisableRequest::getDisable() const { + return disable_; +} + +void ModifyLiveMessageAppDisableRequest::setDisable(bool disable) { + disable_ = disable; + setParameter(std::string("Disable"), disable ? "true" : "false"); +} + +std::string ModifyLiveMessageAppDisableRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageAppDisableRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/ModifyLiveMessageAppDisableResult.cc b/live/src/model/ModifyLiveMessageAppDisableResult.cc new file mode 100644 index 000000000..07566e985 --- /dev/null +++ b/live/src/model/ModifyLiveMessageAppDisableResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageAppDisableResult::ModifyLiveMessageAppDisableResult() : + ServiceResult() +{} + +ModifyLiveMessageAppDisableResult::ModifyLiveMessageAppDisableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageAppDisableResult::~ModifyLiveMessageAppDisableResult() +{} + +void ModifyLiveMessageAppDisableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + if(!value["AppSign"].isNull()) + appSign_ = value["AppSign"].asString(); + if(!value["Disable"].isNull()) + disable_ = value["Disable"].asString() == "true"; + +} + +std::string ModifyLiveMessageAppDisableResult::getAppId()const +{ + return appId_; +} + +std::string ModifyLiveMessageAppDisableResult::getAppSign()const +{ + return appSign_; +} + +bool ModifyLiveMessageAppDisableResult::getDisable()const +{ + return disable_; +} + diff --git a/live/src/model/ModifyLiveMessageGroupBandRequest.cc b/live/src/model/ModifyLiveMessageGroupBandRequest.cc new file mode 100644 index 000000000..b8708b6ee --- /dev/null +++ b/live/src/model/ModifyLiveMessageGroupBandRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::ModifyLiveMessageGroupBandRequest; + +ModifyLiveMessageGroupBandRequest::ModifyLiveMessageGroupBandRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageGroupBand") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageGroupBandRequest::~ModifyLiveMessageGroupBandRequest() {} + +bool ModifyLiveMessageGroupBandRequest::getBannedAll() const { + return bannedAll_; +} + +void ModifyLiveMessageGroupBandRequest::setBannedAll(bool bannedAll) { + bannedAll_ = bannedAll; + setParameter(std::string("BannedAll"), bannedAll ? "true" : "false"); +} + +std::string ModifyLiveMessageGroupBandRequest::getGroupId() const { + return groupId_; +} + +void ModifyLiveMessageGroupBandRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::vector ModifyLiveMessageGroupBandRequest::getExceptUsers() const { + return exceptUsers_; +} + +void ModifyLiveMessageGroupBandRequest::setExceptUsers(const std::vector &exceptUsers) { + exceptUsers_ = exceptUsers; + for(int dep1 = 0; dep1 != exceptUsers.size(); dep1++) { + setParameter(std::string("ExceptUsers") + "." + std::to_string(dep1 + 1), exceptUsers[dep1]); + } +} + +std::string ModifyLiveMessageGroupBandRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageGroupBandRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ModifyLiveMessageGroupBandRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageGroupBandRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::vector ModifyLiveMessageGroupBandRequest::getBannnedUsers() const { + return bannnedUsers_; +} + +void ModifyLiveMessageGroupBandRequest::setBannnedUsers(const std::vector &bannnedUsers) { + bannnedUsers_ = bannnedUsers; + for(int dep1 = 0; dep1 != bannnedUsers.size(); dep1++) { + setParameter(std::string("BannnedUsers") + "." + std::to_string(dep1 + 1), bannnedUsers[dep1]); + } +} + diff --git a/live/src/model/ModifyLiveMessageGroupBandResult.cc b/live/src/model/ModifyLiveMessageGroupBandResult.cc new file mode 100644 index 000000000..339ed0e53 --- /dev/null +++ b/live/src/model/ModifyLiveMessageGroupBandResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageGroupBandResult::ModifyLiveMessageGroupBandResult() : + ServiceResult() +{} + +ModifyLiveMessageGroupBandResult::ModifyLiveMessageGroupBandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageGroupBandResult::~ModifyLiveMessageGroupBandResult() +{} + +void ModifyLiveMessageGroupBandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/ModifyLiveMessageGroupRequest.cc b/live/src/model/ModifyLiveMessageGroupRequest.cc new file mode 100644 index 000000000..f9b803133 --- /dev/null +++ b/live/src/model/ModifyLiveMessageGroupRequest.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::ModifyLiveMessageGroupRequest; + +ModifyLiveMessageGroupRequest::ModifyLiveMessageGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageGroup") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageGroupRequest::~ModifyLiveMessageGroupRequest() {} + +std::string ModifyLiveMessageGroupRequest::getGroupId() const { + return groupId_; +} + +void ModifyLiveMessageGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string ModifyLiveMessageGroupRequest::getGroupInfo() const { + return groupInfo_; +} + +void ModifyLiveMessageGroupRequest::setGroupInfo(const std::string &groupInfo) { + groupInfo_ = groupInfo; + setParameter(std::string("GroupInfo"), groupInfo); +} + +std::string ModifyLiveMessageGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +bool ModifyLiveMessageGroupRequest::getModifyInfo() const { + return modifyInfo_; +} + +void ModifyLiveMessageGroupRequest::setModifyInfo(bool modifyInfo) { + modifyInfo_ = modifyInfo; + setParameter(std::string("ModifyInfo"), modifyInfo ? "true" : "false"); +} + +std::vector ModifyLiveMessageGroupRequest::getAdminList() const { + return adminList_; +} + +void ModifyLiveMessageGroupRequest::setAdminList(const std::vector &adminList) { + adminList_ = adminList; + for(int dep1 = 0; dep1 != adminList.size(); dep1++) { + setParameter(std::string("AdminList") + "." + std::to_string(dep1 + 1), adminList[dep1]); + } +} + +std::string ModifyLiveMessageGroupRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +bool ModifyLiveMessageGroupRequest::getModifyAdmin() const { + return modifyAdmin_; +} + +void ModifyLiveMessageGroupRequest::setModifyAdmin(bool modifyAdmin) { + modifyAdmin_ = modifyAdmin; + setParameter(std::string("ModifyAdmin"), modifyAdmin ? "true" : "false"); +} + diff --git a/live/src/model/ModifyLiveMessageGroupResult.cc b/live/src/model/ModifyLiveMessageGroupResult.cc new file mode 100644 index 000000000..2510088a1 --- /dev/null +++ b/live/src/model/ModifyLiveMessageGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageGroupResult::ModifyLiveMessageGroupResult() : + ServiceResult() +{} + +ModifyLiveMessageGroupResult::ModifyLiveMessageGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageGroupResult::~ModifyLiveMessageGroupResult() +{} + +void ModifyLiveMessageGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/ModifyLiveMessageUserInfoRequest.cc b/live/src/model/ModifyLiveMessageUserInfoRequest.cc new file mode 100644 index 000000000..2b3f3df24 --- /dev/null +++ b/live/src/model/ModifyLiveMessageUserInfoRequest.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::Live::Model::ModifyLiveMessageUserInfoRequest; + +ModifyLiveMessageUserInfoRequest::ModifyLiveMessageUserInfoRequest() + : RpcServiceRequest("live", "2016-11-01", "ModifyLiveMessageUserInfo") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLiveMessageUserInfoRequest::~ModifyLiveMessageUserInfoRequest() {} + +std::string ModifyLiveMessageUserInfoRequest::getDataCenter() const { + return dataCenter_; +} + +void ModifyLiveMessageUserInfoRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string ModifyLiveMessageUserInfoRequest::getUserId() const { + return userId_; +} + +void ModifyLiveMessageUserInfoRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string ModifyLiveMessageUserInfoRequest::getUserMetaInfo() const { + return userMetaInfo_; +} + +void ModifyLiveMessageUserInfoRequest::setUserMetaInfo(const std::string &userMetaInfo) { + userMetaInfo_ = userMetaInfo; + setParameter(std::string("UserMetaInfo"), userMetaInfo); +} + +std::string ModifyLiveMessageUserInfoRequest::getAppId() const { + return appId_; +} + +void ModifyLiveMessageUserInfoRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/ModifyLiveMessageUserInfoResult.cc b/live/src/model/ModifyLiveMessageUserInfoResult.cc new file mode 100644 index 000000000..54398e2d8 --- /dev/null +++ b/live/src/model/ModifyLiveMessageUserInfoResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +ModifyLiveMessageUserInfoResult::ModifyLiveMessageUserInfoResult() : + ServiceResult() +{} + +ModifyLiveMessageUserInfoResult::ModifyLiveMessageUserInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLiveMessageUserInfoResult::~ModifyLiveMessageUserInfoResult() +{} + +void ModifyLiveMessageUserInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/SendLiveMessageGroupRequest.cc b/live/src/model/SendLiveMessageGroupRequest.cc new file mode 100644 index 000000000..91168c724 --- /dev/null +++ b/live/src/model/SendLiveMessageGroupRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::SendLiveMessageGroupRequest; + +SendLiveMessageGroupRequest::SendLiveMessageGroupRequest() + : RpcServiceRequest("live", "2016-11-01", "SendLiveMessageGroup") { + setMethod(HttpRequest::Method::Post); +} + +SendLiveMessageGroupRequest::~SendLiveMessageGroupRequest() {} + +std::string SendLiveMessageGroupRequest::getGroupId() const { + return groupId_; +} + +void SendLiveMessageGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string SendLiveMessageGroupRequest::getSenderMetaInfo() const { + return senderMetaInfo_; +} + +void SendLiveMessageGroupRequest::setSenderMetaInfo(const std::string &senderMetaInfo) { + senderMetaInfo_ = senderMetaInfo; + setParameter(std::string("SenderMetaInfo"), senderMetaInfo); +} + +std::string SendLiveMessageGroupRequest::getDataCenter() const { + return dataCenter_; +} + +void SendLiveMessageGroupRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string SendLiveMessageGroupRequest::getMsgTid() const { + return msgTid_; +} + +void SendLiveMessageGroupRequest::setMsgTid(const std::string &msgTid) { + msgTid_ = msgTid; + setParameter(std::string("MsgTid"), msgTid); +} + +std::string SendLiveMessageGroupRequest::getBody() const { + return body_; +} + +void SendLiveMessageGroupRequest::setBody(const std::string &body) { + body_ = body; + setParameter(std::string("Body"), body); +} + +std::string SendLiveMessageGroupRequest::getSenderId() const { + return senderId_; +} + +void SendLiveMessageGroupRequest::setSenderId(const std::string &senderId) { + senderId_ = senderId; + setParameter(std::string("SenderId"), senderId); +} + +std::string SendLiveMessageGroupRequest::getAppId() const { + return appId_; +} + +void SendLiveMessageGroupRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long SendLiveMessageGroupRequest::getMsgType() const { + return msgType_; +} + +void SendLiveMessageGroupRequest::setMsgType(long msgType) { + msgType_ = msgType; + setParameter(std::string("MsgType"), std::to_string(msgType)); +} + diff --git a/live/src/model/SendLiveMessageGroupResult.cc b/live/src/model/SendLiveMessageGroupResult.cc new file mode 100644 index 000000000..a5bbd0ca8 --- /dev/null +++ b/live/src/model/SendLiveMessageGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +SendLiveMessageGroupResult::SendLiveMessageGroupResult() : + ServiceResult() +{} + +SendLiveMessageGroupResult::SendLiveMessageGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendLiveMessageGroupResult::~SendLiveMessageGroupResult() +{} + +void SendLiveMessageGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/SendLiveMessageUserRequest.cc b/live/src/model/SendLiveMessageUserRequest.cc new file mode 100644 index 000000000..e0f06eae5 --- /dev/null +++ b/live/src/model/SendLiveMessageUserRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::SendLiveMessageUserRequest; + +SendLiveMessageUserRequest::SendLiveMessageUserRequest() + : RpcServiceRequest("live", "2016-11-01", "SendLiveMessageUser") { + setMethod(HttpRequest::Method::Post); +} + +SendLiveMessageUserRequest::~SendLiveMessageUserRequest() {} + +std::string SendLiveMessageUserRequest::getDataCenter() const { + return dataCenter_; +} + +void SendLiveMessageUserRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string SendLiveMessageUserRequest::getMsgTid() const { + return msgTid_; +} + +void SendLiveMessageUserRequest::setMsgTid(const std::string &msgTid) { + msgTid_ = msgTid; + setParameter(std::string("MsgTid"), msgTid); +} + +std::string SendLiveMessageUserRequest::getBody() const { + return body_; +} + +void SendLiveMessageUserRequest::setBody(const std::string &body) { + body_ = body; + setParameter(std::string("Body"), body); +} + +std::string SendLiveMessageUserRequest::getSenderId() const { + return senderId_; +} + +void SendLiveMessageUserRequest::setSenderId(const std::string &senderId) { + senderId_ = senderId; + setParameter(std::string("SenderId"), senderId); +} + +std::string SendLiveMessageUserRequest::getReceiverId() const { + return receiverId_; +} + +void SendLiveMessageUserRequest::setReceiverId(const std::string &receiverId) { + receiverId_ = receiverId; + setParameter(std::string("ReceiverId"), receiverId); +} + +std::string SendLiveMessageUserRequest::getAppId() const { + return appId_; +} + +void SendLiveMessageUserRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string SendLiveMessageUserRequest::getSenderInfo() const { + return senderInfo_; +} + +void SendLiveMessageUserRequest::setSenderInfo(const std::string &senderInfo) { + senderInfo_ = senderInfo; + setParameter(std::string("SenderInfo"), senderInfo); +} + +long SendLiveMessageUserRequest::getMsgType() const { + return msgType_; +} + +void SendLiveMessageUserRequest::setMsgType(long msgType) { + msgType_ = msgType; + setParameter(std::string("MsgType"), std::to_string(msgType)); +} + diff --git a/live/src/model/SendLiveMessageUserResult.cc b/live/src/model/SendLiveMessageUserResult.cc new file mode 100644 index 000000000..ea3d1c878 --- /dev/null +++ b/live/src/model/SendLiveMessageUserResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Live; +using namespace AlibabaCloud::Live::Model; + +SendLiveMessageUserResult::SendLiveMessageUserResult() : + ServiceResult() +{} + +SendLiveMessageUserResult::SendLiveMessageUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendLiveMessageUserResult::~SendLiveMessageUserResult() +{} + +void SendLiveMessageUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +