From 1f167df35d352300e7376107417afe85fcb27fac Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 15 Jan 2024 09:42:13 +0000 Subject: [PATCH] Update to support new apis. --- VERSION | 2 +- live/CMakeLists.txt | 16 ++ live/include/alibabacloud/live/LiveClient.h | 32 ++++ .../DeleteLiveMessageGroupMessageRequest.h | 57 +++++++ .../DeleteLiveMessageGroupMessageResult.h | 53 +++++++ .../DeleteLiveMessageUserMessageRequest.h | 57 +++++++ .../DeleteLiveMessageUserMessageResult.h | 49 ++++++ .../live/model/DescribeLiveMessageAppResult.h | 10 ++ .../live/model/ListLiveMessageAppsResult.h | 4 + .../model/MiguLivePullToPushStartRequest.h | 48 ++++++ .../model/MiguLivePullToPushStartResult.h | 57 +++++++ .../model/MiguLivePullToPushStatusRequest.h | 48 ++++++ .../model/MiguLivePullToPushStatusResult.h | 64 ++++++++ .../model/RealTimeSnapshotCommandRequest.h | 6 + .../live/model/SendLiveMessageGroupRequest.h | 3 + live/src/LiveClient.cc | 144 ++++++++++++++++++ .../DeleteLiveMessageGroupMessageRequest.cc | 81 ++++++++++ .../DeleteLiveMessageGroupMessageResult.cc | 58 +++++++ .../DeleteLiveMessageUserMessageRequest.cc | 81 ++++++++++ .../DeleteLiveMessageUserMessageResult.cc | 44 ++++++ .../src/model/DescribeLiveMessageAppResult.cc | 35 +++++ live/src/model/ListLiveMessageAppsResult.cc | 8 + .../model/MiguLivePullToPushStartRequest.cc | 54 +++++++ .../model/MiguLivePullToPushStartResult.cc | 72 +++++++++ .../model/MiguLivePullToPushStatusRequest.cc | 54 +++++++ .../model/MiguLivePullToPushStatusResult.cc | 82 ++++++++++ .../model/RealTimeSnapshotCommandRequest.cc | 18 +++ live/src/model/SendLiveMessageGroupRequest.cc | 9 ++ 28 files changed, 1245 insertions(+), 1 deletion(-) create mode 100644 live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageRequest.h create mode 100644 live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageResult.h create mode 100644 live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageRequest.h create mode 100644 live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageResult.h create mode 100644 live/include/alibabacloud/live/model/MiguLivePullToPushStartRequest.h create mode 100644 live/include/alibabacloud/live/model/MiguLivePullToPushStartResult.h create mode 100644 live/include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.h create mode 100644 live/include/alibabacloud/live/model/MiguLivePullToPushStatusResult.h create mode 100644 live/src/model/DeleteLiveMessageGroupMessageRequest.cc create mode 100644 live/src/model/DeleteLiveMessageGroupMessageResult.cc create mode 100644 live/src/model/DeleteLiveMessageUserMessageRequest.cc create mode 100644 live/src/model/DeleteLiveMessageUserMessageResult.cc create mode 100644 live/src/model/MiguLivePullToPushStartRequest.cc create mode 100644 live/src/model/MiguLivePullToPushStartResult.cc create mode 100644 live/src/model/MiguLivePullToPushStatusRequest.cc create mode 100644 live/src/model/MiguLivePullToPushStatusResult.cc diff --git a/VERSION b/VERSION index c967e61de..67e636059 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1847 \ No newline at end of file +1.36.1848 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 66879c917..34c95b798 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -189,6 +189,10 @@ set(live_public_header_model include/alibabacloud/live/model/DeleteLiveLazyPullStreamInfoConfigResult.h include/alibabacloud/live/model/DeleteLiveMessageGroupRequest.h include/alibabacloud/live/model/DeleteLiveMessageGroupResult.h + include/alibabacloud/live/model/DeleteLiveMessageGroupMessageRequest.h + include/alibabacloud/live/model/DeleteLiveMessageGroupMessageResult.h + include/alibabacloud/live/model/DeleteLiveMessageUserMessageRequest.h + include/alibabacloud/live/model/DeleteLiveMessageUserMessageResult.h include/alibabacloud/live/model/DeleteLivePackageConfigRequest.h include/alibabacloud/live/model/DeleteLivePackageConfigResult.h include/alibabacloud/live/model/DeleteLivePullStreamInfoConfigRequest.h @@ -597,6 +601,10 @@ set(live_public_header_model include/alibabacloud/live/model/ListPlaylistResult.h include/alibabacloud/live/model/ListPlaylistItemsRequest.h include/alibabacloud/live/model/ListPlaylistItemsResult.h + include/alibabacloud/live/model/MiguLivePullToPushStartRequest.h + include/alibabacloud/live/model/MiguLivePullToPushStartResult.h + include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.h + include/alibabacloud/live/model/MiguLivePullToPushStatusResult.h include/alibabacloud/live/model/ModifyCasterComponentRequest.h include/alibabacloud/live/model/ModifyCasterComponentResult.h include/alibabacloud/live/model/ModifyCasterEpisodeRequest.h @@ -956,6 +964,10 @@ set(live_src src/model/DeleteLiveLazyPullStreamInfoConfigResult.cc src/model/DeleteLiveMessageGroupRequest.cc src/model/DeleteLiveMessageGroupResult.cc + src/model/DeleteLiveMessageGroupMessageRequest.cc + src/model/DeleteLiveMessageGroupMessageResult.cc + src/model/DeleteLiveMessageUserMessageRequest.cc + src/model/DeleteLiveMessageUserMessageResult.cc src/model/DeleteLivePackageConfigRequest.cc src/model/DeleteLivePackageConfigResult.cc src/model/DeleteLivePullStreamInfoConfigRequest.cc @@ -1364,6 +1376,10 @@ set(live_src src/model/ListPlaylistResult.cc src/model/ListPlaylistItemsRequest.cc src/model/ListPlaylistItemsResult.cc + src/model/MiguLivePullToPushStartRequest.cc + src/model/MiguLivePullToPushStartResult.cc + src/model/MiguLivePullToPushStatusRequest.cc + src/model/MiguLivePullToPushStatusResult.cc src/model/ModifyCasterComponentRequest.cc src/model/ModifyCasterComponentResult.cc src/model/ModifyCasterEpisodeRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 859fb4bc6..22181894f 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -190,6 +190,10 @@ #include "model/DeleteLiveLazyPullStreamInfoConfigResult.h" #include "model/DeleteLiveMessageGroupRequest.h" #include "model/DeleteLiveMessageGroupResult.h" +#include "model/DeleteLiveMessageGroupMessageRequest.h" +#include "model/DeleteLiveMessageGroupMessageResult.h" +#include "model/DeleteLiveMessageUserMessageRequest.h" +#include "model/DeleteLiveMessageUserMessageResult.h" #include "model/DeleteLivePackageConfigRequest.h" #include "model/DeleteLivePackageConfigResult.h" #include "model/DeleteLivePullStreamInfoConfigRequest.h" @@ -598,6 +602,10 @@ #include "model/ListPlaylistResult.h" #include "model/ListPlaylistItemsRequest.h" #include "model/ListPlaylistItemsResult.h" +#include "model/MiguLivePullToPushStartRequest.h" +#include "model/MiguLivePullToPushStartResult.h" +#include "model/MiguLivePullToPushStatusRequest.h" +#include "model/MiguLivePullToPushStatusResult.h" #include "model/ModifyCasterComponentRequest.h" #include "model/ModifyCasterComponentResult.h" #include "model/ModifyCasterEpisodeRequest.h" @@ -1047,6 +1055,12 @@ namespace AlibabaCloud typedef Outcome DeleteLiveMessageGroupOutcome; typedef std::future DeleteLiveMessageGroupOutcomeCallable; typedef std::function&)> DeleteLiveMessageGroupAsyncHandler; + typedef Outcome DeleteLiveMessageGroupMessageOutcome; + typedef std::future DeleteLiveMessageGroupMessageOutcomeCallable; + typedef std::function&)> DeleteLiveMessageGroupMessageAsyncHandler; + typedef Outcome DeleteLiveMessageUserMessageOutcome; + typedef std::future DeleteLiveMessageUserMessageOutcomeCallable; + typedef std::function&)> DeleteLiveMessageUserMessageAsyncHandler; typedef Outcome DeleteLivePackageConfigOutcome; typedef std::future DeleteLivePackageConfigOutcomeCallable; typedef std::function&)> DeleteLivePackageConfigAsyncHandler; @@ -1659,6 +1673,12 @@ namespace AlibabaCloud typedef Outcome ListPlaylistItemsOutcome; typedef std::future ListPlaylistItemsOutcomeCallable; typedef std::function&)> ListPlaylistItemsAsyncHandler; + typedef Outcome MiguLivePullToPushStartOutcome; + typedef std::future MiguLivePullToPushStartOutcomeCallable; + typedef std::function&)> MiguLivePullToPushStartAsyncHandler; + typedef Outcome MiguLivePullToPushStatusOutcome; + typedef std::future MiguLivePullToPushStatusOutcomeCallable; + typedef std::function&)> MiguLivePullToPushStatusAsyncHandler; typedef Outcome ModifyCasterComponentOutcome; typedef std::future ModifyCasterComponentOutcomeCallable; typedef std::function&)> ModifyCasterComponentAsyncHandler; @@ -2198,6 +2218,12 @@ namespace AlibabaCloud 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; + DeleteLiveMessageGroupMessageOutcome deleteLiveMessageGroupMessage(const Model::DeleteLiveMessageGroupMessageRequest &request)const; + void deleteLiveMessageGroupMessageAsync(const Model::DeleteLiveMessageGroupMessageRequest& request, const DeleteLiveMessageGroupMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveMessageGroupMessageOutcomeCallable deleteLiveMessageGroupMessageCallable(const Model::DeleteLiveMessageGroupMessageRequest& request) const; + DeleteLiveMessageUserMessageOutcome deleteLiveMessageUserMessage(const Model::DeleteLiveMessageUserMessageRequest &request)const; + void deleteLiveMessageUserMessageAsync(const Model::DeleteLiveMessageUserMessageRequest& request, const DeleteLiveMessageUserMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveMessageUserMessageOutcomeCallable deleteLiveMessageUserMessageCallable(const Model::DeleteLiveMessageUserMessageRequest& 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; @@ -2810,6 +2836,12 @@ namespace AlibabaCloud ListPlaylistItemsOutcome listPlaylistItems(const Model::ListPlaylistItemsRequest &request)const; void listPlaylistItemsAsync(const Model::ListPlaylistItemsRequest& request, const ListPlaylistItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPlaylistItemsOutcomeCallable listPlaylistItemsCallable(const Model::ListPlaylistItemsRequest& request) const; + MiguLivePullToPushStartOutcome miguLivePullToPushStart(const Model::MiguLivePullToPushStartRequest &request)const; + void miguLivePullToPushStartAsync(const Model::MiguLivePullToPushStartRequest& request, const MiguLivePullToPushStartAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MiguLivePullToPushStartOutcomeCallable miguLivePullToPushStartCallable(const Model::MiguLivePullToPushStartRequest& request) const; + MiguLivePullToPushStatusOutcome miguLivePullToPushStatus(const Model::MiguLivePullToPushStatusRequest &request)const; + void miguLivePullToPushStatusAsync(const Model::MiguLivePullToPushStatusRequest& request, const MiguLivePullToPushStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MiguLivePullToPushStatusOutcomeCallable miguLivePullToPushStatusCallable(const Model::MiguLivePullToPushStatusRequest& request) const; ModifyCasterComponentOutcome modifyCasterComponent(const Model::ModifyCasterComponentRequest &request)const; void modifyCasterComponentAsync(const Model::ModifyCasterComponentRequest& request, const ModifyCasterComponentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCasterComponentOutcomeCallable modifyCasterComponentCallable(const Model::ModifyCasterComponentRequest& request) const; diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageRequest.h b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageRequest.h new file mode 100644 index 000000000..ddc252eea --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageRequest.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_DELETELIVEMESSAGEGROUPMESSAGEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageGroupMessageRequest : public RpcServiceRequest { +public: + DeleteLiveMessageGroupMessageRequest(); + ~DeleteLiveMessageGroupMessageRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getMessageId() const; + void setMessageId(const std::string &messageId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getDeleterId() const; + void setDeleterId(const std::string &deleterId); + std::string getDeleterInfo() const; + void setDeleterInfo(const std::string &deleterInfo); + +private: + std::string groupId_; + std::string messageId_; + std::string dataCenter_; + std::string appId_; + std::string deleterId_; + std::string deleterInfo_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPMESSAGEREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageResult.h b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageResult.h new file mode 100644 index 000000000..93fc2a5bd --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageGroupMessageResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPMESSAGERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageGroupMessageResult : public ServiceResult + { + public: + + + DeleteLiveMessageGroupMessageResult(); + explicit DeleteLiveMessageGroupMessageResult(const std::string &payload); + ~DeleteLiveMessageGroupMessageResult(); + std::string getGroupId()const; + std::string getMessageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupId_; + std::string messageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEGROUPMESSAGERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageRequest.h b/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageRequest.h new file mode 100644 index 000000000..c91d7a018 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageRequest.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_DELETELIVEMESSAGEUSERMESSAGEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEUSERMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageUserMessageRequest : public RpcServiceRequest { +public: + DeleteLiveMessageUserMessageRequest(); + ~DeleteLiveMessageUserMessageRequest(); + std::string getMessageId() const; + void setMessageId(const std::string &messageId); + std::string getDataCenter() const; + void setDataCenter(const std::string &dataCenter); + std::string getReceiverId() const; + void setReceiverId(const std::string &receiverId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getDeleterId() const; + void setDeleterId(const std::string &deleterId); + std::string getDeleterInfo() const; + void setDeleterInfo(const std::string &deleterInfo); + +private: + std::string messageId_; + std::string dataCenter_; + std::string receiverId_; + std::string appId_; + std::string deleterId_; + std::string deleterInfo_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEUSERMESSAGEREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageResult.h b/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageResult.h new file mode 100644 index 000000000..0463b1324 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveMessageUserMessageResult.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_DELETELIVEMESSAGEUSERMESSAGERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEUSERMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveMessageUserMessageResult : public ServiceResult + { + public: + + + DeleteLiveMessageUserMessageResult(); + explicit DeleteLiveMessageUserMessageResult(const std::string &payload); + ~DeleteLiveMessageUserMessageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEMESSAGEUSERMESSAGERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h index 94c4d4125..22b431f87 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h @@ -38,23 +38,33 @@ namespace AlibabaCloud explicit DescribeLiveMessageAppResult(const std::string &payload); ~DescribeLiveMessageAppResult(); std::string getCallbackUrl()const; + long getModifyTime()const; std::string getAuditUrl()const; + std::string getDataCenter()const; std::string getAppId()const; int getAuditType()const; std::string getAppKey()const; + long getCreateTime()const; + std::string getEventCallbackUrl()const; std::string getAppSign()const; bool getDisable()const; + std::string getAppName()const; protected: void parse(const std::string &payload); private: std::string callbackUrl_; + long modifyTime_; std::string auditUrl_; + std::string dataCenter_; std::string appId_; int auditType_; std::string appKey_; + long createTime_; + std::string eventCallbackUrl_; std::string appSign_; bool disable_; + std::string appName_; }; } diff --git a/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h index bde9b0dec..e47d7c78a 100644 --- a/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h +++ b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h @@ -34,10 +34,14 @@ namespace AlibabaCloud public: struct Apps { + long modifyTime; + std::string dataCenter; std::string appId; std::string appKey; + long createTime; std::string appSign; std::string disable; + std::string appName; }; diff --git a/live/include/alibabacloud/live/model/MiguLivePullToPushStartRequest.h b/live/include/alibabacloud/live/model/MiguLivePullToPushStartRequest.h new file mode 100644 index 000000000..241c0b409 --- /dev/null +++ b/live/include/alibabacloud/live/model/MiguLivePullToPushStartRequest.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_MIGULIVEPULLTOPUSHSTARTREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTARTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT MiguLivePullToPushStartRequest : public RpcServiceRequest { +public: + MiguLivePullToPushStartRequest(); + ~MiguLivePullToPushStartRequest(); + std::string getMiguData() const; + void setMiguData(const std::string &miguData); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string miguData_; + std::string domainName_; + long ownerId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTARTREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/MiguLivePullToPushStartResult.h b/live/include/alibabacloud/live/model/MiguLivePullToPushStartResult.h new file mode 100644 index 000000000..469163426 --- /dev/null +++ b/live/include/alibabacloud/live/model/MiguLivePullToPushStartResult.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_MIGULIVEPULLTOPUSHSTARTRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTARTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT MiguLivePullToPushStartResult : public ServiceResult + { + public: + + + MiguLivePullToPushStartResult(); + explicit MiguLivePullToPushStartResult(const std::string &payload); + ~MiguLivePullToPushStartResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::string getCode()const; + std::string getTimestamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::string code_; + std::string timestamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTARTRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.h b/live/include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.h new file mode 100644 index 000000000..65d3933e0 --- /dev/null +++ b/live/include/alibabacloud/live/model/MiguLivePullToPushStatusRequest.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_MIGULIVEPULLTOPUSHSTATUSREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT MiguLivePullToPushStatusRequest : public RpcServiceRequest { +public: + MiguLivePullToPushStatusRequest(); + ~MiguLivePullToPushStatusRequest(); + std::string getMiguData() const; + void setMiguData(const std::string &miguData); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string miguData_; + std::string domainName_; + long ownerId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTATUSREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/MiguLivePullToPushStatusResult.h b/live/include/alibabacloud/live/model/MiguLivePullToPushStatusResult.h new file mode 100644 index 000000000..25b3adcc8 --- /dev/null +++ b/live/include/alibabacloud/live/model/MiguLivePullToPushStatusResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTATUSRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT MiguLivePullToPushStatusResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string message; + }; + + + MiguLivePullToPushStatusResult(); + explicit MiguLivePullToPushStatusResult(const std::string &payload); + ~MiguLivePullToPushStatusResult(); + std::string getRequestId()const; + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + std::string getTimestamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + Data data_; + std::string code_; + std::string timestamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MIGULIVEPULLTOPUSHSTATUSRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h b/live/include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h index 9e38a9cc8..8e82a140b 100644 --- a/live/include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h +++ b/live/include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h @@ -34,6 +34,8 @@ public: void setSource(int source); int getMode() const; void setMode(int mode); + std::string getUserData() const; + void setUserData(const std::string &userData); std::string getAppName() const; void setAppName(const std::string &appName); std::string getStreamName() const; @@ -44,17 +46,21 @@ public: void setOwnerId(long ownerId); std::string getCommand() const; void setCommand(const std::string &command); + int getSnapshotType() const; + void setSnapshotType(int snapshotType); int getInterval() const; void setInterval(int interval); private: int source_; int mode_; + std::string userData_; std::string appName_; std::string streamName_; std::string domainName_; long ownerId_; std::string command_; + int snapshotType_; int interval_; }; } // namespace Model diff --git a/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h b/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h index 543c21b16..ba4460338 100644 --- a/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h +++ b/live/include/alibabacloud/live/model/SendLiveMessageGroupRequest.h @@ -36,6 +36,8 @@ public: void setBody(const std::string &body); long getStaticsIncrease() const; void setStaticsIncrease(long staticsIncrease); + bool getNoCache() const; + void setNoCache(bool noCache); long getMsgType() const; void setMsgType(long msgType); bool getNoStorage() const; @@ -57,6 +59,7 @@ private: std::string senderMetaInfo_; std::string body_; long staticsIncrease_; + bool noCache_; long msgType_; bool noStorage_; std::string groupId_; diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 0221bb469..d236c224e 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -3075,6 +3075,78 @@ LiveClient::DeleteLiveMessageGroupOutcomeCallable LiveClient::deleteLiveMessageG return task->get_future(); } +LiveClient::DeleteLiveMessageGroupMessageOutcome LiveClient::deleteLiveMessageGroupMessage(const DeleteLiveMessageGroupMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveMessageGroupMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveMessageGroupMessageOutcome(DeleteLiveMessageGroupMessageResult(outcome.result())); + else + return DeleteLiveMessageGroupMessageOutcome(outcome.error()); +} + +void LiveClient::deleteLiveMessageGroupMessageAsync(const DeleteLiveMessageGroupMessageRequest& request, const DeleteLiveMessageGroupMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveMessageGroupMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveMessageGroupMessageOutcomeCallable LiveClient::deleteLiveMessageGroupMessageCallable(const DeleteLiveMessageGroupMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveMessageGroupMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::DeleteLiveMessageUserMessageOutcome LiveClient::deleteLiveMessageUserMessage(const DeleteLiveMessageUserMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveMessageUserMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveMessageUserMessageOutcome(DeleteLiveMessageUserMessageResult(outcome.result())); + else + return DeleteLiveMessageUserMessageOutcome(outcome.error()); +} + +void LiveClient::deleteLiveMessageUserMessageAsync(const DeleteLiveMessageUserMessageRequest& request, const DeleteLiveMessageUserMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveMessageUserMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveMessageUserMessageOutcomeCallable LiveClient::deleteLiveMessageUserMessageCallable(const DeleteLiveMessageUserMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveMessageUserMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLivePackageConfigOutcome LiveClient::deleteLivePackageConfig(const DeleteLivePackageConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10419,6 +10491,78 @@ LiveClient::ListPlaylistItemsOutcomeCallable LiveClient::listPlaylistItemsCallab return task->get_future(); } +LiveClient::MiguLivePullToPushStartOutcome LiveClient::miguLivePullToPushStart(const MiguLivePullToPushStartRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MiguLivePullToPushStartOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MiguLivePullToPushStartOutcome(MiguLivePullToPushStartResult(outcome.result())); + else + return MiguLivePullToPushStartOutcome(outcome.error()); +} + +void LiveClient::miguLivePullToPushStartAsync(const MiguLivePullToPushStartRequest& request, const MiguLivePullToPushStartAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, miguLivePullToPushStart(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::MiguLivePullToPushStartOutcomeCallable LiveClient::miguLivePullToPushStartCallable(const MiguLivePullToPushStartRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->miguLivePullToPushStart(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::MiguLivePullToPushStatusOutcome LiveClient::miguLivePullToPushStatus(const MiguLivePullToPushStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MiguLivePullToPushStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MiguLivePullToPushStatusOutcome(MiguLivePullToPushStatusResult(outcome.result())); + else + return MiguLivePullToPushStatusOutcome(outcome.error()); +} + +void LiveClient::miguLivePullToPushStatusAsync(const MiguLivePullToPushStatusRequest& request, const MiguLivePullToPushStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, miguLivePullToPushStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::MiguLivePullToPushStatusOutcomeCallable LiveClient::miguLivePullToPushStatusCallable(const MiguLivePullToPushStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->miguLivePullToPushStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ModifyCasterComponentOutcome LiveClient::modifyCasterComponent(const ModifyCasterComponentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/DeleteLiveMessageGroupMessageRequest.cc b/live/src/model/DeleteLiveMessageGroupMessageRequest.cc new file mode 100644 index 000000000..0af94dc11 --- /dev/null +++ b/live/src/model/DeleteLiveMessageGroupMessageRequest.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::DeleteLiveMessageGroupMessageRequest; + +DeleteLiveMessageGroupMessageRequest::DeleteLiveMessageGroupMessageRequest() + : RpcServiceRequest("live", "2016-11-01", "DeleteLiveMessageGroupMessage") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLiveMessageGroupMessageRequest::~DeleteLiveMessageGroupMessageRequest() {} + +std::string DeleteLiveMessageGroupMessageRequest::getGroupId() const { + return groupId_; +} + +void DeleteLiveMessageGroupMessageRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DeleteLiveMessageGroupMessageRequest::getMessageId() const { + return messageId_; +} + +void DeleteLiveMessageGroupMessageRequest::setMessageId(const std::string &messageId) { + messageId_ = messageId; + setParameter(std::string("MessageId"), messageId); +} + +std::string DeleteLiveMessageGroupMessageRequest::getDataCenter() const { + return dataCenter_; +} + +void DeleteLiveMessageGroupMessageRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DeleteLiveMessageGroupMessageRequest::getAppId() const { + return appId_; +} + +void DeleteLiveMessageGroupMessageRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DeleteLiveMessageGroupMessageRequest::getDeleterId() const { + return deleterId_; +} + +void DeleteLiveMessageGroupMessageRequest::setDeleterId(const std::string &deleterId) { + deleterId_ = deleterId; + setParameter(std::string("DeleterId"), deleterId); +} + +std::string DeleteLiveMessageGroupMessageRequest::getDeleterInfo() const { + return deleterInfo_; +} + +void DeleteLiveMessageGroupMessageRequest::setDeleterInfo(const std::string &deleterInfo) { + deleterInfo_ = deleterInfo; + setParameter(std::string("DeleterInfo"), deleterInfo); +} + diff --git a/live/src/model/DeleteLiveMessageGroupMessageResult.cc b/live/src/model/DeleteLiveMessageGroupMessageResult.cc new file mode 100644 index 000000000..d833e2364 --- /dev/null +++ b/live/src/model/DeleteLiveMessageGroupMessageResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DeleteLiveMessageGroupMessageResult::DeleteLiveMessageGroupMessageResult() : + ServiceResult() +{} + +DeleteLiveMessageGroupMessageResult::DeleteLiveMessageGroupMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLiveMessageGroupMessageResult::~DeleteLiveMessageGroupMessageResult() +{} + +void DeleteLiveMessageGroupMessageResult::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["MessageId"].isNull()) + messageId_ = value["MessageId"].asString(); + +} + +std::string DeleteLiveMessageGroupMessageResult::getGroupId()const +{ + return groupId_; +} + +std::string DeleteLiveMessageGroupMessageResult::getMessageId()const +{ + return messageId_; +} + diff --git a/live/src/model/DeleteLiveMessageUserMessageRequest.cc b/live/src/model/DeleteLiveMessageUserMessageRequest.cc new file mode 100644 index 000000000..7408b4c16 --- /dev/null +++ b/live/src/model/DeleteLiveMessageUserMessageRequest.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::DeleteLiveMessageUserMessageRequest; + +DeleteLiveMessageUserMessageRequest::DeleteLiveMessageUserMessageRequest() + : RpcServiceRequest("live", "2016-11-01", "DeleteLiveMessageUserMessage") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLiveMessageUserMessageRequest::~DeleteLiveMessageUserMessageRequest() {} + +std::string DeleteLiveMessageUserMessageRequest::getMessageId() const { + return messageId_; +} + +void DeleteLiveMessageUserMessageRequest::setMessageId(const std::string &messageId) { + messageId_ = messageId; + setParameter(std::string("MessageId"), messageId); +} + +std::string DeleteLiveMessageUserMessageRequest::getDataCenter() const { + return dataCenter_; +} + +void DeleteLiveMessageUserMessageRequest::setDataCenter(const std::string &dataCenter) { + dataCenter_ = dataCenter; + setParameter(std::string("DataCenter"), dataCenter); +} + +std::string DeleteLiveMessageUserMessageRequest::getReceiverId() const { + return receiverId_; +} + +void DeleteLiveMessageUserMessageRequest::setReceiverId(const std::string &receiverId) { + receiverId_ = receiverId; + setParameter(std::string("ReceiverId"), receiverId); +} + +std::string DeleteLiveMessageUserMessageRequest::getAppId() const { + return appId_; +} + +void DeleteLiveMessageUserMessageRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DeleteLiveMessageUserMessageRequest::getDeleterId() const { + return deleterId_; +} + +void DeleteLiveMessageUserMessageRequest::setDeleterId(const std::string &deleterId) { + deleterId_ = deleterId; + setParameter(std::string("DeleterId"), deleterId); +} + +std::string DeleteLiveMessageUserMessageRequest::getDeleterInfo() const { + return deleterInfo_; +} + +void DeleteLiveMessageUserMessageRequest::setDeleterInfo(const std::string &deleterInfo) { + deleterInfo_ = deleterInfo; + setParameter(std::string("DeleterInfo"), deleterInfo); +} + diff --git a/live/src/model/DeleteLiveMessageUserMessageResult.cc b/live/src/model/DeleteLiveMessageUserMessageResult.cc new file mode 100644 index 000000000..1614b5d09 --- /dev/null +++ b/live/src/model/DeleteLiveMessageUserMessageResult.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; + +DeleteLiveMessageUserMessageResult::DeleteLiveMessageUserMessageResult() : + ServiceResult() +{} + +DeleteLiveMessageUserMessageResult::DeleteLiveMessageUserMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLiveMessageUserMessageResult::~DeleteLiveMessageUserMessageResult() +{} + +void DeleteLiveMessageUserMessageResult::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/DescribeLiveMessageAppResult.cc b/live/src/model/DescribeLiveMessageAppResult.cc index c9faa7da2..6fcc37238 100644 --- a/live/src/model/DescribeLiveMessageAppResult.cc +++ b/live/src/model/DescribeLiveMessageAppResult.cc @@ -41,6 +41,8 @@ void DescribeLiveMessageAppResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["AppId"].isNull()) appId_ = value["AppId"].asString(); + if(!value["AppName"].isNull()) + appName_ = value["AppName"].asString(); if(!value["AppKey"].isNull()) appKey_ = value["AppKey"].asString(); if(!value["AppSign"].isNull()) @@ -49,10 +51,18 @@ void DescribeLiveMessageAppResult::parse(const std::string &payload) auditType_ = std::stoi(value["AuditType"].asString()); if(!value["AuditUrl"].isNull()) auditUrl_ = value["AuditUrl"].asString(); + if(!value["EventCallbackUrl"].isNull()) + eventCallbackUrl_ = value["EventCallbackUrl"].asString(); if(!value["CallbackUrl"].isNull()) callbackUrl_ = value["CallbackUrl"].asString(); if(!value["Disable"].isNull()) disable_ = value["Disable"].asString() == "true"; + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = std::stol(value["ModifyTime"].asString()); + if(!value["DataCenter"].isNull()) + dataCenter_ = value["DataCenter"].asString(); } @@ -61,11 +71,21 @@ std::string DescribeLiveMessageAppResult::getCallbackUrl()const return callbackUrl_; } +long DescribeLiveMessageAppResult::getModifyTime()const +{ + return modifyTime_; +} + std::string DescribeLiveMessageAppResult::getAuditUrl()const { return auditUrl_; } +std::string DescribeLiveMessageAppResult::getDataCenter()const +{ + return dataCenter_; +} + std::string DescribeLiveMessageAppResult::getAppId()const { return appId_; @@ -81,6 +101,16 @@ std::string DescribeLiveMessageAppResult::getAppKey()const return appKey_; } +long DescribeLiveMessageAppResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeLiveMessageAppResult::getEventCallbackUrl()const +{ + return eventCallbackUrl_; +} + std::string DescribeLiveMessageAppResult::getAppSign()const { return appSign_; @@ -91,3 +121,8 @@ bool DescribeLiveMessageAppResult::getDisable()const return disable_; } +std::string DescribeLiveMessageAppResult::getAppName()const +{ + return appName_; +} + diff --git a/live/src/model/ListLiveMessageAppsResult.cc b/live/src/model/ListLiveMessageAppsResult.cc index 427758ebf..c0b837e7d 100644 --- a/live/src/model/ListLiveMessageAppsResult.cc +++ b/live/src/model/ListLiveMessageAppsResult.cc @@ -51,6 +51,14 @@ void ListLiveMessageAppsResult::parse(const std::string &payload) appListObject.appSign = valueAppListApps["AppSign"].asString(); if(!valueAppListApps["Disable"].isNull()) appListObject.disable = valueAppListApps["Disable"].asString(); + if(!valueAppListApps["AppName"].isNull()) + appListObject.appName = valueAppListApps["AppName"].asString(); + if(!valueAppListApps["CreateTime"].isNull()) + appListObject.createTime = std::stol(valueAppListApps["CreateTime"].asString()); + if(!valueAppListApps["ModifyTime"].isNull()) + appListObject.modifyTime = std::stol(valueAppListApps["ModifyTime"].asString()); + if(!valueAppListApps["DataCenter"].isNull()) + appListObject.dataCenter = valueAppListApps["DataCenter"].asString(); appList_.push_back(appListObject); } if(!value["HasMore"].isNull()) diff --git a/live/src/model/MiguLivePullToPushStartRequest.cc b/live/src/model/MiguLivePullToPushStartRequest.cc new file mode 100644 index 000000000..df5c2847f --- /dev/null +++ b/live/src/model/MiguLivePullToPushStartRequest.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::MiguLivePullToPushStartRequest; + +MiguLivePullToPushStartRequest::MiguLivePullToPushStartRequest() + : RpcServiceRequest("live", "2016-11-01", "MiguLivePullToPushStart") { + setMethod(HttpRequest::Method::Post); +} + +MiguLivePullToPushStartRequest::~MiguLivePullToPushStartRequest() {} + +std::string MiguLivePullToPushStartRequest::getMiguData() const { + return miguData_; +} + +void MiguLivePullToPushStartRequest::setMiguData(const std::string &miguData) { + miguData_ = miguData; + setParameter(std::string("MiguData"), miguData); +} + +std::string MiguLivePullToPushStartRequest::getDomainName() const { + return domainName_; +} + +void MiguLivePullToPushStartRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +long MiguLivePullToPushStartRequest::getOwnerId() const { + return ownerId_; +} + +void MiguLivePullToPushStartRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/live/src/model/MiguLivePullToPushStartResult.cc b/live/src/model/MiguLivePullToPushStartResult.cc new file mode 100644 index 000000000..dd3989f63 --- /dev/null +++ b/live/src/model/MiguLivePullToPushStartResult.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; + +MiguLivePullToPushStartResult::MiguLivePullToPushStartResult() : + ServiceResult() +{} + +MiguLivePullToPushStartResult::MiguLivePullToPushStartResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MiguLivePullToPushStartResult::~MiguLivePullToPushStartResult() +{} + +void MiguLivePullToPushStartResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = value["code"].asString(); + if(!value["timestamp"].isNull()) + timestamp_ = value["timestamp"].asString(); + if(!value["message"].isNull()) + message_ = value["message"].asString(); + +} + +std::string MiguLivePullToPushStartResult::getRequestId()const +{ + return requestId_; +} + +std::string MiguLivePullToPushStartResult::getMessage()const +{ + return message_; +} + +std::string MiguLivePullToPushStartResult::getCode()const +{ + return code_; +} + +std::string MiguLivePullToPushStartResult::getTimestamp()const +{ + return timestamp_; +} + diff --git a/live/src/model/MiguLivePullToPushStatusRequest.cc b/live/src/model/MiguLivePullToPushStatusRequest.cc new file mode 100644 index 000000000..f2575db2b --- /dev/null +++ b/live/src/model/MiguLivePullToPushStatusRequest.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::MiguLivePullToPushStatusRequest; + +MiguLivePullToPushStatusRequest::MiguLivePullToPushStatusRequest() + : RpcServiceRequest("live", "2016-11-01", "MiguLivePullToPushStatus") { + setMethod(HttpRequest::Method::Post); +} + +MiguLivePullToPushStatusRequest::~MiguLivePullToPushStatusRequest() {} + +std::string MiguLivePullToPushStatusRequest::getMiguData() const { + return miguData_; +} + +void MiguLivePullToPushStatusRequest::setMiguData(const std::string &miguData) { + miguData_ = miguData; + setParameter(std::string("MiguData"), miguData); +} + +std::string MiguLivePullToPushStatusRequest::getDomainName() const { + return domainName_; +} + +void MiguLivePullToPushStatusRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +long MiguLivePullToPushStatusRequest::getOwnerId() const { + return ownerId_; +} + +void MiguLivePullToPushStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/live/src/model/MiguLivePullToPushStatusResult.cc b/live/src/model/MiguLivePullToPushStatusResult.cc new file mode 100644 index 000000000..7f53ce27c --- /dev/null +++ b/live/src/model/MiguLivePullToPushStatusResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +MiguLivePullToPushStatusResult::MiguLivePullToPushStatusResult() : + ServiceResult() +{} + +MiguLivePullToPushStatusResult::MiguLivePullToPushStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MiguLivePullToPushStatusResult::~MiguLivePullToPushStatusResult() +{} + +void MiguLivePullToPushStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["data"]; + if(!dataNode["status"].isNull()) + data_.status = dataNode["status"].asString(); + if(!dataNode["message"].isNull()) + data_.message = dataNode["message"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["code"].isNull()) + code_ = value["code"].asString(); + if(!value["timestamp"].isNull()) + timestamp_ = value["timestamp"].asString(); + if(!value["message"].isNull()) + message_ = value["message"].asString(); + +} + +std::string MiguLivePullToPushStatusResult::getRequestId()const +{ + return requestId_; +} + +std::string MiguLivePullToPushStatusResult::getMessage()const +{ + return message_; +} + +MiguLivePullToPushStatusResult::Data MiguLivePullToPushStatusResult::getData()const +{ + return data_; +} + +std::string MiguLivePullToPushStatusResult::getCode()const +{ + return code_; +} + +std::string MiguLivePullToPushStatusResult::getTimestamp()const +{ + return timestamp_; +} + diff --git a/live/src/model/RealTimeSnapshotCommandRequest.cc b/live/src/model/RealTimeSnapshotCommandRequest.cc index 879dd4098..5515f8b4f 100644 --- a/live/src/model/RealTimeSnapshotCommandRequest.cc +++ b/live/src/model/RealTimeSnapshotCommandRequest.cc @@ -43,6 +43,15 @@ void RealTimeSnapshotCommandRequest::setMode(int mode) { setParameter(std::string("Mode"), std::to_string(mode)); } +std::string RealTimeSnapshotCommandRequest::getUserData() const { + return userData_; +} + +void RealTimeSnapshotCommandRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + std::string RealTimeSnapshotCommandRequest::getAppName() const { return appName_; } @@ -88,6 +97,15 @@ void RealTimeSnapshotCommandRequest::setCommand(const std::string &command) { setParameter(std::string("Command"), command); } +int RealTimeSnapshotCommandRequest::getSnapshotType() const { + return snapshotType_; +} + +void RealTimeSnapshotCommandRequest::setSnapshotType(int snapshotType) { + snapshotType_ = snapshotType; + setParameter(std::string("SnapshotType"), std::to_string(snapshotType)); +} + int RealTimeSnapshotCommandRequest::getInterval() const { return interval_; } diff --git a/live/src/model/SendLiveMessageGroupRequest.cc b/live/src/model/SendLiveMessageGroupRequest.cc index 0cf7c17de..dd0907419 100644 --- a/live/src/model/SendLiveMessageGroupRequest.cc +++ b/live/src/model/SendLiveMessageGroupRequest.cc @@ -52,6 +52,15 @@ void SendLiveMessageGroupRequest::setStaticsIncrease(long staticsIncrease) { setParameter(std::string("StaticsIncrease"), std::to_string(staticsIncrease)); } +bool SendLiveMessageGroupRequest::getNoCache() const { + return noCache_; +} + +void SendLiveMessageGroupRequest::setNoCache(bool noCache) { + noCache_ = noCache; + setParameter(std::string("NoCache"), noCache ? "true" : "false"); +} + long SendLiveMessageGroupRequest::getMsgType() const { return msgType_; }